Changeset 8297 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 02/03/07 20:07:52 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 3 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 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h
r8192 r8297 55 55 void Print(Option_t *o="") const; //*MENU* 56 56 57 ClassDef(MExtractTimeAndCharge, 2) // Time And Charge Extractor Base Class57 ClassDef(MExtractTimeAndCharge, 3) // Time And Charge Extractor Base Class 58 58 }; 59 59 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r8166 r8297 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeSpline.cc,v 1.6 4 2006-10-25 18:41:47tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeSpline.cc,v 1.65 2007-02-03 20:07:52 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 161 161 const Byte_t MExtractTimeAndChargeSpline::fgLoGainLast = 14; 162 162 const Float_t MExtractTimeAndChargeSpline::fgResolution = 0.05; 163 const Float_t MExtractTimeAndChargeSpline::fgRiseTimeHiGain = 0. 7;164 const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain = 1.0;163 const Float_t MExtractTimeAndChargeSpline::fgRiseTimeHiGain = 0.64; 164 const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain = 0.76; 165 165 const Float_t MExtractTimeAndChargeSpline::fgLoGainStretch = 1.5; 166 166 const Float_t MExtractTimeAndChargeSpline::fgOffsetLoGain = 1.3; … … 181 181 // 182 182 MExtractTimeAndChargeSpline::MExtractTimeAndChargeSpline(const char *name, const char *title) 183 : /*fRandomIter(0),*/fExtractionType(kIntegral)183 : fExtractionType(kIntegral) 184 184 { 185 185
Note:
See TracChangeset
for help on using the changeset viewer.