CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/DQM/EcalEndcapMonitorClient/interface/EEOccupancyClient.h

Go to the documentation of this file.
00001 #ifndef EEOccupancyClient_H
00002 #define EEOccupancyClient_H
00003 
00004 /*
00005  * \file EEOccupancyClient.h
00006  *
00007  * $Date: 2010/01/25 21:12:25 $
00008  * $Revision: 1.22 $
00009  * \author G. Della Ricca
00010  * \author F. Cossutti
00011  *
00012 */
00013 
00014 #include <vector>
00015 #include <string>
00016 
00017 #include "TROOT.h"
00018 #include "TProfile2D.h"
00019 #include "TH1F.h"
00020 
00021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00022 
00023 #include "DQM/EcalEndcapMonitorClient/interface/EEClient.h"
00024 
00025 class MonitorElement;
00026 class DQMStore;
00027 #ifdef WITH_ECAL_COND_DB
00028 class EcalCondDBInterface;
00029 class RunIOV;
00030 class MonRunIOV;
00031 #endif
00032 
00033 class EEOccupancyClient : public EEClient {
00034 
00035 friend class EESummaryClient;
00036 
00037 public:
00038 
00040 EEOccupancyClient(const edm::ParameterSet& ps);
00041 
00043 virtual ~EEOccupancyClient();
00044 
00046 void analyze(void);
00047 
00049 void beginJob(void);
00050 
00052 void endJob(void);
00053 
00055 void beginRun(void);
00056 
00058 void endRun(void);
00059 
00061 void setup(void);
00062 
00064 void cleanup(void);
00065 
00066 #ifdef WITH_ECAL_COND_DB
00067 
00068 bool writeDb(EcalCondDBInterface* econn, RunIOV* runiov, MonRunIOV* moniov, bool& status);
00069 #endif
00070 
00072 inline int getEvtPerJob() { return ievt_; }
00073 inline int getEvtPerRun() { return jevt_; }
00074 
00075 private:
00076 
00077 int ievt_;
00078 int jevt_;
00079 
00080 bool cloneME_;
00081 
00082 bool verbose_;
00083 bool debug_;
00084 
00085 std::string prefixME_;
00086 
00087 bool enableCleanup_;
00088 
00089 std::vector<int> superModules_;
00090 
00091 DQMStore* dqmStore_;
00092 
00093 TH2F* i01_[18];
00094 TProfile2D* i02_[18];
00095 
00096 TH2F* h01_[2][3];
00097 TH1F* h01ProjEta_[2][3];
00098 TH1F* h01ProjPhi_[2][3];
00099 
00100 TH2F* h02_[2][2];
00101 TH1F* h02ProjEta_[2][2];
00102 TH1F* h02ProjPhi_[2][2];
00103 
00104 };
00105 
00106 #endif