1 | #ifndef MARS_MArrivalTimePix
|
---|
2 | #define MARS_MArrivalTimePix
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MArrivalTimePix : public MParContainer
|
---|
9 | {
|
---|
10 | private:
|
---|
11 | Float_t fArrivalTimeHiGain; // mean value of the ArrivalTime
|
---|
12 | Float_t fArrivalTimeHiGainError; // error of the mean value of the ArrivalTime
|
---|
13 | Float_t fArrivalTimeLoGain; // mean value of the ArrivalTime
|
---|
14 | Float_t fArrivalTimeLoGainError; // error of the mean value of the ArrivalTime
|
---|
15 |
|
---|
16 | Byte_t fNumHiGainSaturated;
|
---|
17 | Byte_t fNumLoGainSaturated;
|
---|
18 |
|
---|
19 | public:
|
---|
20 | MArrivalTimePix(const char* name=NULL, const char* title=NULL);
|
---|
21 |
|
---|
22 | void Clear(Option_t *o="");
|
---|
23 | void Print(Option_t *o="") const;
|
---|
24 |
|
---|
25 | // Setter
|
---|
26 | void SetArrivalTime(Float_t sig, Float_t sigerr);
|
---|
27 | void SetArrivalTime(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr);
|
---|
28 | void SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain);
|
---|
29 |
|
---|
30 | // Getter
|
---|
31 | Float_t GetArrivalTimeHiGain() const { return fArrivalTimeHiGain; }
|
---|
32 | Float_t GetArrivalTimeHiGainError() const { return fArrivalTimeHiGainError; }
|
---|
33 |
|
---|
34 | Float_t GetArrivalTimeLoGain() const { return fArrivalTimeLoGain; }
|
---|
35 | Float_t GetArrivalTimeLoGainError() const { return fArrivalTimeLoGainError; }
|
---|
36 |
|
---|
37 | Float_t GetArrivalTime() const { return IsLoGainUsed() ? fArrivalTimeLoGain : fArrivalTimeHiGain; }
|
---|
38 |
|
---|
39 | Byte_t GetNumHiGainSaturated() const { return fNumHiGainSaturated; }
|
---|
40 | Byte_t GetNumLoGainSaturated() const { return fNumLoGainSaturated; }
|
---|
41 |
|
---|
42 | Bool_t IsLoGainUsed() const { return fNumHiGainSaturated > 0; }
|
---|
43 | Bool_t IsValid() const;
|
---|
44 |
|
---|
45 | ClassDef(MArrivalTimePix, 1) // Storage Container for ArrivalTime information of one pixel
|
---|
46 | };
|
---|
47 |
|
---|
48 | #endif
|
---|