Changeset 3048 for trunk/MagicSoft


Ignore:
Timestamp:
02/06/04 19:43:15 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc

    r3038 r3048  
    380380{
    381381
     382  if (GetSize() <= idx)
     383    return kFALSE;
     384
    382385  if (!(*this)[idx].IsValid())
    383386    return kFALSE;
     
    392395  const Float_t rmserr   = rms/TMath::Sqrt((Float_t)fTotalEntries*2.);
    393396
    394   const MHPedestalPixel &hist = (*this)(idx);
    395 
    396   const Float_t mean     = hist.GetChargeMean();
    397   const Float_t meanerr  = hist.GetChargeMeanErr();
    398   const Float_t sigma    = hist.GetChargeSigma() ;
    399   const Float_t sigmaerr = hist.GetChargeSigmaErr();
    400   const Float_t prob     = hist.GetChargeProb();
     397  Float_t mean     = 0.;
     398  Float_t meanerr  = 0.;
     399  Float_t sigma    = 0.;
     400  Float_t sigmaerr = 0.;
     401  Float_t prob     = 0.;
     402 
     403  if (type > 3)
     404    if (GetHistSize() != 0)
     405      {
     406        if (!(*this)(idx).IsFitOK())
     407          return kFALSE;
     408
     409        const MHPedestalPixel &hist = (*this)(idx);
     410        mean     = hist.GetChargeMean();
     411        meanerr  = hist.GetChargeMeanErr();
     412        sigma    = hist.GetChargeSigma() ;
     413        sigmaerr = hist.GetChargeSigmaErr();
     414        prob     = hist.GetChargeProb();
     415      }
     416    else
     417      return kFALSE;
    401418
    402419  switch (type)
Note: See TracChangeset for help on using the changeset viewer.