source: tags/Mars-V0.9.4.1/msignal/MArrivalTimePix.h

Last change on this file was 4899, checked in by gaug, 20 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MArrivalTimePix
2#define MARS_MArrivalTimePix
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MArrivalTimePix : public MParContainer
9{
10private:
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
19public:
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 Byte_t GetNumHiGainSaturated() const { return fNumHiGainSaturated; }
38 Byte_t GetNumLoGainSaturated() const { return fNumLoGainSaturated; }
39
40 Bool_t IsLoGainUsed() const { return fNumHiGainSaturated > 0; }
41 Bool_t IsValid() const;
42
43 ClassDef(MArrivalTimePix, 1) // Storage Container for ArrivalTime information of one pixel
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.