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  * $Date: 2012/04/27 13:46:05 $
8  * $Revision: 1.64 $
9  * \author G. Della Ricca
10  * \author F. Cossutti
11  *
12 */
13 
14 #include <string>
15 #include <vector>
16 #include <map>
17 
22 
24 
26 
27 #include "TROOT.h"
28 #include "TH1.h"
29 
30 class DQMStore;
31 #ifdef WITH_ECAL_COND_DB
32 class RunIOV;
33 class MonRunIOV;
34 #endif
35 
37 
39 
40 public:
41 
44 
46 virtual ~EcalEndcapMonitorClient();
47 
49 void analyze(void);
50 void analyze(const edm::Event & e, const edm::EventSetup & c);
51 
53 void beginJob(void);
54 
56 void endJob(void);
57 
59 void beginRun(void);
60 void beginRun(const edm::Run & r, const edm::EventSetup & c);
61 
63 void endRun(void);
64 void endRun(const edm::Run & r, const edm::EventSetup & c);
65 
68 
71 
73 void reset(void);
74 
76 void setup(void);
77 
79 void cleanup(void);
80 
82 void softReset(bool flag);
83 
85 void beginRunDb(void);
86 
88 void writeDb(void);
89 
91 void endRunDb(void);
92 
93 inline const char* getRunType( void ) { return( runType_ == -1 ? "UNKNOWN" : runTypes_[runType_].c_str() ); }
94 
95 private:
96 
97 int ievt_;
98 int jevt_;
99 
100 bool cloneME_;
101 
102 bool verbose_;
103 bool debug_;
104 
106 
108 
109 std::string prefixME_;
110 
112 
113 std::string inputFile_;
114 std::string referenceFile_;
115 
116 std::string dbName_;
117 std::string dbHostName_;
119 std::string dbUserName_;
120 std::string dbPassword_;
121 
122 std::string dbTagName_;
123 
124 std::string resetFile_;
125 
127 
128 #ifdef WITH_ECAL_COND_DB
129 RunIOV runiov_;
130 MonRunIOV moniov_;
131 #endif
132 
134 
136 
139 
140 time_t updateTime_;
142 
143 std::vector<int> superModules_;
144 
145 std::vector<std::string> enabledClients_;
146 
147 std::multimap<EEClient*,int> clientsRuns_;
148 std::vector<std::string> runTypes_;
149 std::vector<EEClient*> clients_;
150 std::vector<std::string> clientsNames_;
151 std::map<std::string,int> clientsStatus_;
152 
154 
156 
157 std::string location_;
158 
161 
162 std::string status_;
163 
164 int run_;
165 int evt_;
166 
168 bool end_run_;
169 
171 
173 
175 
176 TH1F* h_;
177 
178 };
179 
180 #endif
long int flag
Definition: mlp_lapack.h:47
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:33