Ignore:
Timestamp:
04/20/05 11:59:48 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6774 r6963  
    250250// --------------------------------------------------------------------------
    251251//
     252// Copy High-gain vs. low-gain conversion factors from cam to this.
     253//
     254Bool_t MCalibrationChargeCam::CopyHiLoConversionFactors(const MCalibrationChargeCam &cam) const
     255{
     256
     257  if (GetSize() != cam.GetSize())
     258    {
     259      *fLog << warn << "Sizes mismatch! Cannot merge high-gain vs. low-gain convertion factors" << endl;
     260      return kFALSE;
     261    }
     262
     263  for (Int_t i=0; i<GetSize(); i++)
     264    {
     265      ((MCalibrationChargePix&)(*this)[i]).SetConversionHiLo   (((MCalibrationChargePix&)cam[i]).GetConversionHiLo());
     266      ((MCalibrationChargePix&)(*this)[i]).SetConversionHiLoErr(((MCalibrationChargePix&)cam[i]).GetConversionHiLoErr());
     267    }
     268
     269  return kTRUE;
     270}
     271
     272// --------------------------------------------------------------------------
     273//
    252274// Print first the well fitted pixels
    253275// and then the ones which are not FitValid
Note: See TracChangeset for help on using the changeset viewer.