source: tags/Mars-V0.9.4.1/msignal/MExtractedSignalPix.h

Last change on this file was 5739, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.0 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 Float_t fChisquare; // Chi-square of a possible fit the pulse
18
19 Bool_t fLoGainUsed;
20 Byte_t fNumHiGainSaturated;
21 Byte_t fNumLoGainSaturated;
22
23public:
24 MExtractedSignalPix(const char* name=NULL, const char* title=NULL);
25
26 void Clear(Option_t *o="");
27 void Print(Option_t *o="") const;
28
29 // Setter
30 void SetExtractedSignal( Float_t sig, Float_t sigerr);
31 void SetExtractedSignal( Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr);
32 void SetGainSaturation ( Bool_t sat, Byte_t higain, Byte_t logain);
33 void SetChisquare ( Float_t chi2 ) { fChisquare = chi2; }
34
35 // Getter
36 Float_t GetExtractedSignalHiGain() const { return fExtractedSignalHiGain; }
37 Float_t GetExtractedSignalHiGainError() const { return fExtractedSignalHiGainError; }
38
39 Float_t GetExtractedSignalLoGain() const { return fExtractedSignalLoGain; }
40 Float_t GetExtractedSignalLoGainError() const { return fExtractedSignalLoGainError; }
41
42 Byte_t GetNumHiGainSaturated() const { return fNumHiGainSaturated; }
43 Byte_t GetNumLoGainSaturated() const { return fNumLoGainSaturated; }
44
45 Float_t GetChisquare() const { return fChisquare; }
46
47 Bool_t IsLoGainUsed() const { return fLoGainUsed; }
48 Bool_t IsValid() const;
49
50 ClassDef(MExtractedSignalPix, 2) // Storage Container for Extracted Signal information of one pixel
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.