CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DQM/EcalEndcapMonitorClient/interface/EcalEndcapMonitorClient.h

Go to the documentation of this file.
00001 #ifndef EcalEndcapMonitorClient_H
00002 #define EcalEndcapMonitorClient_H
00003 
00004 /*
00005  * \file EcalEndcapMonitorClient.h
00006  *
00007  * $Date: 2010/11/03 11:46:57 $
00008  * $Revision: 1.61 $
00009  * \author G. Della Ricca
00010  * \author F. Cossutti
00011  *
00012 */
00013 
00014 #include <string>
00015 #include <vector>
00016 #include <map>
00017 
00018 #include "FWCore/Framework/interface/Event.h"
00019 #include "FWCore/Framework/interface/EventSetup.h"
00020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00021 #include "FWCore/Framework/interface/EDAnalyzer.h"
00022 
00023 #include "DQM/EcalEndcapMonitorClient/interface/EEClient.h"
00024 
00025 #include "DQM/EcalEndcapMonitorClient/interface/EESummaryClient.h"
00026 
00027 #include "TROOT.h"
00028 #include "TH1.h"
00029 
00030 class DQMStore;
00031 #ifdef WITH_ECAL_COND_DB
00032 class RunIOV;
00033 class MonRunIOV;
00034 #endif
00035 
00036 class EcalEndcapMonitorClient: public edm::EDAnalyzer{
00037 
00038 friend class EcalEndcapMonitorXdaqClient;
00039 
00040 public:
00041 
00043 EcalEndcapMonitorClient(const edm::ParameterSet & ps);
00044 
00046 virtual ~EcalEndcapMonitorClient();
00047 
00049 void analyze(void);
00050 void analyze(const edm::Event & e, const edm::EventSetup & c);
00051 
00053 void beginJob(void);
00054 
00056 void endJob(void);
00057 
00059 void beginRun(void);
00060 void beginRun(const edm::Run & r, const edm::EventSetup & c);
00061  
00063 void endRun(void);
00064 void endRun(const edm::Run & r, const edm::EventSetup & c);
00065 
00067 void beginLuminosityBlock(const edm::LuminosityBlock & l, const edm::EventSetup & c);
00068 
00070 void endLuminosityBlock(const edm::LuminosityBlock & l, const edm::EventSetup & c);
00071 
00073 void reset(void);
00074 
00076 void setup(void);
00077 
00079 void cleanup(void);
00080 
00082 void softReset(bool flag);
00083 
00085 void beginRunDb(void);
00086 
00088 void writeDb(void);
00089 
00091 void endRunDb(void);
00092 
00093 inline const char* getRunType( void )  { return( runType_ == -1 ? "UNKNOWN" : runTypes_[runType_].c_str() ); }
00094 
00095 private:
00096 
00097 int ievt_;
00098 int jevt_;
00099 
00100 bool cloneME_;
00101 
00102 bool verbose_;
00103 bool debug_;
00104 
00105 int prescaleFactor_;
00106 
00107 bool enableCleanup_;
00108 
00109 std::string prefixME_;
00110 
00111 std::string inputFile_;
00112 std::string referenceFile_;
00113  
00114 std::string dbName_;
00115 std::string dbHostName_;
00116 int         dbHostPort_;
00117 std::string dbUserName_;
00118 std::string dbPassword_;
00119 
00120 std::string dbTagName_;
00121 
00122 std::string resetFile_;
00123 
00124 bool mergeRuns_;
00125 
00126 #ifdef WITH_ECAL_COND_DB 
00127 RunIOV runiov_;
00128 MonRunIOV moniov_;
00129 #endif
00130 
00131 int subrun_;
00132  
00133 time_t current_time_;
00134 
00135 time_t last_time_update_;
00136 time_t last_time_reset_;
00137 
00138 time_t updateTime_;
00139 time_t dbUpdateTime_;
00140 
00141 std::vector<int> superModules_;
00142 
00143 std::vector<std::string> enabledClients_;
00144 
00145 std::multimap<EEClient*,int> clientsRuns_;
00146 std::vector<std::string> runTypes_;
00147 std::vector<EEClient*> clients_; 
00148 std::vector<std::string> clientsNames_; 
00149 std::map<std::string,int> clientsStatus_;
00150 
00151 EESummaryClient* summaryClient_;
00152 
00153 DQMStore* dqmStore_;
00154  
00155 std::string location_;
00156 
00157 int runType_;
00158 int evtType_;
00159 
00160 std::string status_;
00161 
00162 int run_;
00163 int evt_;
00164  
00165 bool begin_run_;
00166 bool end_run_;
00167  
00168 bool forced_status_;
00169  
00170 bool forced_update_;
00171 
00172 int last_run_;
00173  
00174 TH1F* h_;
00175 
00176 };
00177 
00178 #endif