Ignore:
Timestamp:
02/16/04 10:58:17 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3177 r3180  
    187187Bool_t MHCalibrationRelTimeCam::Finalize()
    188188{
    189     for (Int_t i=0; i<fArray->GetSize(); i++)
    190     {
    191 
    192         MHCalibrationRelTimePix &hist = (*this)[i];
    193 
    194         //
    195         // 1) Return if the charge distribution is already succesfully fitted
    196         //    or if the histogram is empty
    197         //
    198         if (hist.IsGausFitOK() || hist.IsEmpty())
    199           continue;
    200 
    201         //
    202         // 2) Fit the Hi Gain histograms with a Gaussian
    203         //
    204         hist.FitGaus();
    205        
    206         //
    207         // 3) If fit does not succeed , bypass the fit and take the histogram means and sigmas
    208         //
    209         if (!hist.IsGausFitOK())
    210           hist.BypassFit();
    211 
    212         //
    213         // 4) Create the fourier transform of the arrays
    214         //
    215         hist.CreateFourierSpectrum();
    216 
    217         //
    218         // 5) Renormalize to the real time in ns.
    219         //
    220         hist.Renorm(fTimeSliceWidth);
    221 
    222     }
    223     return kTRUE;
     189
     190  for (Int_t i=0; i<fArray->GetSize(); i++)
     191    {
     192     
     193      MHCalibrationRelTimePix &hist = (*this)[i];
     194     
     195      //
     196      // 1) Return if the charge distribution is already succesfully fitted
     197      //    or if the histogram is empty
     198      //
     199      if (hist.IsGausFitOK() || hist.IsEmpty())
     200        continue;
     201     
     202      //
     203      // 2) Fit the Hi Gain histograms with a Gaussian
     204      //
     205      hist.FitGaus();
     206     
     207      //
     208      // 3) If fit does not succeed , bypass the fit and take the histogram means and sigmas
     209      //
     210      if (!hist.IsGausFitOK())
     211        hist.BypassFit();
     212     
     213      //
     214      // 4) Create the fourier transform of the arrays
     215      //
     216      hist.CreateFourierSpectrum();
     217     
     218      //
     219      // 5) Renormalize to the real time in ns.
     220      //
     221      hist.Renorm(fTimeSliceWidth);
     222     
     223    }
     224  return kTRUE;
    224225}
    225226
Note: See TracChangeset for help on using the changeset viewer.