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

Last change on this file since 8154 was 8151, checked in by tbretz, 18 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
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 UInt_t fUsedEvents; // Number of used (not skipped) events
21
22 MTriggerPattern *fTrigPattern; //! Trigger pattern decoded
23
24 Bool_t IsPedBitSet();
25
26 Bool_t ReInit(MParList *pList);
27 Int_t PreProcess(MParList *pList);
28 Int_t Calc();
29 Int_t PostProcess();
30
31 //void CheckExtractionWindow();
32 //UInt_t CalcSums(const MRawEvtPixelIter &pixel, UInt_t &ab0, UInt_t &ab1);
33 //void CalcExtractor(const MRawEvtPixelIter &pixel, Float_t &sum, MPedestalPix &ped);
34
35public:
36 MPedCalcPedRun(const char *name=NULL, const char *title=NULL);
37
38 void Print(Option_t *o="") const;
39 void Reset();
40
41 Int_t Finalize();
42
43 ClassDef(MPedCalcPedRun, 2) // Task to calculate pedestals from pedestal runs
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.