1 | #ifndef MARS_MExtractedSignalPix
|
---|
2 | #define MARS_MExtractedSignalPix
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MExtractedSignalPix : public MParContainer
|
---|
9 | {
|
---|
10 | private:
|
---|
11 |
|
---|
12 | Float_t fExtractedSignal; // mean value of the extracted signal
|
---|
13 | Float_t fExtractedSignalError; // error of the mean value of the extracted signal
|
---|
14 | Bool_t fIsLoGainUsed;
|
---|
15 | Byte_t fNumHiGainSaturated;
|
---|
16 | Byte_t fNumLoGainSaturated;
|
---|
17 |
|
---|
18 | Float_t fMeanArrivalTime;
|
---|
19 | Float_t fWidthArrivalTime;
|
---|
20 |
|
---|
21 | public:
|
---|
22 |
|
---|
23 | MExtractedSignalPix(const char* name=NULL, const char* title=NULL);
|
---|
24 |
|
---|
25 | void Clear(Option_t *o="");
|
---|
26 |
|
---|
27 | Float_t GetExtractedSignal() const { return fExtractedSignal; }
|
---|
28 | Float_t GetExtractedSignalError() const { return fExtractedSignalError; }
|
---|
29 |
|
---|
30 | Float_t GetMeanArrivalTime() const { return fMeanArrivalTime; }
|
---|
31 | Float_t GetWidthArrivalTime() const { return fWidthArrivalTime; }
|
---|
32 |
|
---|
33 | void SetExtractedSignal(Float_t sig, Float_t sigerr)
|
---|
34 | {
|
---|
35 | fExtractedSignal = sig;
|
---|
36 | fExtractedSignalError = sigerr;
|
---|
37 | }
|
---|
38 |
|
---|
39 | void SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain)
|
---|
40 | { fIsLoGainUsed = sat;
|
---|
41 | fNumHiGainSaturated = higain;
|
---|
42 | fNumLoGainSaturated = logain; }
|
---|
43 |
|
---|
44 | void SetArrivalTimes(Float_t mean, Float_t width)
|
---|
45 | { fMeanArrivalTime = mean;
|
---|
46 | fWidthArrivalTime = width;
|
---|
47 | }
|
---|
48 |
|
---|
49 | Bool_t IsLoGainUsed() { return fIsLoGainUsed; }
|
---|
50 |
|
---|
51 | Bool_t IsValid() const { return fExtractedSignal >= 0 || fExtractedSignalError >= 0; }
|
---|
52 |
|
---|
53 | void PrintOut();
|
---|
54 |
|
---|
55 | ClassDef(MExtractedSignalPix, 0) // Storage Container for Extracted Signal information of one pixel
|
---|
56 | };
|
---|
57 |
|
---|
58 | #endif
|
---|
59 |
|
---|