er  dev
ERNeuRadDigi.h
1 // -------------------------------------------------------------------------
2 // ----- ERNeuRadDigi header file -----
3 // ----- Created 03/15 by V. Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef ERNeuRadDigi_H
7 #define ERNeuRadDigi_H
8 
9 #include "TObject.h"
10 #include "TVector3.h"
11 
12 #include "FairMultiLinkedData.h"
13 
14 class ERNeuRadDigi : public FairMultiLinkedData
15 {
16 
17 public:
18 
20  ERNeuRadDigi();
21 
32  ERNeuRadDigi(Int_t id,
33  Double_t frontTDC,
34  Double_t backTDC,
35  Double_t tdc,
36  Double_t qdc,
37  Int_t bundle,
38  Int_t fiber,
39  Int_t side);
40 
42  ERNeuRadDigi(const ERNeuRadDigi&);
43 
45  virtual ~ERNeuRadDigi();
46 
47  ERNeuRadDigi& operator=(const ERNeuRadDigi&) { return *this; }
48 
50  virtual void Print(const Option_t* opt = 0) const;
51 
52  void SetID(Int_t id) {fID = id;}
53  void SetFrontTDC(Double_t time) {fFrontTDC = time;}
54  void SetBackTDC(Double_t time) {fBackTDC = time;}
55  void SetTDC(Double_t time) {fTDC = time;}
56  void SetQDC(Double_t charge) {fQDC = charge;}
57  void SetModuleIndex(Int_t bundle) {fModuleIndex = bundle;}
58  void SetFiberIndex(Int_t fiber) {fFiberIndex = fiber;}
59  //TODO void SetSide()????
60 
61  Int_t ID() const {return fID;}
62  Double_t FrontTDC() const {return fFrontTDC;}
63  Double_t BackTDC() const {return fBackTDC;}
64  Double_t TDC() const {return fTDC;}
65  Double_t QDC() const {return fQDC;}
66  Int_t ModuleIndex() const {return fModuleIndex;}
67  Int_t FiberIndex() const {return fFiberIndex;}
68  Int_t Side() const {return fSide;}
69 
70 protected:
71 
72  Int_t fID;
73  Double32_t fFrontTDC;
74  Double32_t fBackTDC;
75  Double32_t fTDC;
76  Double32_t fQDC;
77  Int_t fModuleIndex;
78  Int_t fFiberIndex;
79  Int_t fSide; //0 - front, 1 - back
80 
81  ClassDef(ERNeuRadDigi,1)
82 };
83 
84 #endif // ERNeuRadDigi_H
virtual ~ERNeuRadDigi()
virtual void Print(const Option_t *opt=0) const