Changeset 7043 for trunk/MagicSoft/Mars/msignal/MExtractor.h
- Timestamp:
- 05/17/05 12:08:31 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractor.h
r6820 r7043 23 23 { 24 24 private: 25 26 25 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.51 (= 5ns) 27 26 28 27 Bool_t fNoiseCalculation; //! Flag if extractor determines noise contribution from pedestal file. 28 29 Float_t fResolutionPerPheHiGain; // Extractor-dependent charge resolution per phe for high-gain (see TDAS-0502). 30 Float_t fResolutionPerPheLoGain; // Extractor-dependent charge resolution per phe for low-gain (see TDAS-0502). 29 31 30 32 protected: 31 32 33 static const Byte_t fgSaturationLimit; //! Default for fSaturationLimit (now set to: 254) 33 34 static const TString fgNamePedestalCam; //! "MPedestalCam" … … 54 55 Float_t fSqrtHiGainSamples; // Sqrt. nr. High Gain FADC slices used to extract the signal 55 56 Float_t fSqrtLoGainSamples; // Sqrt. nr. Low Gain FADC slices used to extract the signal 56 57 57 58 Byte_t fSaturationLimit; // Highest FADC slice value until being declared saturated 59 58 60 TString fNamePedestalCam; // Name of the 'MPedestalCam' container 59 61 TString fNameSignalCam; // Name of the 'MExtractedSignalCam' container 60 62 63 // MExtractor 61 64 virtual void FindSignalHiGain(Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat) const { } 62 65 virtual void FindSignalLoGain(Byte_t *firstused, Float_t &sum, Byte_t &sat) const { } 63 66 67 void SetResolutionPerPheHiGain(Float_t f) { fResolutionPerPheHiGain=f; } 68 void SetResolutionPerPheLoGain(Float_t f) { fResolutionPerPheLoGain=f; } 69 64 70 Int_t PreProcessStd(MParList *pList); 71 72 // MTask 65 73 Int_t PreProcess( MParList *pList ); 66 74 Bool_t ReInit ( MParList *pList ); … … 69 77 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 70 78 79 71 80 public: 72 81 MExtractor(const char *name=NULL, const char *title=NULL); 73 82 74 void Clear(Option_t *o="") 75 { 76 fHiGainFirst = fHiGainLast = fLoGainFirst = fLoGainLast = fHiLoLast = 0; 77 } 78 83 // getter 79 84 Byte_t GetHiGainFirst() const { return fHiGainFirst; } 80 85 Byte_t GetHiGainLast () const { return fHiGainLast ; } … … 86 91 87 92 Bool_t IsNoiseCalculation () const { return fNoiseCalculation; } 88 93 94 // Setter 95 Float_t SetResolutionPerPheHiGain() const { return fResolutionPerPheHiGain; } 96 Float_t SetResolutionPerPheLoGain() const { return fResolutionPerPheLoGain; } 97 89 98 virtual void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0); 90 99 … … 97 106 void SetPedestals (MPedestalCam *pedcam) { fPedestals = pedcam; } 98 107 108 // TObject 109 void Clear(Option_t *o="") 110 { 111 fHiGainFirst = fHiGainLast = fLoGainFirst = fLoGainLast = fHiLoLast = 0; 112 } 113 99 114 void Print(Option_t *o="") const; 100 115 101 ClassDef(MExtractor, 5) // Signal Extractor Base Class116 ClassDef(MExtractor, 6) // Signal Extractor Base Class 102 117 }; 103 118
Note:
See TracChangeset
for help on using the changeset viewer.