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

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