CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/CalibCalorimetry/EcalLaserAnalyzer/interface/TMTQ.h

Go to the documentation of this file.
00001 #ifndef TMTQ_H
00002 #define TMTQ_H
00003 
00004 #include <vector>
00005 
00006 class TMom;
00007 
00008 class TMTQ
00009 {
00010 
00011  public:
00012 
00013 
00014   enum outVar { iPeak, iSigma, iFit, iAmpl, iTrise, iFwhm, iFw20, iFw80, iPed, iPedsig, iSlide, nOutVar };
00015   
00016   double cuts[2][nOutVar];
00017 
00018   TMom *mom[nOutVar];
00019 
00020 
00021   // Default Constructor, mainly for Root
00022   TMTQ();
00023 
00024   // Destructor: Does nothing
00025   virtual ~TMTQ();
00026 
00027   void  init();
00028   void  setCut(int, double, double);
00029 
00030   void  addEntry(double, double, double, double, double,  double, double, double,  double, double, double);
00031 
00032   std::vector<double> get(int);
00033   
00034   std::vector<double> getPeak();
00035   std::vector<double> getSigma();
00036   std::vector<double> getFit();
00037   std::vector<double> getAmpl();
00038   std::vector<double> getTrise(); 
00039   std::vector<double> getFwhm();
00040   std::vector<double> getFw20();
00041   std::vector<double> getFw80();
00042   std::vector<double> getPed();
00043   std::vector<double> getPedsig();
00044   std::vector<double> getSliding();
00045 
00046   
00047  public:
00048  
00049   //  ClassDef(TMTQ,0)
00050 };
00051 
00052 #endif