Changeset 3286 for trunk


Ignore:
Timestamp:
02/25/04 00:21:47 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3278 r3286  
    2929     - test validity of every calibration method before retrieving
    3030       conversion factors
     31
     32   * mcalib/MHGausEvents.[h,cc]
     33     - add possibility to set fit ranges in call to FitGaus
    3134
    3235
  • trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc

    r3272 r3286  
    396396// fNDFLimit and whether results are NaNs.
    397397//
    398 Bool_t MHGausEvents::FitGaus(Option_t *option)
     398Bool_t MHGausEvents::FitGaus(Option_t *option, const Double_t xmin, const Double_t xmax)
    399399{
    400400
     
    414414  // Get the fitting ranges
    415415  //
    416   Axis_t rmin = fHGausHist.GetBinCenter(fHGausHist.GetXaxis()->GetFirst());
    417   Axis_t rmax = fHGausHist.GetBinCenter(fHGausHist.GetXaxis()->GetLast());
     416  Axis_t rmin = (xmin==0.) && (xmax==0.) ? fHGausHist.GetBinCenter(fHGausHist.GetXaxis()->GetFirst()) : xmin;
     417  Axis_t rmax = (xmin==0.) && (xmax==0.) ? fHGausHist.GetBinCenter(fHGausHist.GetXaxis()->GetLast())  : xmax;
    418418
    419419  //
  • trunk/MagicSoft/Mars/mcalib/MHGausEvents.h

    r3272 r3286  
    4747  Byte_t fFlags;                       //   Byte to hold the bits fit result bits
    4848 
    49   UInt_t fCurrentSize;                 //   Current size of the array fEvents
     49  Int_t fCurrentSize;                  //   Current size of the array fEvents
    5050 
    5151protected:
     
    142142 
    143143  // Fits
    144   Bool_t FitGaus(Option_t *option="RQ0");     // Fit the histogram HGausHist with a Gaussian
     144  Bool_t FitGaus(Option_t *option="RQ0", const Double_t xmin=0., const Double_t xmax=0.);     // Fit the histogram HGausHist with a Gaussian
    145145
    146146  // Draws
Note: See TracChangeset for help on using the changeset viewer.