1 | #ifndef MARS_MPedCalcFromLoGain
|
---|
2 | #define MARS_MPedCalcFromLoGain
|
---|
3 |
|
---|
4 | #ifndef MARS_MExtractPedestal
|
---|
5 | #include "MExtractPedestal.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_MArrayB
|
---|
9 | #include "MArrayB.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | //class MRawEvtPixelIter;
|
---|
13 | class MPedestalPix;
|
---|
14 |
|
---|
15 | class MPedCalcFromLoGain : public MExtractPedestal
|
---|
16 | {
|
---|
17 | private:
|
---|
18 | static const UShort_t fgExtractWinFirst; // First FADC slice to use for pedestal calculation (currently set to: 15)
|
---|
19 | static const UShort_t fgExtractWinSize; // number of successive slices used to calculate pedestal (currently set to: 6)
|
---|
20 | static const UInt_t fgNumDump; //!
|
---|
21 |
|
---|
22 | UInt_t fNumEventsDump; // Number of event after which MPedestalCam gets updated
|
---|
23 | UInt_t fNumAreasDump; // Number of events after which averaged areas gets updated
|
---|
24 | UInt_t fNumSectorsDump; // Number of events after which averaged sectors gets updated
|
---|
25 |
|
---|
26 | Bool_t fPedestalUpdate; // Flag if the pedestal shall be updated after every fNumEventsDump
|
---|
27 |
|
---|
28 | // MParContainer
|
---|
29 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
|
---|
30 |
|
---|
31 | // MTask
|
---|
32 | Bool_t ReInit(MParList *pList);
|
---|
33 | Int_t PostProcess();
|
---|
34 |
|
---|
35 | // MExtractPedestal
|
---|
36 | void Calc();
|
---|
37 |
|
---|
38 | public:
|
---|
39 | MPedCalcFromLoGain(const char *name=NULL, const char *title=NULL);
|
---|
40 |
|
---|
41 | // Getters
|
---|
42 | void SetNumEventsDump (UInt_t dumpevents=fgNumDump) { fNumEventsDump = dumpevents; }
|
---|
43 | void SetNumAreasDump (UInt_t dumpevents=fgNumDump) { fNumAreasDump = dumpevents; }
|
---|
44 | void SetNumSectorsDump(UInt_t dumpevents=fgNumDump) { fNumSectorsDump = dumpevents; }
|
---|
45 | void SetNumDump (UInt_t n=fgNumDump) { fNumEventsDump=n; fNumAreasDump=n; fNumSectorsDump=n; }
|
---|
46 |
|
---|
47 | void SetPedestalUpdate(Bool_t b=kTRUE) { fPedestalUpdate = b; }
|
---|
48 |
|
---|
49 | Bool_t SetRangeFromExtractor(const MExtractor &ext)
|
---|
50 | {
|
---|
51 | return MExtractPedestal::SetRangeFromExtractor(ext, kTRUE);
|
---|
52 | }
|
---|
53 |
|
---|
54 | void Print(Option_t *o="") const;
|
---|
55 |
|
---|
56 | ClassDef(MPedCalcFromLoGain, 1) // Task to calculate pedestals from data runs
|
---|
57 | };
|
---|
58 |
|
---|
59 | #endif
|
---|