Changeset 2825


Ignore:
Timestamp:
01/16/04 11:20:15 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2824 r2825  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6
     7 2004/01/16: Abelardo Moralejo
     8   * manalysis/MMcCalibrationCalc.cc
     9     - TMath::Max() is no longer used because it did not compile in some
     10       systems for unkown reasons. I replaced it by a safer (and may be
     11       slower) code.
     12
    613 2004/01/15: Abelardo Moralejo
    714
  • trunk/MagicSoft/Mars/manalysis/MMcCalibrationCalc.cc

    r2801 r2825  
    223223        //
    224224
     225
    225226        const Float_t pedestrms  = sigpix.IsLoGainUsed()?
    226           sqrt((Double_t)(fSignalCam->GetNumUsedLoGainFADCSlices())) * TMath::Max(0.01, fHeaderFadc->GetPedestalRmsLow(i)) :
    227           sqrt((Double_t)(fSignalCam->GetNumUsedHiGainFADCSlices())) * TMath::Max(0.01, fHeaderFadc->GetPedestalRmsHigh(i));
     227          sqrt((Double_t)(fSignalCam->GetNumUsedLoGainFADCSlices())) *
     228          (fHeaderFadc->GetPedestalRmsLow(i)>0.? fHeaderFadc->GetPedestalRmsLow(i): 0.01)
     229          :
     230          sqrt((Double_t)(fSignalCam->GetNumUsedHiGainFADCSlices())) *
     231          (fHeaderFadc->GetPedestalRmsHigh(i)>0.? fHeaderFadc->GetPedestalRmsHigh(i) : 0.01);
    228232
    229233        calpix.SetPedestal(pedestmean, pedestrms);
Note: See TracChangeset for help on using the changeset viewer.