CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalEndcapMonitorClient.h
Go to the documentation of this file.
1 #ifndef EcalEndcapMonitorClient_H
2 #define EcalEndcapMonitorClient_H
3 
4 /*
5  * \file EcalEndcapMonitorClient.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 ~EcalEndcapMonitorClient();
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 
110 
113 
119 
121 
123 
125 
126 #ifdef WITH_ECAL_COND_DB
127 RunIOV runiov_;
128 MonRunIOV moniov_;
129 #endif
130 
132 
134 
137 
138 time_t updateTime_;
140 
141 std::vector<int> superModules_;
142 
143 std::vector<std::string> enabledClients_;
144 
145 std::multimap<EEClient*,int> clientsRuns_;
146 std::vector<std::string> runTypes_;
147 std::vector<EEClient*> clients_;
148 std::vector<std::string> clientsNames_;
149 std::map<std::string,int> clientsStatus_;
150 
152 
154 
156 
159 
161 
162 int run_;
163 int evt_;
164 
166 bool end_run_;
167 
169 
171 
173 
174 TH1F* h_;
175 
176 };
177 
178 #endif
virtual ~EcalEndcapMonitorClient()
Destructor.
std::vector< std::string > runTypes_
std::map< std::string, int > clientsStatus_
Ecal Barrel Monitor Client mom class.
EcalEndcapMonitorClient(const edm::ParameterSet &ps)
Constructor.
std::vector< std::string > clientsNames_
void beginRunDb(void)
BeginRunDB.
void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
BeginLumiBlock.
void softReset(bool flag)
SoftReset.
std::vector< EEClient * > clients_
std::vector< std::string > enabledClients_
std::multimap< EEClient *, int > clientsRuns_
Definition: RunIOV.h:13
void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &c)
EndLumiBlock.
Definition: Run.h:41