CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CalibCalorimetry/EcalLaserAnalyzer/interface/TPEDestalAnalysis.h

Go to the documentation of this file.
00001 #ifndef TPEDestalAnalysis_H
00002 #define TPEDestalAnalysis_H
00003 
00004 #include "TObject.h"
00005 
00006 #define fNpns 2
00007 #define fNchans 400
00008 #define ngains 3
00009 
00010 class TPEDestalAnalysis: public TObject 
00011 {
00012 
00013  private:
00014 
00015   int nevt;
00016   long int timestart[ngains],timestop[ngains];
00017   long int pntimestart[ngains],pntimestop[ngains];
00018   double valhf[ngains][fNchans+fNpns],sighf[ngains][fNchans+fNpns];
00019   double valbf[ngains][fNchans+fNpns],sigbf[ngains][fNchans+fNpns];
00020   double evts[ngains][fNchans+fNpns],evtn[ngains][fNchans+fNpns];
00021 
00022   double cuthflow[ngains][fNchans+fNpns],cuthfhig[ngains][fNchans+fNpns];
00023   double cutbflow[ngains][fNchans+fNpns],cutbfhig[ngains][fNchans+fNpns];
00024 
00025   void init();
00026 
00027  public:
00028   // Default Constructor, mainly for Root
00029   TPEDestalAnalysis();
00030 
00031   // Destructor: Does nothing
00032   virtual ~TPEDestalAnalysis();
00033 
00034   void reinit();
00035   void reinit(int);
00036   void putDateStart(int,long int);
00037   void putDateStop(int,long int);
00038   void putpnDateStart(int,long int);
00039   void putpnDateStop(int,long int);
00040   void getDateStart(int);
00041   void getDateStop(int);
00042   double getCuthflow(int g,int i) {return cuthflow[g][i];}
00043   double getCutbfhig(int g,int i) {return cutbfhig[g][i];}
00044   void putValues(int,int,double,double,double);
00045   void putValuesWithCuts(int,int,double,double,double);
00046   void computepedestalcuts(int,int,int,int);
00047   void printpedestalData(int,int,int,int,int,int);
00048 
00049   //  ClassDef(TPEDestalAnalysis,1)
00050 };
00051 
00052 #endif