Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:47

0001 #ifndef TMTQ_H
0002 #define TMTQ_H
0003 
0004 #include <vector>
0005 
0006 class TMom;
0007 
0008 class TMTQ {
0009 public:
0010   enum outVar { iPeak, iSigma, iFit, iAmpl, iTrise, iFwhm, iFw20, iFw80, iPed, iPedsig, iSlide, nOutVar };
0011 
0012   double cuts[2][nOutVar];
0013 
0014   TMom *mom[nOutVar];
0015 
0016   // Default Constructor, mainly for Root
0017   TMTQ();
0018 
0019   // Destructor: Does nothing
0020   virtual ~TMTQ();
0021 
0022   void init();
0023   void setCut(int, double, double);
0024 
0025   void addEntry(double, double, double, double, double, double, double, double, double, double, double);
0026 
0027   std::vector<double> get(int);
0028 
0029   std::vector<double> getPeak();
0030   std::vector<double> getSigma();
0031   std::vector<double> getFit();
0032   std::vector<double> getAmpl();
0033   std::vector<double> getTrise();
0034   std::vector<double> getFwhm();
0035   std::vector<double> getFw20();
0036   std::vector<double> getFw80();
0037   std::vector<double> getPed();
0038   std::vector<double> getPedsig();
0039   std::vector<double> getSliding();
0040 
0041 public:
0042   //  ClassDef(TMTQ,0)
0043 };
0044 
0045 #endif