Changeset 5487 for trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.h
- Timestamp:
- 11/27/04 16:36:36 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.h
r5219 r5487 2 2 #define MARS_MPedCalcPedRun 3 3 4 #ifndef MARS_MExtract or5 #include "MExtract or.h"4 #ifndef MARS_MExtractPedestal 5 #include "MExtractPedestal.h" 6 6 #endif 7 7 8 #ifndef ROOT_TArrayD9 #include < TArrayD.h>8 #ifndef MARS_MArrayD 9 #include <MArrayD.h> 10 10 #endif 11 11 12 #ifndef ROOT_TArrayI13 #include < TArrayI.h>12 #ifndef MARS_MArrayI 13 #include <MArrayI.h> 14 14 #endif 15 15 16 class MGeomCam; 17 class MPedCalcPedRun : public MExtractor 16 class MRawEvtPixelIter; 17 class MPedestalPix; 18 class MPedCalcPedRun : public MExtractPedestal 18 19 { 19 20 20 static const Byte_t fgHiGainFirst; // First FADC slice Hi-Gain (currently set to: 3) 21 static const Byte_t fgHiGainLast; // Last FADC slice Hi-Gain (currently set to: 14) 22 static const Byte_t fgLoGainFirst; // First FADC slice Lo-Gain (currently set to: 3) 23 static const Byte_t fgLoGainLast; // Last FADC slice Lo-Gain (currently set to: 14) 24 static const Byte_t fgHiGainWindowSize; // The extraction window Hi-Gain 25 static const Byte_t fgLoGainWindowSize; // The extraction window Lo-Gain 21 static const UShort_t fgExtractWinFirst; // First FADC slice Hi-Gain (currently set to: 3) 22 static const UShort_t fgExtractWinSize; // Extraction Size Hi-Gain (currently set to: 14) 23 static const UInt_t gkFirstRunWithFinalBits; // First Run with pedestal trigger bit at place 3 26 24 27 UInt_t fNumSamplesTot; 28 Byte_t fWindowSizeHiGain; // Number of Hi Gain slices in window 29 Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window 25 UShort_t fOverlap; // Number of overlapping slices from High-Gain to Low-Gain 26 27 Bool_t fFirstRun; // Flag to tell if the first run out of many is used 28 Bool_t fSkip; // Flag to tell if the Process has to be skipped 29 ULong_t fUsedEvents; // Number of used (not skipped) events 30 30 31 MGeomCam *fGeom; // Camera geometry31 Bool_t IsPedBitSet(); 32 32 33 TArrayD fSumx; // sum of values34 TArrayD fSumx2; // sum of squared values35 TArrayD fSumAB0; // sum of ABFlag=0 slices36 TArrayD fSumAB1; // sum of ABFlag=1 slices37 TArrayD fAreaSumx; // averaged sum of values per area idx38 TArrayD fAreaSumx2; // averaged sum of squared values per area idx39 TArrayD fAreaSumAB0; // averaged sum of ABFlag=0 slices per area idx40 TArrayD fAreaSumAB1; // averaged sum of ABFlag=1 slices per area idx41 TArrayI fAreaValid; // number of valid pixel with area idx42 TArrayD fSectorSumx; // averaged sum of values per sector43 TArrayD fSectorSumx2; // averaged sum of squared values per sector44 TArrayD fSectorSumAB0; // averaged sum of ABFlag=0 slices per sector45 TArrayD fSectorSumAB1; // averaged sum of ABFlag=1 slices per sector46 TArrayI fSectorValid; // number of valid pixel with sector idx47 48 Int_t PreProcess (MParList *pList);49 33 Bool_t ReInit (MParList *pList); 50 34 Int_t Process (); 51 35 Int_t PostProcess(); 52 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 36 37 void ResetArrays(); 38 void CalcSums ( MRawEvtPixelIter *pixel, Float_t &sum, UInt_t &ab0, UInt_t &ab1); 39 void CalcExtractor( MRawEvtPixelIter *pixel, Float_t &sum, MPedestalPix &ped); 53 40 54 41 public: … … 56 43 MPedCalcPedRun(const char *name=NULL, const char *title=NULL); 57 44 58 void Clear(const Option_t *o=""); 45 Int_t CallPostProcess(); 46 47 void Print(Option_t *o="") const; 59 48 60 void SetRange ( const Byte_t hifirst=0, const Byte_t hilast=0, 61 const Byte_t lofirst=0, const Byte_t lolast=0 ); 62 void SetWindowSize ( const Byte_t windowh=0, const Byte_t windowl=0 ); 63 64 ClassDef(MPedCalcPedRun, 0) // Task to calculate pedestals from pedestal runs raw data 49 ClassDef(MPedCalcPedRun, 1) // Task to calculate pedestals from pedestal runs 65 50 }; 66 51
Note:
See TracChangeset
for help on using the changeset viewer.