Changeset 8361 for trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
- Timestamp:
- 03/04/07 12:01:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
r8343 r8361 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.3 6 2007-03-01 21:20:41tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MPedCalcFromLoGain.cc,v 1.37 2007-03-04 12:00:30 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 214 214 return kFALSE; 215 215 216 CheckExtractionWindow(fRunHeader->GetNumSamplesHiGain()); 216 const Int_t nhi = fRunHeader->GetNumSamplesHiGain(); 217 const Int_t nlo = fRunHeader->GetNumSamplesLoGain(); 218 CheckExtractionWindow(nlo>0?nhi:0); 217 219 218 220 return kTRUE; … … 227 229 Int_t MPedCalcFromLoGain::Calc() 228 230 { 231 const Int_t nhi = fRunHeader->GetNumSamplesHiGain(); 232 const Int_t nlo = fRunHeader->GetNumSamplesLoGain(); 233 229 234 // Real Process 230 235 MRawEvtPixelIter pixel(fRawEvt); 231 232 236 while (pixel.Next()) 233 237 { … … 240 244 UInt_t ab[2]; 241 245 const Float_t sum = fExtractor ? 242 CalcExtractor(pixel, pixel.GetNumHiGainSamples()) :243 CalcSums(pixel, pixel.GetNumHiGainSamples(), ab[0], ab[1]);246 CalcExtractor(pixel, nlo>0?nhi:0) : 247 CalcSums(pixel, nlo>0?nhi:0, ab[0], ab[1]); 244 248 245 249 const UInt_t aidx = (*fGeom)[idx].GetAidx();
Note:
See TracChangeset
for help on using the changeset viewer.