Ignore:
Timestamp:
01/16/04 11:20:15 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.