Changeset 5360 for trunk/MagicSoft/Mars
- Timestamp:
- 11/09/04 18:30:53 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5359 r5360 32 32 // substract the pedestal value. 33 33 // 34 // If the flag fNoiseCalculation is set, the signal extractor should35 // calculate the pure noise contriubtion from a fixed window in time.36 //37 34 // The following variables have to be set by the derived class and 38 35 // do not have defaults: … … 84 81 // Sets: 85 82 // - fLoGainStartShift to fgLoGainStartShift+fgOffsetLoGain 86 // - fNoiseCalculation to kFALSE87 83 // 88 84 MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title) … … 92 88 93 89 SetLoGainStartShift(); 94 SetNoiseCalculation(kFALSE);95 90 } 96 91 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h
r5359 r5360 16 16 Float_t fLoGainStartShift; // Shift to start searching the low-gain signal obtained from the high-gain times. 17 17 18 Bool_t fNoiseCalculation; // Flag if the extractor is used to determine the noise contribution from a pedestal file.19 20 18 protected: 21 19 … … 33 31 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 34 32 35 Bool_t IsNoiseCalculation() { return fNoiseCalculation; }36 37 38 33 public: 39 34 … … 41 36 42 37 void SetLoGainStartShift( const Float_t f=fgLoGainStartShift ) { fLoGainStartShift = f + fOffsetLoGain; } 43 void SetNoiseCalculation( const Bool_t b=kFALSE ) { fNoiseCalculation = b; }44 38 45 39 void Print(Option_t *o) const; -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r5280 r5360 50 50 // created in PreProcess and Process) are written 51 51 // - the version number is maintained! 52 // - If the flag fNoiseCalculation is set, the signal extractor should 53 // calculate the pure noise contriubtion from a fixed window in time. 52 54 // 53 55 // … … 96 98 // - fSaturationLimit to fgSaturationLimit 97 99 // - fNamePedestalCam to fgNamePedestalCam 100 // - fNoiseCalculation to kFALSE 98 101 // 99 102 // Call: … … 113 116 SetRange(); 114 117 SetSaturationLimit(); 118 SetNoiseCalculation(kFALSE); 115 119 } 116 120 -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r5328 r5360 25 25 26 26 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.51 (= 5ns) 27 28 Bool_t fNoiseCalculation; // Flag if the extractor is used to determine the noise contribution from a pedestal file. 27 29 28 30 protected: … … 54 56 Byte_t fSaturationLimit; // Highest FADC slice value until being declared saturated 55 57 TString fNamePedestalCam; // Name of the 'MPedestalCam' container 58 59 Bool_t IsNoiseCalculation() { return fNoiseCalculation; } 56 60 57 61 virtual void FindSignalHiGain(Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat) const { } … … 79 83 void SetSaturationLimit ( Byte_t lim=fgSaturationLimit ) { fSaturationLimit = lim; } 80 84 void SetNamePedestalCam ( const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam = name; } 85 void SetNoiseCalculation( const Bool_t b=kFALSE ) { fNoiseCalculation = b; } 81 86 82 87 void Print(Option_t *o="") const; 83 88 84 ClassDef(MExtractor, 2) // Signal Extractor Base Class89 ClassDef(MExtractor, 3) // Signal Extractor Base Class 85 90 }; 86 91
Note:
See TracChangeset
for help on using the changeset viewer.