Ignore:
Timestamp:
06/14/08 16:55:58 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc

    r8642 r8957  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MCalibrateData.cc,v 1.70 2007-07-18 19:30:12 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MCalibrateData.cc,v 1.71 2008-06-14 15:55:51 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    558558                // Correct for global shifts in light emission
    559559                //
    560                 const MCalibrationChargePix &ugpix = (MCalibrationChargePix&)updatecam->GetAverageArea(0);
     560                const MCalibrationChargePix &ugpix = static_cast<const MCalibrationChargePix&>(updatecam->GetAverageArea(0));
    561561
    562562                const Float_t globmean = avpix.GetConvertedMean();
    563563                calibUpdate = globmean==0 ? 1 : ugpix.GetConvertedMean()/globmean;
    564564
    565                 MBadPixelsPix &ubad  = (MBadPixelsPix&)updatecam->GetAverageBadArea(0);
     565                const MBadPixelsPix &ubad  = static_cast<const MBadPixelsPix&>(updatecam->GetAverageBadArea(0));
    566566                if (ubad.IsUncalibrated(MBadPixelsPix::kChargeIsPedestal))
    567567                  {
     
    698698// shall be calibrated, respectively.
    699699//
    700 Int_t MCalibrateData::Calibrate(Bool_t data, Bool_t pedestal) const
    701 {
    702     if (!data && !pedestal)
     700Int_t MCalibrateData::Calibrate(Bool_t data, Bool_t doped) const
     701{
     702    if (!data && !doped)
    703703        return kTRUE;
    704704
     
    763763        } /* if (data) */
    764764     
    765         if (pedestal)
     765        if (doped)
    766766        {
    767767            TIter NextPed(&fPedestalCams);
  • trunk/MagicSoft/Mars/mcalib/MCalibrationPulseTimeCam.cc

    r8506 r8957  
    199199  Float_t area = cam[idx].GetA();
    200200
    201  if (area == 0)
     201  if (area == 0)
    202202    return kFALSE;
    203203
    204  MCalibrationPix &pix = (MCalibrationPix&)(*this)[idx];
     204  const MCalibrationPix &pix = static_cast<const MCalibrationPix&>((*this)[idx]);
    205205
    206206  switch (type)
Note: See TracChangeset for help on using the changeset viewer.