CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/CalibCalorimetry/EcalLaserAnalyzer/interface/TMCReader.h

Go to the documentation of this file.
00001 #ifndef TMCReader_H
00002 #define TMCReader_H
00003 
00004 #include "TObject.h"
00005 
00006 #define FNPNMAX 10
00007 #define FNLMODNMAX 9
00008 #define FNCHANMAX 200
00009 
00010 #define fNpns 2
00011 #define fNchans 400
00012 #define fNbins 102
00013 
00014 class TMCReader: public TObject 
00015 {
00016 
00017  private:       
00018 
00019   int smN,nlmodN,arr[FNLMODNMAX];
00020   long int timestart,timestop;
00021   float evts[fNpns+1][FNCHANMAX+FNPNMAX];
00022   double min[fNpns+1][FNCHANMAX+FNPNMAX],max[fNpns+1][FNCHANMAX+FNPNMAX];
00023   double val[fNpns+1][FNCHANMAX+FNPNMAX],sig[fNpns+1][FNCHANMAX+FNPNMAX];
00024   double wbin[fNpns+1][FNCHANMAX+FNPNMAX];
00025   float sumprob;
00026 
00027   int smlocal,color,lmdir,part;
00028 
00029   void init();
00030 
00031  public:
00032   // Default Constructor, mainly for Root
00033   TMCReader();
00034 
00035   // Destructor: Does nothing
00036   virtual ~TMCReader();
00037 
00038   void validMCLaser(int,int);
00039   void getMCLaserData(int,int);
00040   void validMCPulse(int);
00041   void getMCPulseData(int);
00042 
00043   int getSMNumb() {return smN;}
00044   int getNbOflmodN() {return nlmodN;}
00045   int getlmodN(int indx) {return arr[indx];}
00046   int getstartime() {return timestart;}
00047   int getstoptime() {return timestop;}
00048   int getnevts(int norm) {return (int) evts[norm][0];}
00049 
00050   void setsmlocal(int sm) {smlocal=sm;}
00051   void setcolor(int c) {color=c;}
00052   void setdirlmodN(int lmp) {lmdir=lmp;}
00053   void setpartition(int p) {part=p;}
00054 
00055   void changedatatoraw(int,int,int);
00056   void changedatatopeak(int,int,int);
00057 
00058   void printeinjData(int,int,int);
00059   void printlaserData(int,int,int,int);
00060   void printlaserpeak(int,int,int);
00061   void printnormlaserData(int,int,int,int,int);
00062   void printnormlaserpeak(int,int,int,int);
00063 
00064 
00065   //  ClassDef(TMCReader,1)
00066 };
00067 
00068 #endif
00069 
00070 
00071