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

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