| 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 | class MBadPixelsCam;
|
|---|
| 18 | class MPedCalcPedRun : public MExtractor
|
|---|
| 19 | {
|
|---|
| 20 |
|
|---|
| 21 | static const Byte_t fgHiGainFirst; // First FADC slice Hi-Gain (currently set to: 3)
|
|---|
| 22 | static const Byte_t fgHiGainLast; // Last FADC slice Hi-Gain (currently set to: 14)
|
|---|
| 23 | static const Byte_t fgLoGainFirst; // First FADC slice Lo-Gain (currently set to: 3)
|
|---|
| 24 | static const Byte_t fgLoGainLast; // Last FADC slice Lo-Gain (currently set to: 14)
|
|---|
| 25 | static const Byte_t fgHiGainWindowSize; // The extraction window Hi-Gain
|
|---|
| 26 | static const Byte_t fgLoGainWindowSize; // The extraction window Lo-Gain
|
|---|
| 27 |
|
|---|
| 28 | UInt_t fNumSamplesTot;
|
|---|
| 29 | Byte_t fWindowSizeHiGain; // Number of Hi Gain slices in window
|
|---|
| 30 | Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window
|
|---|
| 31 |
|
|---|
| 32 | MGeomCam *fGeom; // Camera geometry
|
|---|
| 33 | MBadPixelsCam *fBad; // Bad Pixels
|
|---|
| 34 |
|
|---|
| 35 | TArrayD fSumx; // sum of values
|
|---|
| 36 | TArrayD fSumx2; // sum of squared values
|
|---|
| 37 | TArrayD fAreaSumx; // averaged sum of values per area idx
|
|---|
| 38 | TArrayD fAreaSumx2; // averaged sum of squared values per area idx
|
|---|
| 39 | TArrayI fAreaValid; // number of valid pixel with area idx
|
|---|
| 40 | TArrayD fSectorSumx; // averaged sum of values per sector
|
|---|
| 41 | TArrayD fSectorSumx2; // averaged sum of squared values per sector
|
|---|
| 42 | TArrayI fSectorValid; // number of valid pixel with sector idx
|
|---|
| 43 |
|
|---|
| 44 | Int_t PreProcess ( MParList *pList );
|
|---|
| 45 | Bool_t ReInit ( MParList *pList );
|
|---|
| 46 | Int_t Process ();
|
|---|
| 47 | Int_t PostProcess();
|
|---|
| 48 |
|
|---|
| 49 | public:
|
|---|
| 50 |
|
|---|
| 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
|
|---|