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

Last change on this file since 2756 was 2728, checked in by tbretz, 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 // FIXME: We can only store ONE signal. Everything else takes
12 // too much storage space - will change in the future.
13 Float_t fExtractedSignalHiGain; // mean value of the extracted signal
14 Float_t fExtractedSignalHiGainError; // error of the mean value of the extracted signal
15 Float_t fExtractedSignalLoGain; // mean value of the extracted signal
16 Float_t fExtractedSignalLoGainError; // error of the mean value of the extracted signal
17
18 Bool_t fIsLoGainUsed;
19 Byte_t fNumHiGainSaturated;
20 Byte_t fNumLoGainSaturated;
21
22 // FIXME: Will be removed. Must be stored in MArrivalTime
23 Float_t fMeanArrivalTime;
24 Float_t fWidthArrivalTime;
25 Float_t fTailArrivalTime;
26
27public:
28
29 MExtractedSignalPix(const char* name=NULL, const char* title=NULL);
30
31 void Clear(Option_t *o="");
32
33 // Setter
34 void SetExtractedSignal(Float_t sig, Float_t sigerr)
35 {
36 fExtractedSignalHiGain = sig; fExtractedSignalHiGainError = sigerr;
37 }
38
39 void SetExtractedSignal(Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr)
40 {
41 fExtractedSignalHiGain = sighi;
42 fExtractedSignalHiGainError = sighierr;
43 fExtractedSignalLoGain = siglo;
44 fExtractedSignalLoGainError = sigloerr;
45 }
46
47 void SetGainSaturation(Bool_t sat, Byte_t higain, Byte_t logain)
48 {
49 fIsLoGainUsed = sat; fNumHiGainSaturated = higain; fNumLoGainSaturated = logain;
50 }
51
52 void SetArrivalTimes(Float_t mean, Float_t width, Float_t tail)
53 {
54 fMeanArrivalTime = mean; fWidthArrivalTime = width; fTailArrivalTime = tail;
55 }
56
57 // Getter
58 Float_t GetExtractedSignalHiGain() const { return fExtractedSignalHiGain; }
59 Float_t GetExtractedSignalHiGainError() const { return fExtractedSignalHiGainError; }
60
61 Float_t GetExtractedSignalLoGain() const { return fExtractedSignalLoGain; }
62 Float_t GetExtractedSignalLoGainError() const { return fExtractedSignalLoGainError; }
63
64 Float_t GetMeanArrivalTime() const { return fMeanArrivalTime; }
65 Float_t GetWidthArrivalTime() const { return fWidthArrivalTime; }
66 Float_t GetTailArrivalTime() const { return fTailArrivalTime; }
67
68
69 Bool_t IsLoGainUsed() const { return fIsLoGainUsed; }
70 Bool_t IsValid() const { return fExtractedSignalHiGain >= 0. || fExtractedSignalHiGainError >= 0.; }
71
72 void PrintOut();
73
74 ClassDef(MExtractedSignalPix, 0) // Storage Container for Extracted Signal information of one pixel
75};
76
77#endif
78
Note: See TracBrowser for help on using the repository browser.