source: trunk/Mars/mpedestal/MPedCalcPedRun.h@ 17281

Last change on this file since 17281 was 9157, checked in by tbretz, 16 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 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 Bool_t fIsFirstPedRun; //! Flag to tell if the first run out of many is used
19 Bool_t fIsNotPedRun; //! Flag to tell if the current run is a pedestal run
20
21 MTriggerPattern *fTrigPattern; //! Trigger pattern decoded
22
23 Bool_t IsPedBitSet();
24
25 Bool_t ReInit(MParList *pList);
26 Int_t PreProcess(MParList *pList);
27 void Calc();
28 Int_t PostProcess();
29
30 //void CheckExtractionWindow();
31 //UInt_t CalcSums(const MRawEvtPixelIter &pixel, 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 void Reset();
39
40 Bool_t SetRangeFromExtractor(const MExtractor &ext)
41 {
42 return MExtractPedestal::SetRangeFromExtractor(ext, kFALSE);
43 }
44
45 Int_t Finalize();
46
47 ClassDef(MPedCalcPedRun, 2) // Task to calculate pedestals from pedestal runs
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.