- Timestamp:
- 04/25/07 15:39:43 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r8434 r8446 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.3 7 2007-04-23 19:06:28tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.38 2007-04-25 14:39:43 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 390 390 391 391 // Get position of maximum 392 const Int_t pos = evt->GetMax(idx /*, first, last*/);392 const Int_t pos = evt->GetMax(idx); 393 393 const Float_t max = evt->GetSamples(idx)[pos]; 394 394 … … 413 413 for (UInt_t j=0; j<nareas; j++) 414 414 { 415 const Int_t npix = fAverageAreaNum[j]; 416 417 if (npix > fNumPixelsRequired) 415 if (fAverageAreaNum[j] > fNumPixelsRequired) 418 416 { 417 sumarea[j] /= fAverageAreaNum[j]; 418 419 419 if (IsOscillations()) 420 GetAverageHiGainArea(j).FillHistAndArray(sumarea[j] /npix);420 GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]); 421 421 else 422 GetAverageHiGainArea(j).FillHist(sumarea[j] /npix);422 GetAverageHiGainArea(j).FillHist(sumarea[j]); 423 423 424 424 } … … 427 427 for (UInt_t j=0; j<nsectors; j++) 428 428 { 429 const Int_t npix = fAverageSectorNum[j]; 430 431 if (npix > 0) 429 if (fAverageSectorNum[j] > 0) 432 430 { 431 sumsector[j] /= fAverageSectorNum[j]; 432 433 433 if (IsOscillations()) 434 GetAverageHiGainSector(j).FillHistAndArray(sumsector[j] /npix);434 GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]); 435 435 else 436 GetAverageHiGainSector(j).FillHist(sumsector[j] /npix);436 GetAverageHiGainSector(j).FillHist(sumsector[j]); 437 437 } 438 438 }
Note:
See TracChangeset
for help on using the changeset viewer.