CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalBarrelMonitorClient.h
Go to the documentation of this file.
1 #ifndef EcalBarrelMonitorClient_H
2 #define EcalBarrelMonitorClient_H
3 
4 /*
5  * \file EcalBarrelMonitorClient.h
6  *
7  * \author G. Della Ricca
8  * \author F. Cossutti
9  *
10 */
11 
12 #include <string>
13 #include <vector>
14 #include <map>
15 
20 
22 
24 
25 #include "TROOT.h"
26 #include "TH1.h"
27 
28 class DQMStore;
29 #ifdef WITH_ECAL_COND_DB
30 class RunIOV;
31 class MonRunIOV;
32 #endif
33 
35 
37 
38 public:
39 
42 
44 virtual ~EcalBarrelMonitorClient();
45 
47 void analyze(void);
48 void analyze(const edm::Event & e, const edm::EventSetup & c);
49 
51 void beginJob(void);
52 
54 void endJob(void);
55 
57 void beginRun(void);
58 void beginRun(const edm::Run & r, const edm::EventSetup & c);
59 
61 void endRun(void);
62 void endRun(const edm::Run & r, const edm::EventSetup & c);
63 
66 
69 
71 void reset(void);
72 
74 void setup(void);
75 
77 void cleanup(void);
78 
80 void softReset(bool flag);
81 
83 void beginRunDb(void);
84 
86 void writeDb(void);
87 
89 void endRunDb(void);
90 
91 inline const char* getRunType( void ) { return( runType_ == -1 ? "UNKNOWN" : runTypes_[runType_].c_str() ); }
92 
93 private:
94 
95 int ievt_;
96 int jevt_;
97 
98 bool cloneME_;
99 
100 bool verbose_;
101 bool debug_;
102 
104 
106 
108 
114 
116 
118 
120 
121 #ifdef WITH_ECAL_COND_DB
122 RunIOV runiov_;
123 MonRunIOV moniov_;
124 #endif
125 
127 
129 
132 
133 time_t updateTime_;
135 
136 std::vector<int> superModules_;
137 
138 std::vector<std::string> enabledClients_;
139 
140 std::multimap<EBClient*,int> clientsRuns_;
141 std::vector<std::string> runTypes_;
142 std::vector<EBClient*> clients_;
143 std::vector<std::string> clientsNames_;
144 std::map<std::string,int> clientsStatus_;
145 
147 
149 
151 
153 
155 
158 
160 
161 int run_;
162 int evt_;
163 
165 bool end_run_;
166 
168 
170 
172 
173 TH1F* h_;
174 
175 };
176 
177 #endif
std::multimap< EBClient *, int > clientsRuns_
std::vector< std::string > clientsNames_
std::vector< std::string > enabledClients_
void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
BeginLumiBlock.
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
EndLumiBlock.
void softReset(bool flag)
SoftReset.
EcalBarrelMonitorClient(const edm::ParameterSet &ps)
Constructor.
std::vector< EBClient * > clients_
std::map< std::string, int > clientsStatus_
virtual ~EcalBarrelMonitorClient()
Destructor.
std::vector< std::string > runTypes_
void beginRunDb(void)
BeginRunDB.
Definition: RunIOV.h:13
Ecal Barrel Monitor Client mom class.
Definition: Run.h:41