| Line | |
|---|
| 1 | #ifndef MARS_MPedCalcPedRun
|
|---|
| 2 | #define MARS_MPedCalcPedRun
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MExtractPedestal
|
|---|
| 5 | #include "MExtractPedestal.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MTriggerPattern;
|
|---|
| 9 | class MPedestalPix;
|
|---|
| 10 |
|
|---|
| 11 | class MPedCalcPedRun : public MExtractPedestal
|
|---|
| 12 | {
|
|---|
| 13 | private:
|
|---|
| 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 |
|
|---|
| 35 | public:
|
|---|
| 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.