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

Last change on this file since 5557 was 5550, checked in by gaug, 20 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MPedCalcPedRun
2#define MARS_MPedCalcPedRun
3
4#ifndef MARS_MExtractPedestal
5#include "MExtractPedestal.h"
6#endif
7
8#ifndef MARS_MArrayD
9#include <MArrayD.h>
10#endif
11
12#ifndef MARS_MArrayI
13#include <MArrayI.h>
14#endif
15
16class MRawEvtPixelIter;
17class MPedestalPix;
18class MPedCalcPedRun : public MExtractPedestal
19{
20
21 static const UShort_t fgExtractWinFirst; // First FADC slice Hi-Gain (currently set to: 3)
22 static const UShort_t fgExtractWinSize; // Extraction Size Hi-Gain (currently set to: 14)
23 static const UInt_t gkFirstRunWithFinalBits; // First Run with pedestal trigger bit at place 3
24
25 UShort_t fOverlap; // Number of overlapping slices from High-Gain to Low-Gain
26
27 Bool_t fFirstRun; // Flag to tell if the first run out of many is used
28 Bool_t fSkip; // Flag to tell if the Process has to be skipped
29 ULong_t fUsedEvents; // Number of used (not skipped) events
30
31 Bool_t IsPedBitSet();
32
33 Bool_t ReInit (MParList *pList);
34 Int_t Process ();
35 Int_t PostProcess();
36
37 void ResetArrays();
38 void CalcSums ( MRawEvtPixelIter *pixel, Float_t &sum, UInt_t &ab0, UInt_t &ab1);
39 void CalcExtractor( MRawEvtPixelIter *pixel, Float_t &sum, MPedestalPix &ped);
40
41public:
42
43 MPedCalcPedRun(const char *name=NULL, const char *title=NULL);
44
45 void Finalize();
46
47 void Print(Option_t *o="") const;
48
49 ClassDef(MPedCalcPedRun, 1) // Task to calculate pedestals from pedestal runs
50};
51
52#endif
Note: See TracBrowser for help on using the repository browser.