er  dev
cls_RootEvent.h
1 #ifndef CLS_ROOTEVENT_H
2 #define CLS_ROOTEVENT_H
3 
4 #include "TNamed.h"
5 #include <TClonesArray.h>
6 
7 class cls_RootHit;
8 
9 class cls_RootEvent : public TNamed
10 {
11 
12 public: // methods
13 
14  cls_RootEvent();
15  virtual ~cls_RootEvent();
16 
17  void Clear(Option_t *option ="");
18 
19  cls_RootHit* AddHit(cls_RootHit* p_sourceHit);
20  cls_RootHit* AddHit(ULong64_t p_ts, UChar_t p_ch, UShort_t p_rawAdc, Int_t p_adc, Float_t p_adcCalib);
21 
22  void SetID(ULong_t p_id) { fEventID = p_id; }
23 
24  UShort_t GetNumOfHits() {return fNumOfHits;}
25 // Int_t GetAdcVal(UChar_t channel);
26  TClonesArray* GetHits() {return fHits;}
27 
28 private: // data members
29 
30  TClonesArray* fHits; //-> TClonesArray of cls_RootHit objects
31  UShort_t fNumOfHits; // Number of hits - actually the size of the 'fHits'
32 
33  ULong_t fEventID;
34 
35 public:
36  ClassDef(cls_RootEvent,1)
37 };
38 
39 #endif // CLS_ROOTEVENT_H