Changeset 3286
- Timestamp:
- 02/25/04 00:21:47 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3278 r3286 29 29 - test validity of every calibration method before retrieving 30 30 conversion factors 31 32 * mcalib/MHGausEvents.[h,cc] 33 - add possibility to set fit ranges in call to FitGaus 31 34 32 35 -
trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc
r3272 r3286 396 396 // fNDFLimit and whether results are NaNs. 397 397 // 398 Bool_t MHGausEvents::FitGaus(Option_t *option )398 Bool_t MHGausEvents::FitGaus(Option_t *option, const Double_t xmin, const Double_t xmax) 399 399 { 400 400 … … 414 414 // Get the fitting ranges 415 415 // 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; 418 418 419 419 // -
trunk/MagicSoft/Mars/mcalib/MHGausEvents.h
r3272 r3286 47 47 Byte_t fFlags; // Byte to hold the bits fit result bits 48 48 49 UInt_t fCurrentSize;// Current size of the array fEvents49 Int_t fCurrentSize; // Current size of the array fEvents 50 50 51 51 protected: … … 142 142 143 143 // Fits 144 Bool_t FitGaus(Option_t *option="RQ0" ); // Fit the histogram HGausHist with a Gaussian144 Bool_t FitGaus(Option_t *option="RQ0", const Double_t xmin=0., const Double_t xmax=0.); // Fit the histogram HGausHist with a Gaussian 145 145 146 146 // Draws
Note:
See TracChangeset
for help on using the changeset viewer.