1 | #ifndef MARS_MPedCalcPedRun
|
---|
2 | #define MARS_MPedCalcPedRun
|
---|
3 |
|
---|
4 | #ifndef MARS_MExtractor
|
---|
5 | #include "MExtractor.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TArrayD
|
---|
9 | #include <TArrayD.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #ifndef ROOT_TArrayI
|
---|
13 | #include <TArrayI.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | class MGeomCam;
|
---|
17 |
|
---|
18 | class MPedCalcPedRun : public MExtractor
|
---|
19 | {
|
---|
20 | static const Byte_t fgHiGainFirst; // First FADC slice Hi-Gain (currently set to: 3)
|
---|
21 | static const Byte_t fgHiGainLast; // Last FADC slice Hi-Gain (currently set to: 14)
|
---|
22 | static const Byte_t fgLoGainFirst; // First FADC slice Lo-Gain (currently set to: 3)
|
---|
23 | static const Byte_t fgLoGainLast; // Last FADC slice Lo-Gain (currently set to: 14)
|
---|
24 | static const Byte_t fgHiGainWindowSize; // The extraction window Hi-Gain
|
---|
25 | static const Byte_t fgLoGainWindowSize; // The extraction window Lo-Gain
|
---|
26 |
|
---|
27 | UInt_t fNumSamplesTot;
|
---|
28 | Byte_t fWindowSizeHiGain; // Number of Hi Gain slices in window
|
---|
29 | Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window
|
---|
30 |
|
---|
31 | MGeomCam *fGeom; // Camera geometry
|
---|
32 |
|
---|
33 | TArrayD fSumx; // sum of values
|
---|
34 | TArrayD fSumx2; // sum of squared values
|
---|
35 | /*
|
---|
36 | TArrayD fAreaSumx; // averaged sum of values per area idx
|
---|
37 | TArrayD fAreaSumx2; // averaged sum of squared values per area idx
|
---|
38 | TArrayI fAreaValid; // number of valid pixel with area idx
|
---|
39 | TArrayD fSectorSumx; // averaged sum of values per sector
|
---|
40 | TArrayD fSectorSumx2; // averaged sum of squared values per sector
|
---|
41 | TArrayI fSectorValid; // number of valid pixel with sector idx
|
---|
42 | */
|
---|
43 |
|
---|
44 | Int_t PreProcess (MParList *pList);
|
---|
45 | Bool_t ReInit (MParList *pList);
|
---|
46 | Int_t Process ();
|
---|
47 | Int_t PostProcess();
|
---|
48 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
|
---|
49 |
|
---|
50 | public:
|
---|
51 | MPedCalcPedRun(const char *name=NULL, const char *title=NULL);
|
---|
52 |
|
---|
53 | void Clear(const Option_t *o="");
|
---|
54 | void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
|
---|
55 | void SetWindowSize(Byte_t windowh=0, Byte_t windowl=0);
|
---|
56 |
|
---|
57 | ClassDef(MPedCalcPedRun, 0) // Task to calculate pedestals from pedestal runs raw data
|
---|
58 | };
|
---|
59 |
|
---|
60 | #endif
|
---|