Ignore:
Timestamp:
02/08/04 20:52:18 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3007 r3056  
    8888  fPed                              =  -1.;
    8989  fPedRms                           =  -1.;
    90   fTime                             =  -1.;
    91   fSigmaTime                        =  -1.;
    92   fTimeChiSquare                    =  -1.;
    93 
    9490}
    9591
     
    271267}
    272268
    273 
    274 // --------------------------------------------------------------------------
    275 //
    276 // 1) Fit the arrival times
    277 // 2) Retrieve the results
    278 // 3) Note that because of the low number of bins, the NDf is sometimes 0, so
    279 //    Root does not give a reasonable Probability, the Chisquare is more significant
    280 //
    281 Bool_t MCalibrationPINDiode::FitTime()
    282 {
    283 
    284   if(!fHist->FitTime())
    285     {
    286       *fLog << warn << "WARNING: Could not fit Hi Gain times of PIN Diode" << endl;
    287       fHist->PrintTimeFitResult();
    288       return kFALSE;
    289     }
    290  
    291   fTime          = fHist->GetRelTimeMean();
    292   fSigmaTime     = fHist->GetRelTimeSigma();
    293   fTimeProb      = fHist->GetRelTimeProb();
    294  
    295   if (CheckTimeFitValidity())
    296     SETBIT(fFlags,kTimeFitValid);
    297   else
    298     CLRBIT(fFlags,kTimeFitValid);
    299 
    300   return kTRUE;
    301 }
    302 
    303269//
    304270// The check returns kTRUE if:
Note: See TracChangeset for help on using the changeset viewer.