source: trunk/MagicSoft/Mars/manalysis/MExtractedSignalPix.h@ 2800

Last change on this file since 2800 was 2768, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.5 KB
Line 
1#ifndef MARS_MExtractedSignalPix
2#define MARS_MExtractedSignalPix
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MExtractedSignalPix : public MParContainer
9{
10private:
11
12 Float_t fExtractedSignalHiGain; // mean value of the extracted signal
13 Float_t fExtractedSignalHiGainError; // error of the mean value of the extracted signal
14 Float_t fExtractedSignalLoGain; // mean value of the extracted signal
15 Float_t fExtractedSignalLoGainError; // error of the mean value of the extracted signal
16
17 Bool_t fIsLoGainUsed;
18 Byte_t fNumHiGainSaturated;
19 Byte_t fNumLoGainSaturated;
20
21 // FIXME: Will be removed. Must be stored in MArrivalTime
22 Float_t fMeanArrivalTime;
23 Float_t fWidthArrivalTime;
24 Float_t fTailArrivalTime;
25
26public:
27
28 MExtractedSignalPix(const char* name=NULL, const char* title=NULL);
29
30 void Clear(Option_t *o="");
31
32 // Setter
33 void SetExtractedSignal(Float_t sig, Float_t sigerr)
34 {
35 fExtractedSignalHiGain = sig; fExtractedSignalHiGainError = sigerr;
36 }
37
38 void SetExtractedSignal(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr)
39 {
40 fExtractedSignalHiGain = sighi;
41 fExtractedSignalHiGainError = sighierr;
42 fExtractedSignalLoGain = siglo;
43 fExtractedSignalLoGainError = sigloerr;
44 }
45
46 void SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain)
47 {
48 fIsLoGainUsed = sat; fNumHiGainSaturated = higain; fNumLoGainSaturated = logain;
49 }
50
51 void SetArrivalTimes(Float_t mean, Float_t width, Float_t tail)
52 {
53 fMeanArrivalTime = mean; fWidthArrivalTime = width; fTailArrivalTime = tail;
54 }
55
56 // Getter
57 Float_t GetExtractedSignalHiGain() const { return fExtractedSignalHiGain; }
58 Float_t GetExtractedSignalHiGainError() const { return fExtractedSignalHiGainError; }
59
60 Float_t GetExtractedSignalLoGain() const { return fExtractedSignalLoGain; }
61 Float_t GetExtractedSignalLoGainError() const { return fExtractedSignalLoGainError; }
62
63 Float_t GetMeanArrivalTime() const { return fMeanArrivalTime; }
64 Float_t GetWidthArrivalTime() const { return fWidthArrivalTime; }
65 Float_t GetTailArrivalTime() const { return fTailArrivalTime; }
66
67
68 Bool_t IsLoGainUsed() const { return fIsLoGainUsed; }
69 Bool_t IsValid() const { return fExtractedSignalHiGain >= 0. || fExtractedSignalHiGainError >= 0.; }
70
71 void PrintOut();
72
73 ClassDef(MExtractedSignalPix, 0) // Storage Container for Extracted Signal information of one pixel
74};
75
76#endif
77
Note: See TracBrowser for help on using the repository browser.