Changeset 8297 for trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
- Timestamp:
- 02/03/07 20:07:52 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r8294 r8297 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.6 1 2007-02-03 15:10:14tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.62 2007-02-03 20:05:35 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 32 32 // Base class for the signal extractors which extract the arrival time 33 33 // and the signal at the same time. Uses the functions 34 // FindTimeAndChargeHiGain() and FindTimeAndChargeLoGain() to extract the signal and35 // substract the pedestal value.34 // FindTimeAndChargeHiGain() and FindTimeAndChargeLoGain() to extract 35 // the signal. 36 36 // 37 37 // The following figure gives and example of possible inheritance trees. … … 53 53 // - fSqrtHiGainSamples 54 54 // - fSqrtLoGainSamples 55 // 56 // 57 // Class Version 3: 58 // ---------------- 59 // - Byte_t fMaxBinContent; 60 // 55 61 // 56 62 // Input Containers: … … 243 249 // For extractors like the digital filter and the spline 244 250 // we allow extracpolation by one slice. 251 // FIXME: Defined Out-Of-Range better so that the extractors 252 // know what to return! 245 253 if (deltatimehi>-0.5 && (timehi<-1 || timehi>=rangehi)) 246 254 { 247 255 // Flag this as unreliable! 248 256 timehi = gRandom->Uniform(rangehi+1)-1; 249 // deltatimehi=-1; 257 // deltatimehi=-1; // Set PIXEL to UNRELIABLE? 250 258 } 251 259 … … 323 331 numsatlo = fSignal->GetSaturation(pixidx, fSaturationLimit, satlo0, satlo1); 324 332 333 //if (satlo0>first && satlo1<last && numsatlo>2) 334 //{ 335 // fSignal->InterpolateSaturation(pixidx, fSaturationLimit, satlo0, satlo1); 336 // numsatlo = 0; 337 //} 338 325 339 const Int_t rangelo = last-first+1; 326 340 FindTimeAndChargeLoGain2(sig+first, rangelo, … … 345 359 // Flag this as unreliable! 346 360 timelo = gRandom->Uniform(rangelo+1)-1; 347 //deltatimelo=-1; 361 //deltatimelo=-1; // Set PIXEL to UNRELIABLE? 348 362 } 349 363 … … 356 370 deltasumlo=deltatimelo=-1; 357 371 372 // The extracted lo-gain signal cannot be zero or 373 // negative at all, so it must be wrong 374 if (sumlo<=0) 375 deltasumlo=-1; 376 358 377 //if (TMath::Abs(timelo-fOffsetLoGain - timehi)>1.0) 359 378 // deltatimelo = -1; 360 379 } 361 362 380 363 381 // Now store the result in the corresponding containers
Note:
See TracChangeset
for help on using the changeset viewer.