Changeset 8957 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 06/14/08 16:55:58 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r8642 r8957 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MCalibrateData.cc,v 1.7 0 2007-07-18 19:30:12tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MCalibrateData.cc,v 1.71 2008-06-14 15:55:51 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 558 558 // Correct for global shifts in light emission 559 559 // 560 const MCalibrationChargePix &ugpix = (MCalibrationChargePix&)updatecam->GetAverageArea(0);560 const MCalibrationChargePix &ugpix = static_cast<const MCalibrationChargePix&>(updatecam->GetAverageArea(0)); 561 561 562 562 const Float_t globmean = avpix.GetConvertedMean(); 563 563 calibUpdate = globmean==0 ? 1 : ugpix.GetConvertedMean()/globmean; 564 564 565 MBadPixelsPix &ubad = (MBadPixelsPix&)updatecam->GetAverageBadArea(0);565 const MBadPixelsPix &ubad = static_cast<const MBadPixelsPix&>(updatecam->GetAverageBadArea(0)); 566 566 if (ubad.IsUncalibrated(MBadPixelsPix::kChargeIsPedestal)) 567 567 { … … 698 698 // shall be calibrated, respectively. 699 699 // 700 Int_t MCalibrateData::Calibrate(Bool_t data, Bool_t pedestal) const701 { 702 if (!data && ! pedestal)700 Int_t MCalibrateData::Calibrate(Bool_t data, Bool_t doped) const 701 { 702 if (!data && !doped) 703 703 return kTRUE; 704 704 … … 763 763 } /* if (data) */ 764 764 765 if ( pedestal)765 if (doped) 766 766 { 767 767 TIter NextPed(&fPedestalCams); -
trunk/MagicSoft/Mars/mcalib/MCalibrationPulseTimeCam.cc
r8506 r8957 199 199 Float_t area = cam[idx].GetA(); 200 200 201 if (area == 0)201 if (area == 0) 202 202 return kFALSE; 203 203 204 MCalibrationPix &pix = (MCalibrationPix&)(*this)[idx];204 const MCalibrationPix &pix = static_cast<const MCalibrationPix&>((*this)[idx]); 205 205 206 206 switch (type)
Note:
See TracChangeset
for help on using the changeset viewer.