Changeset 7731 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 05/23/06 16:31:41 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r7095 r7731 63 63 #include "MExtractTimeAndCharge.h" 64 64 65 #include <TRandom.h> 66 65 67 #include "MLog.h" 66 68 #include "MLogManip.h" … … 87 89 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -3.5; 88 90 const Byte_t MExtractTimeAndCharge::fgLoGainSwitch = 120; 91 89 92 // -------------------------------------------------------------------------- 90 93 // … … 197 200 // Make sure that in cases the time couldn't be correctly determined 198 201 // more meaningfull default values are assigned 199 if (timehi<0) 200 timehi = -1; 201 if (timehi>pixel.GetNumHiGainSamples()) 202 timehi = pixel.GetNumHiGainSamples(); 202 if (timehi<=0 || timehi>pixel.GetNumHiGainSamples()) 203 timehi = gRandom->Uniform(pixel.GetNumHiGainSamples()); 203 204 204 205 Float_t sumlo =0., deltasumlo =-1.; // invalidate logain of MExtractedSignalPix … … 235 236 // Make sure that in cases the time couldn't be correctly determined 236 237 // more meaningfull default values are assigned 237 if (timelo<0) 238 timelo = -1; 239 if (timelo>pixel.GetNumLoGainSamples()) 240 timelo = pixel.GetNumLoGainSamples(); 238 if (timelo<=0 || timelo>pixel.GetNumLoGainSamples()) 239 timelo = gRandom->Uniform(pixel.GetNumLoGainSamples()); 241 240 } 242 241
Note:
See TracChangeset
for help on using the changeset viewer.