source: trunk/Mars/msignal/MExtractedSignalPix.h@ 19550

Last change on this file since 19550 was 17826, checked in by tbretz, 11 years ago
Added some default arguments.
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 Byte_t fNumHiGainSaturated; // Number of how many hi-gain slices saturated
18 Byte_t fNumLoGainSaturated; // Number of how many lo-gain slices saturated
19
20public:
21 MExtractedSignalPix(const char* name=NULL, const char* title=NULL);
22
23 void Clear(Option_t *o="");
24 void Print(Option_t *o="") const;
25
26 // Setter
27 void SetExtractedSignal( Float_t sig, Float_t sigerr=0);
28 void SetExtractedSignal( Float_t sighi, Float_t sighierr,Float_t siglo, Float_t sigloerr);
29 void SetGainSaturation ( Byte_t higain, Byte_t logain=0);
30
31 // Getter
32 Float_t GetExtractedSignalHiGain() const { return fExtractedSignalHiGain; }
33 Float_t GetExtractedSignalHiGainError() const { return fExtractedSignalHiGainError; }
34
35 Float_t GetExtractedSignalLoGain() const { return fExtractedSignalLoGain; }
36 Float_t GetExtractedSignalLoGainError() const { return fExtractedSignalLoGainError; }
37
38 Byte_t GetNumHiGainSaturated() const { return fNumHiGainSaturated; }
39 Byte_t GetNumLoGainSaturated() const { return fNumLoGainSaturated; }
40
41 Bool_t IsHiGainSaturated() const { return fNumHiGainSaturated>0; }
42 Bool_t IsLoGainSaturated() const { return fNumLoGainSaturated>0; }
43
44 Bool_t IsLoGainValid() const { return fExtractedSignalLoGainError>=0; }
45 Bool_t IsHiGainValid() const { return fExtractedSignalHiGainError>=0; }
46
47 ClassDef(MExtractedSignalPix, 3) // Storage Container for Extracted Signal information of one pixel
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.