CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/CalibMuon/DTCalibration/interface/DTResidualFitter.h

Go to the documentation of this file.
00001 #ifndef CalibMuon_DTCalibration_DTResidualFitter_h
00002 #define CalibMuon_DTCalibration_DTResidualFitter_h
00003 
00004 /*
00005  *  $Date: 2010/11/19 14:02:08 $
00006  *  $Revision: 1.3 $
00007  *  \author A. Vilela Pereira
00008  */
00009 
00010 class TH1F;
00011 
00012 struct DTResidualFitResult {
00013 public:
00014    DTResidualFitResult(double mean, double meanErr, double sigma, double sigmaErr): fitMean(mean), 
00015                                                                                     fitMeanError(meanErr),
00016                                                                                     fitSigma(sigma),
00017                                                                                     fitSigmaError(sigmaErr) {} 
00018 
00019    double fitMean;
00020    double fitMeanError;
00021    double fitSigma;
00022    double fitSigmaError;
00023 };
00024 
00025 class DTResidualFitter {
00026 public:
00027    DTResidualFitter(bool debug = false);
00028    ~DTResidualFitter();
00029 
00030    DTResidualFitResult fitResiduals(TH1F& histo, int nSigmas = 1);
00031 
00032 private:
00033    bool debug_;
00034 };
00035 #endif