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

Last change on this file since 2681 was 2661, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.7 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 Bool_t fIsLoGainUsed;
17 Byte_t fNumHiGainSaturated;
18 Byte_t fNumLoGainSaturated;
19
20 Float_t fMeanArrivalTime;
21 Float_t fWidthArrivalTime;
22 Float_t fTailArrivalTime;
23
24public:
25
26 MExtractedSignalPix(const char* name=NULL, const char* title=NULL);
27
28 void Clear(Option_t *o="");
29
30 Float_t GetExtractedSignalHiGain() const { return fExtractedSignalHiGain; }
31 Float_t GetExtractedSignalHiGainError() const { return fExtractedSignalHiGainError; }
32
33 Float_t GetExtractedSignalLoGain() const { return fExtractedSignalLoGain; }
34 Float_t GetExtractedSignalLoGainError() const { return fExtractedSignalLoGainError; }
35
36 Float_t GetMeanArrivalTime() const { return fMeanArrivalTime; }
37 Float_t GetWidthArrivalTime() const { return fWidthArrivalTime; }
38 Float_t GetTailArrivalTime() const { return fTailArrivalTime; }
39
40 void SetExtractedSignal(Float_t sig, Float_t sigerr)
41 {
42 fExtractedSignalHiGain = sig;
43 fExtractedSignalHiGainError = sigerr;
44 }
45
46 void SetExtractedSignal(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr)
47 {
48 fExtractedSignalHiGain = sighi;
49 fExtractedSignalHiGainError = sighierr;
50 fExtractedSignalLoGain = siglo;
51 fExtractedSignalLoGainError = sigloerr;
52 }
53
54 void SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain)
55 { fIsLoGainUsed = sat;
56 fNumHiGainSaturated = higain;
57 fNumLoGainSaturated = logain; }
58
59 void SetArrivalTimes(Float_t mean, Float_t width, Float_t tail)
60 { fMeanArrivalTime = mean;
61 fWidthArrivalTime = width;
62 fTailArrivalTime = tail;
63 }
64
65 Bool_t IsLoGainUsed() { return fIsLoGainUsed; }
66
67 Bool_t IsValid() const { return fExtractedSignalHiGain >= 0. || fExtractedSignalHiGainError >= 0.; }
68
69 void PrintOut();
70
71 ClassDef(MExtractedSignalPix, 0) // Storage Container for Extracted Signal information of one pixel
72};
73
74#endif
75
Note: See TracBrowser for help on using the repository browser.