Changeset 6840 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 03/16/05 19:30:45 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r6820 r6840 85 85 using namespace std; 86 86 87 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = - 4.0;87 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -3.5; 88 88 const Byte_t MExtractTimeAndCharge::fgLoGainSwitch = 120; 89 89 // -------------------------------------------------------------------------- … … 217 217 fLoGainFirstSave = fLoGainFirst; 218 218 const Byte_t logainstart = sathi 219 ? (sathi > (Int_t)(- fLoGainStartShift) ? sathi + (Int_t)fLoGainStartShift : fLoGainFirst)219 ? (sathi > (Int_t)(-1*fLoGainStartShift) ? sathi + (Int_t)fLoGainStartShift : fLoGainFirst) 220 220 : (timehi+fLoGainStartShift > 0. ? (Byte_t)(timehi + fLoGainStartShift) : fLoGainFirst); 221 221 fLoGainFirst = logainstart > fLoGainFirstSave ? logainstart : fLoGainFirstSave; … … 223 223 // *fLog << err << (Int_t)fLoGainFirst << endl; 224 224 225 if ( fLoGainFirst < fLoGainLast)225 if ( fLoGainFirst <= fLoGainLast-fWindowSizeLoGain) 226 226 { 227 227 const Bool_t logainabflag = (higainabflag + pixel.GetNumHiGainSamples()) & 0x1; -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r6573 r6840 70 70 const Byte_t MExtractTimeAndChargeDigitalFilter::fgHiGainFirst = 0; 71 71 const Byte_t MExtractTimeAndChargeDigitalFilter::fgHiGainLast = 15; 72 const Byte_t MExtractTimeAndChargeDigitalFilter::fgLoGainFirst = 3;72 const Byte_t MExtractTimeAndChargeDigitalFilter::fgLoGainFirst = 1; 73 73 const Byte_t MExtractTimeAndChargeDigitalFilter::fgLoGainLast = 14; 74 74 const Int_t MExtractTimeAndChargeDigitalFilter::fgWindowSizeHiGain = 6; … … 79 79 const Int_t MExtractTimeAndChargeDigitalFilter::fgSignalStartBinLoGain = 4; 80 80 const TString MExtractTimeAndChargeDigitalFilter::fgNameWeightsFile = "msignal/cosmics_weights.dat"; 81 const Float_t MExtractTimeAndChargeDigitalFilter::fgOffsetLoGain = 1.8; // 5 ns 81 const Float_t MExtractTimeAndChargeDigitalFilter::fgOffsetLoGain = 1.7; // 5 ns 82 const Float_t MExtractTimeAndChargeDigitalFilter::fgLoGainStartShift = -1.8; 82 83 // -------------------------------------------------------------------------- 83 84 // … … 104 105 SetNameWeightsFile(); 105 106 SetOffsetLoGain(fgOffsetLoGain); 107 SetLoGainStartShift(fgLoGainStartShift); 106 108 } 107 109 … … 279 281 if (*p++ >= fSaturationLimit) 280 282 if (!sat) 281 sat = ids- 4;283 sat = ids-3; 282 284 } 283 285 … … 311 313 if (*logain++ >= fSaturationLimit) 312 314 if (!sat) 313 sat = ids- 4;315 sat = ids-3; 314 316 } 315 317 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h
r6128 r6840 32 32 static const Int_t fgSignalStartBinLoGain; //! Default for fSignalStartBinLoGain (now set to: 4) 33 33 static const TString fgNameWeightsFile; //! "cosmics_weights.dat" 34 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.8) 34 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.7) 35 static const Float_t fgLoGainStartShift; //! Default for fLoGainStartShift (now set to -1.8) 35 36 36 37 MArrayF fHiGainSignal; //! Need fast access to the signals in a float way -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc
r6168 r6840 441 441 SetWindowSize(hw, lw); 442 442 443 return MExtractTime ::ReadEnv(env, prefix, print) ? kTRUE : rc;444 445 } 446 443 return MExtractTimeAndCharge::ReadEnv(env, prefix, print) ? kTRUE : rc; 444 445 } 446 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r6769 r6840 150 150 using namespace std; 151 151 152 const Byte_t MExtractTimeAndChargeSpline::fgHiGainFirst = 2; 153 const Byte_t MExtractTimeAndChargeSpline::fgHiGainLast = 14; 154 const Byte_t MExtractTimeAndChargeSpline::fgLoGainFirst = 2; 155 const Byte_t MExtractTimeAndChargeSpline::fgLoGainLast = 14; 156 const Float_t MExtractTimeAndChargeSpline::fgResolution = 0.05; 157 const Float_t MExtractTimeAndChargeSpline::fgRiseTimeHiGain = 0.5; 158 const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain = 1.5; 159 const Float_t MExtractTimeAndChargeSpline::fgLoGainStretch = 1.5; 160 const Float_t MExtractTimeAndChargeSpline::fgOffsetLoGain = 1.7; // 5 ns 152 const Byte_t MExtractTimeAndChargeSpline::fgHiGainFirst = 2; 153 const Byte_t MExtractTimeAndChargeSpline::fgHiGainLast = 14; 154 const Byte_t MExtractTimeAndChargeSpline::fgLoGainFirst = 1; 155 const Byte_t MExtractTimeAndChargeSpline::fgLoGainLast = 14; 156 const Float_t MExtractTimeAndChargeSpline::fgResolution = 0.05; 157 const Float_t MExtractTimeAndChargeSpline::fgRiseTimeHiGain = 0.5; 158 const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain = 1.5; 159 const Float_t MExtractTimeAndChargeSpline::fgLoGainStretch = 1.5; 160 const Float_t MExtractTimeAndChargeSpline::fgOffsetLoGain = 1.7; // 5 ns 161 const Float_t MExtractTimeAndChargeSpline::fgLoGainStartShift = -1.8; 161 162 // -------------------------------------------------------------------------- 162 163 // … … 184 185 SetLoGainStretch(); 185 186 SetOffsetLoGain(fgOffsetLoGain); 187 SetLoGainStartShift(fgLoGainStartShift); 186 188 187 189 SetRiseTimeHiGain(); … … 352 354 if (*p++ >= fSaturationLimit) 353 355 if (!sat) 354 sat = ids- 2;356 sat = ids-3; 355 357 356 358 } … … 374 376 if (*logain++ >= fSaturationLimit) 375 377 if (!sat) 376 sat = ids- 2;378 sat = ids-3; 377 379 378 380 range++; … … 718 720 fAbMaxPos = 0.; 719 721 Int_t maxpos = 0; 720 Int_t max = 0;722 Int_t max = -9999; 721 723 722 724 // -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h
r6828 r6840 16 16 private: 17 17 18 static const Byte_t fgHiGainFirst; //! Default for fHiGainFirst (now set to: 2) 19 static const Byte_t fgHiGainLast; //! Default for fHiGainLast (now set to: 14) 20 static const Byte_t fgLoGainFirst; //! Default for fLoGainFirst (now set to: 2) 21 static const Byte_t fgLoGainLast; //! Default for fLoGainLast (now set to: 14) 22 static const Float_t fgResolution; //! Default for fResolution (now set to: 0.003) 23 static const Float_t fgRiseTimeHiGain; //! Default for fRiseTime (now set to: 1.5) 24 static const Float_t fgFallTimeHiGain; //! Default for fFallTime (now set to: 4.5) 25 static const Float_t fgLoGainStretch; //! Default for fLoGainStretch (now set to: 1.5) 26 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.7) 18 static const Byte_t fgHiGainFirst; //! Default for fHiGainFirst (now set to: 2) 19 static const Byte_t fgHiGainLast; //! Default for fHiGainLast (now set to: 14) 20 static const Byte_t fgLoGainFirst; //! Default for fLoGainFirst (now set to: 2) 21 static const Byte_t fgLoGainLast; //! Default for fLoGainLast (now set to: 14) 22 static const Float_t fgResolution; //! Default for fResolution (now set to: 0.003) 23 static const Float_t fgRiseTimeHiGain; //! Default for fRiseTime (now set to: 1.5) 24 static const Float_t fgFallTimeHiGain; //! Default for fFallTime (now set to: 4.5) 25 static const Float_t fgLoGainStretch; //! Default for fLoGainStretch (now set to: 1.5) 26 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.7) 27 static const Float_t fgLoGainStartShift; //! Default for fLoGainStartShift (now set to -1.6) 27 28 28 29 MArrayF fHiGainSignal; //! Need fast access to the signals in a float way
Note:
See TracChangeset
for help on using the changeset viewer.