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

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