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

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