Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:25

0001 #ifndef CalibMuon_DTMeanTimerFitter_H
0002 #define CalibMuon_DTMeanTimerFitter_H
0003 
0004 /** \class DTMeanTimerFitter
0005  *  Fit the Tmax histograms with a gaussian 
0006  *  returning the mean values and the sigmas.
0007  *
0008  *  \author S. Bolognesi - INFN Torino
0009  */
0010 #include <vector>
0011 #include "TString.h"
0012 
0013 class TH1F;
0014 class TFile;
0015 class TF1;
0016 
0017 class DTMeanTimerFitter {
0018 public:
0019   /// Constructor
0020   DTMeanTimerFitter(TFile* file);
0021 
0022   /// Destructor
0023   virtual ~DTMeanTimerFitter();
0024 
0025   /// Fit the TMax histos and evaluate VDrift and resolution
0026   std::vector<float> evaluateVDriftAndReso(const TString& N);
0027 
0028   /// Set the verbosity of the output: 0 = silent, 1 = info, 2 = debug
0029   void setVerbosity(unsigned int lvl) { theVerbosityLevel = lvl; }
0030 
0031   /// Really do the fit
0032   TF1* fitTMax(TH1F* histo);
0033 
0034 protected:
0035 private:
0036   TFile* hDebugFile;
0037   TFile* hInputFile;
0038 
0039   unsigned int theVerbosityLevel;
0040 };
0041 
0042 #endif