Changeset 8165 for trunk/MagicSoft/Mars/mextralgo
- Timestamp:
- 10/25/06 19:36:26 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mextralgo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mextralgo/MExtralgoDigitalFilter.cc
r8154 r8165 210 210 // Take also a possible offset from timefineadjust into account 211 211 // Sould it be: fTime += fWindowSize/2; ??? 212 213 // HERE we should add the distance from the beginning of the 214 // extraction window to the leading edge! 212 215 fTime += 0.5 + 0.5/fWeightsPerBin; 213 // In the ideal case the would never get <0214 // But timefineadjust can be >0.05 (in 60% of the cases)215 216 216 // Define in each extractor a lowest and highest extracted value! 217 217 218 // here, the first high-gain slice is already included219 // in the fTimeShiftHiGain this shifts the time to the220 // start of the rising edge221 222 // This is from MExtractTimeAndChargeDigitalFilter223 // fTime += 0.5 + 1./fWeightsPerBin;224 225 // Now there is a difference between the rising edge and226 // the extracted time. This must be applied after227 // the randomization in case of wrog values228 229 218 const Float_t timefineadjust = sumtime/sumamp; 230 231 // FIXME: Is 3 a good value?232 //if (TMath::Abs(timefineadjust)*fWeightsPerBin < 3.)233 // fTime -= timefineadjust;234 235 // if (TMath::FloorNint(timefineadjust+0.5)==0)236 219 237 220 //if (TMath::Abs(timefineadjust) < 0.2) -
trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.cc
r8158 r8165 69 69 void MExtralgoSpline::InitDerivatives() const 70 70 { 71 if (fNum<2) 72 return; 73 71 74 fDer1[0] = 0.; 72 75 fDer2[0] = 0.; … … 211 214 Float_t MExtralgoSpline::ExtractNoise(/*Int_t iter*/) 212 215 { 216 if (fNum<5) 217 return 0; 218 213 219 // FIXME: Shell we keep the extraction inside one slice 214 220 // or randomize it along the extraction window? … … 216 222 217 223 if (fExtractionType == kAmplitude) 218 return Eval( 1, nsx);224 return Eval(2, nsx); 219 225 else 220 return CalcIntegral(2 .+ nsx);226 return CalcIntegral(2 + nsx); 221 227 } 222 228 … … 227 233 fSignalDev = -1; 228 234 fTimeDev = -1; 235 236 if (fNum<2) 237 return; 229 238 /* 230 239 // … … 373 382 374 383 Float_t maxpos, maxval; 375 // FIXME: Check the d feault if no maximum found!!!384 // FIXME: Check the default if no maximum found!!! 376 385 GetMaxAroundI(maxbin, maxpos, maxval); 377 386
Note:
See TracChangeset
for help on using the changeset viewer.