Changeset 8358 for trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
- Timestamp:
- 03/03/07 22:48:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r8297 r8358 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.6 2 2007-02-03 20:05:35tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.63 2007-03-03 22:46:10 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 84 84 #include "MParList.h" 85 85 86 #include "MRawRunHeader.h" 86 87 #include "MRawEvtPixelIter.h" 87 #include "MRawRunHeader.h"88 88 89 89 #include "MArrivalTimeCam.h" … … 168 168 fSignals->SetUsedFADCSlices(fHiGainFirst, fHiGainLast, fNumHiGainSamples, 169 169 fLoGainFirst, fLoGainLast, fNumLoGainSamples); 170 171 if (!HasLoGain()) 172 { 173 *fLog << inf << "No lo-gains... resetting lo-gain switch." << endl; 174 fLoGainSwitch=0xff; 175 } 176 170 177 return kTRUE; 171 178 } … … 206 213 Int_t MExtractTimeAndCharge::Process() 207 214 { 215 const Int_t numh = fRunHeader->GetNumSamplesHiGain(); 216 const Int_t numl = fRunHeader->GetNumSamplesLoGain(); 217 208 218 MRawEvtPixelIter pixel(fRawEvt); 209 210 219 while (pixel.Next()) 211 220 { … … 213 222 214 223 const Float_t *sig = fSignal->GetSamples(pixidx); 215 216 const Int_t numh = pixel.GetNumHiGainSamples();217 224 218 225 Int_t sathi0 = fHiGainFirst; // First slice to extract and first saturating slice … … 286 293 287 294 // FIXME: What to do with the pixel if it saturates too early??? 288 if ( pixel.HasLoGain()&& maxcont>fLoGainSwitch)295 if (numl>0 && maxcont>fLoGainSwitch) 289 296 { 290 297 Int_t first = numh+fLoGainFirst; … … 424 431 MExtractTime::Print(o); 425 432 426 *fLog << dec; 427 *fLog << " LoGainStartShift: " << fLoGainStartShift << endl; 428 *fLog << " LoGainSwitch: " << (Int_t)fLoGainSwitch << endl; 429 } 433 if (HasLoGain()) 434 { 435 *fLog << dec; 436 *fLog << " LoGainStartShift: " << fLoGainStartShift << endl; 437 *fLog << " LoGainSwitch: " << (Int_t)fLoGainSwitch << endl; 438 } 439 }
Note:
See TracChangeset
for help on using the changeset viewer.