Changeset 5930
- Timestamp:
- 01/21/05 13:39:16 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5928 r5930 27 27 * msignal/MExtractTimeAndChargeSpline.cc 28 28 - use the max. bin content for low-gain extraction 29 30 * callisto.rc 31 - add place for LoGainSwitch 29 32 30 33 2005/01/21 Florian Goebel -
trunk/MagicSoft/Mars/callisto.rc
r5878 r5930 155 155 #MJCalibration.ExtractSignal.OffsetFromWindow: 1 156 156 #MJCalibration.ExtractSignal.LoGainPeakShift: 0 157 #MJCalibration.ExtractSignal.LoGainSwitch: 200 157 158 158 159 # ------------------------------------------------------------------------- … … 248 249 249 250 # ------------------------------------------------------------------------- 251 # Use this if you want to change the signal extractor 252 # ------------------------------------------------------------------------- 253 #MJCalibrateSignal.ExtractSignal.LoGainSwitch: 200 254 255 # ------------------------------------------------------------------------- 250 256 # Setup calibration of data 251 257 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/msignal/MExtractTime.cc
r5734 r5930 195 195 if (IsA()==MExtractTime::Class()) 196 196 *fLog << GetDescriptor() << ":" << endl; 197 *fLog << " Offset Lo-Gain: " << fOffsetLoGain << endl;197 *fLog << " Offset Lo-Gain: " << fOffsetLoGain << endl; 198 198 MExtractor::Print(o); 199 199 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5929 r5930 86 86 87 87 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.8; 88 const Byte_t MExtractTimeAndCharge::fg MaxBinContentLimit= 100;88 const Byte_t MExtractTimeAndCharge::fgLoGainSwitch = 100; 89 89 // -------------------------------------------------------------------------- 90 90 // … … 95 95 // - fWindowSizeHiGain and fWindowSizeLoGain to 0 96 96 // - fLoGainStartShift to fgLoGainStartShift+fgOffsetLoGain 97 // - f MaxBinContentLimt to fgMaxBinContentLimit97 // - fLoGainSwitch to fgLoGainSwitch 98 98 // 99 99 MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title) … … 104 104 105 105 SetLoGainStartShift(); 106 Set MaxBinContentLimit();106 SetLoGainSwitch(); 107 107 } 108 108 … … 187 187 188 188 // Initialize fMaxBinContent for the case, it gets not set by the derived class 189 fMaxBinContent = f MaxBinContentLimit+ 1;189 fMaxBinContent = fLoGainSwitch + 1; 190 190 191 191 const Int_t pixidx = pixel.GetPixelId(); … … 212 212 // Adapt the low-gain extraction range from the obtained high-gain time 213 213 // 214 if (pixel.HasLoGain() && (fMaxBinContent > f MaxBinContentLimit) )214 if (pixel.HasLoGain() && (fMaxBinContent > fLoGainSwitch) ) 215 215 { 216 216 deltasumlo = 0; // make logain of MExtractedSignalPix valid … … 273 273 } 274 274 275 if (IsEnvDefined(env, prefix, " MaxBinContentLimit", print))275 if (IsEnvDefined(env, prefix, "LoGainSwitch", print)) 276 276 { 277 f MaxBinContentLimit = GetEnvValue(env, prefix, "MaxBinContentLimit", fMaxBinContentLimit);277 fLoGainSwitch = GetEnvValue(env, prefix, "LoGainSwitch", fLoGainSwitch); 278 278 rc = kTRUE; 279 279 } … … 296 296 297 297 *fLog << " LoGainStartShift: " << fLoGainStartShift << endl; 298 *fLog << " MaxBinContentLimit: " << (Int_t)fMaxBinContentLimit<< endl;298 *fLog << " LoGainSwitch: " << (Int_t)fLoGainSwitch << endl; 299 299 MExtractTime::Print(o); 300 300 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h
r5918 r5930 12 12 13 13 static const Float_t fgLoGainStartShift; // Default for fLoGainStartShift (now set to: -2.8) 14 static const Byte_t fg MaxBinContentLimit; // Default for fMaxBinContentLimit(now set to: 100)14 static const Byte_t fgLoGainSwitch; // Default for fLoGainSwitch (now set to: 100) 15 15 16 16 Byte_t fLoGainFirstSave; //! Temporary variable to store the original position of low-gain start slice 17 17 Float_t fLoGainStartShift; // Shift to start searching the low-gain signal obtained from the high-gain times. 18 18 19 Byte_t f MaxBinContentLimit; // Limit for max. bin content before the low-gain gets extracted19 Byte_t fLoGainSwitch; // Limit for max. bin content before the low-gain gets extracted 20 20 21 21 protected: … … 36 36 MExtractTimeAndCharge(const char *name=NULL, const char *title=NULL); 37 37 38 Int_t GetWindowSizeHiGain () const { return fWindowSizeHiGain; 39 Int_t GetWindowSizeLoGain () const { return fWindowSizeLoGain; 40 Byte_t Get MaxBinContentLimit() const { return fMaxBinContentLimit;}38 Int_t GetWindowSizeHiGain () const { return fWindowSizeHiGain; } 39 Int_t GetWindowSizeLoGain () const { return fWindowSizeLoGain; } 40 Byte_t GetLoGainSwitch () const { return fLoGainSwitch; } 41 41 42 42 void Print(Option_t *o="") const; 43 43 44 void SetLoGainStartShift( const Float_t f=fgLoGainStartShift ) 45 void Set MaxBinContentLimit( const Byte_t i=fgMaxBinContentLimit ) { fMaxBinContentLimit= i; }44 void SetLoGainStartShift( const Float_t f=fgLoGainStartShift ) { fLoGainStartShift = f + fOffsetLoGain; } 45 void SetLoGainSwitch ( const Byte_t i=fgLoGainSwitch ) { fLoGainSwitch = i; } 46 46 47 47 virtual void SetWindowSize(Int_t windowh, Int_t windowl) { fWindowSizeHiGain = windowh;
Note:
See TracChangeset
for help on using the changeset viewer.