source: trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.h@ 5291

Last change on this file since 5291 was 5219, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.5 KB
Line 
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
16class MGeomCam;
17class MPedCalcPedRun : public MExtractor
18{
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 TArrayD fSumAB0; // sum of ABFlag=0 slices
36 TArrayD fSumAB1; // sum of ABFlag=1 slices
37 TArrayD fAreaSumx; // averaged sum of values per area idx
38 TArrayD fAreaSumx2; // averaged sum of squared values per area idx
39 TArrayD fAreaSumAB0; // averaged sum of ABFlag=0 slices per area idx
40 TArrayD fAreaSumAB1; // averaged sum of ABFlag=1 slices per area idx
41 TArrayI fAreaValid; // number of valid pixel with area idx
42 TArrayD fSectorSumx; // averaged sum of values per sector
43 TArrayD fSectorSumx2; // averaged sum of squared values per sector
44 TArrayD fSectorSumAB0; // averaged sum of ABFlag=0 slices per sector
45 TArrayD fSectorSumAB1; // averaged sum of ABFlag=1 slices per sector
46 TArrayI fSectorValid; // number of valid pixel with sector idx
47
48 Int_t PreProcess (MParList *pList);
49 Bool_t ReInit (MParList *pList);
50 Int_t Process ();
51 Int_t PostProcess();
52 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
53
54public:
55
56 MPedCalcPedRun(const char *name=NULL, const char *title=NULL);
57
58 void Clear(const Option_t *o="");
59
60 void SetRange ( const Byte_t hifirst=0, const Byte_t hilast=0,
61 const Byte_t lofirst=0, const Byte_t lolast=0 );
62 void SetWindowSize ( const Byte_t windowh=0, const Byte_t windowl=0 );
63
64 ClassDef(MPedCalcPedRun, 0) // Task to calculate pedestals from pedestal runs raw data
65};
66
67#endif
Note: See TracBrowser for help on using the repository browser.