1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: EElectronics.hh 831 2004-06-25 17:06:02Z thea $ |
---|
3 | // A.Thea created Jun, 23 2004 |
---|
4 | |
---|
5 | #ifndef __EELECTRONICS_HH_ |
---|
6 | #define __EELECTRONICS_HH_ |
---|
7 | |
---|
8 | #include "TObject.h" |
---|
9 | #include "EFillable.hh" |
---|
10 | |
---|
11 | // data from Euso electronics |
---|
12 | class EElectronics : public TObject { |
---|
13 | public: |
---|
14 | EElectronics(); |
---|
15 | // ctor |
---|
16 | |
---|
17 | EElectronics(const EElectronics&); |
---|
18 | // copy ctor |
---|
19 | |
---|
20 | virtual ~EElectronics(); |
---|
21 | // dtor |
---|
22 | |
---|
23 | virtual void Clear( Option_t* = ""); |
---|
24 | // clear object |
---|
25 | |
---|
26 | virtual void Copy( TObject& ) const; |
---|
27 | |
---|
28 | // getters |
---|
29 | inline Int_t GetNumActiveGtus() const { return fNumActiveGtus;} |
---|
30 | inline Int_t GetGtuStart() const { return fGtuStart;} |
---|
31 | inline Int_t GetGtuEnd() const { return fGtuEnd;} |
---|
32 | inline Int_t GetNumCells() const { return fNumCells;} |
---|
33 | inline Float_t GetTimeGtu0() const { return fTimeGtu0;} |
---|
34 | inline Float_t GetTimeFirstGtu() const { return fTimeFirstGtu;} |
---|
35 | inline Float_t GetTimeLastGtu() const { return fTimeLastGtu;} |
---|
36 | inline Float_t GetGtuLength() const { return fGtuLength;} |
---|
37 | |
---|
38 | // setters |
---|
39 | inline void SetNumActiveGtus(Int_t val) { fNumActiveGtus = val;} |
---|
40 | inline void SetGtuStart(Int_t val) { fGtuStart = val;} |
---|
41 | inline void SetGtuEnd(Int_t val) { fGtuEnd = val;} |
---|
42 | inline void SetNumCells(Int_t val) { fNumCells = val;} |
---|
43 | inline void SetTimeGtu0(Float_t val) {fTimeGtu0 = val;} |
---|
44 | inline void SetTimeFirstGtu(Float_t val) {fTimeFirstGtu = val;} |
---|
45 | inline void SetTimeLastGtu(Float_t val) {fTimeLastGtu = val;} |
---|
46 | inline void SetGtuLength(Float_t val) {fGtuLength = val;} |
---|
47 | |
---|
48 | private: |
---|
49 | Int_t fNumActiveGtus; // total number of GTUs in which there was activity |
---|
50 | Int_t fGtuStart; // first GTU with data |
---|
51 | Int_t fGtuEnd; // last GTU in data |
---|
52 | Int_t fNumCells; // number of macrocells with data |
---|
53 | Float_t fTimeGtu0; // time (ns) corresponding to first edge of gtu 0 |
---|
54 | Float_t fTimeFirstGtu; // time (ns) corresponding to first edge first active gtu |
---|
55 | Float_t fTimeLastGtu; // time (ns) corresponding to second edge last active gtu |
---|
56 | Float_t fGtuLength; // time duration (ns) of one GTU |
---|
57 | |
---|
58 | SetEVisitable() |
---|
59 | |
---|
60 | ClassDef(EElectronics,1) |
---|
61 | }; |
---|
62 | |
---|
63 | #endif /* __EELECTRONICS_HH_ */ |
---|
64 | |
---|