#include <DQM/EcalBarrelMonitorClient/interface/EBClusterClient.h>
Public Member Functions | |
void | analyze (void) |
Analyze. | |
void | beginJob (DQMStore *dqmStore) |
BeginJob. | |
void | beginRun (void) |
BeginRun. | |
void | cleanup (void) |
Cleanup. | |
EBClusterClient (const edm::ParameterSet &ps) | |
Constructor. | |
void | endJob (void) |
EndJob. | |
void | endRun (void) |
EndRun. | |
int | getEvtPerJob () |
Get Functions. | |
int | getEvtPerRun () |
Returns the number of processed events in this Run. | |
void | htmlOutput (int run, std::string &htmlDir, std::string &htmlName) |
HtmlOutput. | |
void | setup (void) |
Setup. | |
void | softReset (bool flag) |
SoftReset. | |
bool | writeDb (EcalCondDBInterface *econn, RunIOV *runiov, MonRunIOV *moniov, bool &status, bool flag) |
WriteDB. | |
virtual | ~EBClusterClient () |
Destructor. | |
Private Attributes | |
bool | cloneME_ |
bool | debug_ |
DQMStore * | dqmStore_ |
bool | enableCleanup_ |
TH1F * | h01_ [3] |
TProfile2D * | h02_ [2] |
TProfile * | h02ProjEta_ [2] |
TProfile * | h02ProjPhi_ [2] |
TH2F * | h03_ |
TH1F * | h03ProjEta_ |
TH1F * | h03ProjPhi_ |
TProfile2D * | h04_ |
TProfile * | h04ProjEta_ |
TProfile * | h04ProjPhi_ |
TH1F * | i01_ [3] |
int | ievt_ |
int | jevt_ |
std::string | prefixME_ |
TH1F * | s01_ [3] |
std::vector< int > | superModules_ |
bool | verbose_ |
Friends | |
class | EBSummaryClient |
Definition at line 32 of file EBClusterClient.h.
EBClusterClient::EBClusterClient | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 31 of file EBClusterClient.cc.
References cloneME_, debug_, enableCleanup_, edm::ParameterSet::getUntrackedParameter(), h01_, h02_, h02ProjEta_, h02ProjPhi_, h03_, h03ProjEta_, h03ProjPhi_, h04_, h04ProjEta_, h04ProjPhi_, i, i01_, prefixME_, s01_, superModules_, and verbose_.
00031 { 00032 00033 // cloneME switch 00034 cloneME_ = ps.getUntrackedParameter<bool>("cloneME", true); 00035 00036 // verbose switch 00037 verbose_ = ps.getUntrackedParameter<bool>("verbose", true); 00038 00039 // debug switch 00040 debug_ = ps.getUntrackedParameter<bool>("debug", false); 00041 00042 // prefixME path 00043 prefixME_ = ps.getUntrackedParameter<string>("prefixME", ""); 00044 00045 // enableCleanup_ switch 00046 enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false); 00047 00048 // vector of selected Super Modules (Defaults to all 36). 00049 superModules_.reserve(36); 00050 for ( unsigned int i = 1; i <= 36; i++ ) superModules_.push_back(i); 00051 superModules_ = ps.getUntrackedParameter<vector<int> >("superModules", superModules_); 00052 00053 h01_[0] = 0; 00054 h01_[1] = 0; 00055 h01_[2] = 0; 00056 00057 h02_[0] = 0; 00058 h02ProjEta_[0] = 0; 00059 h02ProjPhi_[0] = 0; 00060 h02_[1] = 0; 00061 h02ProjEta_[1] = 0; 00062 h02ProjPhi_[1] = 0; 00063 00064 h03_ = 0; 00065 h03ProjEta_ = 0; 00066 h03ProjPhi_ = 0; 00067 00068 h04_ = 0; 00069 h04ProjEta_ = 0; 00070 h04ProjPhi_ = 0; 00071 00072 i01_[0] = 0; 00073 i01_[1] = 0; 00074 i01_[2] = 0; 00075 00076 s01_[0] = 0; 00077 s01_[1] = 0; 00078 s01_[2] = 0; 00079 00080 }
EBClusterClient::~EBClusterClient | ( | ) | [virtual] |
Analyze.
Implements EBClient.
Definition at line 200 of file EBClusterClient.cc.
References cloneME_, GenMuonPlsPt100GeV_cfg::cout, debug_, dqmStore_, lat::endl(), DQMStore::get(), h01_, h02_, h02ProjEta_, h02ProjPhi_, h03_, h03ProjEta_, h03ProjPhi_, h04_, h04ProjEta_, h04ProjPhi_, histo, i01_, ievt_, jevt_, me, prefixME_, and s01_.
00200 { 00201 00202 ievt_++; 00203 jevt_++; 00204 if ( ievt_ % 10 == 0 ) { 00205 if ( debug_ ) cout << "EBClusterClient: ievt/jevt = " << ievt_ << "/" << jevt_ << endl; 00206 } 00207 00208 char histo[200]; 00209 00210 MonitorElement* me; 00211 00212 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC energy").c_str()); 00213 me = dqmStore_->get(histo); 00214 h01_[0] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h01_[0] ); 00215 00216 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC size").c_str()); 00217 me = dqmStore_->get(histo); 00218 h01_[1] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h01_[1] ); 00219 00220 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC number").c_str()); 00221 me = dqmStore_->get(histo); 00222 h01_[2] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h01_[2] ); 00223 00224 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC energy map").c_str()); 00225 me = dqmStore_->get(histo); 00226 h02_[0] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h02_[0] ); 00227 00228 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC ET map").c_str()); 00229 me = dqmStore_->get(histo); 00230 h02_[1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h02_[1] ); 00231 00232 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC number map").c_str()); 00233 me = dqmStore_->get(histo); 00234 h03_ = UtilsClient::getHisto<TH2F*>( me, cloneME_, h03_ ); 00235 00236 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC size map").c_str()); 00237 me = dqmStore_->get(histo); 00238 h04_ = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h04_ ); 00239 00240 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC energy projection eta").c_str()); 00241 me = dqmStore_->get(histo); 00242 h02ProjEta_[0] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjEta_[0] ); 00243 00244 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC energy projection phi").c_str()); 00245 me = dqmStore_->get(histo); 00246 h02ProjPhi_[0] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjPhi_[0] ); 00247 00248 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC ET projection eta").c_str()); 00249 me = dqmStore_->get(histo); 00250 h02ProjEta_[1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjEta_[1] ); 00251 00252 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC ET projection phi").c_str()); 00253 me = dqmStore_->get(histo); 00254 h02ProjPhi_[1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjPhi_[1] ); 00255 00256 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC number projection eta").c_str()); 00257 me = dqmStore_->get(histo); 00258 h03ProjEta_ = UtilsClient::getHisto<TH1F*>( me, cloneME_, h03ProjEta_ ); 00259 00260 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC number projection phi").c_str()); 00261 me = dqmStore_->get(histo); 00262 h03ProjPhi_ = UtilsClient::getHisto<TH1F*>( me, cloneME_, h03ProjPhi_ ); 00263 00264 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC size projection eta").c_str()); 00265 me = dqmStore_->get(histo); 00266 h04ProjEta_ = UtilsClient::getHisto<TProfile*>( me, cloneME_, h04ProjEta_ ); 00267 00268 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT BC size projection phi").c_str()); 00269 me = dqmStore_->get(histo); 00270 h04ProjPhi_ = UtilsClient::getHisto<TProfile*>( me, cloneME_, h04ProjPhi_ ); 00271 00272 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT SC energy").c_str()); 00273 me = dqmStore_->get(histo); 00274 i01_[0] = UtilsClient::getHisto<TH1F*>( me, cloneME_, i01_[0] ); 00275 00276 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT SC size").c_str()); 00277 me = dqmStore_->get(histo); 00278 i01_[1] = UtilsClient::getHisto<TH1F*>( me, cloneME_, i01_[1] ); 00279 00280 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT SC number").c_str()); 00281 me = dqmStore_->get(histo); 00282 i01_[2] = UtilsClient::getHisto<TH1F*>( me, cloneME_, i01_[2] ); 00283 00284 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT s1s9").c_str()); 00285 me = dqmStore_->get(histo); 00286 s01_[0] = UtilsClient::getHisto<TH1F*>( me, cloneME_, s01_[0] ); 00287 00288 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT s9s25").c_str()); 00289 me = dqmStore_->get(histo); 00290 s01_[1] = UtilsClient::getHisto<TH1F*>( me, cloneME_, s01_[1] ); 00291 00292 sprintf(histo, (prefixME_ + "/EBClusterTask/EBCLT dicluster invariant mass Pi0").c_str()); 00293 me = dqmStore_->get(histo); 00294 s01_[2] = UtilsClient::getHisto<TH1F*>( me, cloneME_, s01_[2] ); 00295 00296 }
BeginJob.
Implements EBClient.
Definition at line 86 of file EBClusterClient.cc.
References GenMuonPlsPt100GeV_cfg::cout, debug_, dqmStore_, lat::endl(), ievt_, and jevt_.
00086 { 00087 00088 dqmStore_ = dqmStore; 00089 00090 if ( debug_ ) cout << "EBClusterClient: beginJob" << endl; 00091 00092 ievt_ = 0; 00093 jevt_ = 0; 00094 00095 }
BeginRun.
Implements EBClient.
Definition at line 97 of file EBClusterClient.cc.
References GenMuonPlsPt100GeV_cfg::cout, debug_, lat::endl(), jevt_, and setup().
00097 { 00098 00099 if ( debug_ ) cout << "EBClusterClient: beginRun" << endl; 00100 00101 jevt_ = 0; 00102 00103 this->setup(); 00104 00105 }
Cleanup.
Implements EBClient.
Definition at line 129 of file EBClusterClient.cc.
References cloneME_, enableCleanup_, h01_, h02_, h02ProjEta_, h02ProjPhi_, h03_, h03ProjEta_, h03ProjPhi_, h04_, h04ProjEta_, h04ProjPhi_, i01_, and s01_.
Referenced by endJob(), and endRun().
00129 { 00130 00131 if ( ! enableCleanup_ ) return; 00132 00133 if ( cloneME_ ) { 00134 if ( h01_[0] ) delete h01_[0]; 00135 if ( h01_[1] ) delete h01_[1]; 00136 if ( h01_[2] ) delete h01_[2]; 00137 00138 if ( h02_[0] ) delete h02_[0]; 00139 if ( h02ProjEta_[0] ) delete h02ProjEta_[0]; 00140 if ( h02ProjPhi_[0] ) delete h02ProjPhi_[0]; 00141 if ( h02_[1] ) delete h02_[1]; 00142 if ( h02ProjEta_[1] ) delete h02ProjEta_[1]; 00143 if ( h02ProjPhi_[1] ) delete h02ProjPhi_[1]; 00144 00145 if ( h03_ ) delete h03_; 00146 if ( h03ProjEta_ ) delete h03ProjEta_; 00147 if ( h03ProjPhi_ ) delete h03ProjPhi_; 00148 if ( h04_ ) delete h04_; 00149 if ( h04ProjEta_ ) delete h04ProjEta_; 00150 if ( h04ProjPhi_ ) delete h04ProjPhi_; 00151 00152 if ( i01_[0] ) delete i01_[0]; 00153 if ( i01_[1] ) delete i01_[1]; 00154 if ( i01_[2] ) delete i01_[2]; 00155 00156 if ( s01_[0] ) delete s01_[0]; 00157 if ( s01_[1] ) delete s01_[1]; 00158 if ( s01_[2] ) delete s01_[2]; 00159 00160 } 00161 00162 h01_[0] = 0; 00163 h01_[1] = 0; 00164 h01_[2] = 0; 00165 00166 h02_[0] = 0; 00167 h02ProjEta_[0] = 0; 00168 h02ProjPhi_[0] = 0; 00169 h02_[1] = 0; 00170 h02ProjEta_[1] = 0; 00171 h02ProjPhi_[1] = 0; 00172 00173 h03_ = 0; 00174 h03ProjEta_ = 0; 00175 h03ProjPhi_ = 0; 00176 h04_ = 0; 00177 h04ProjEta_ = 0; 00178 h04ProjPhi_ = 0; 00179 00180 i01_[0] = 0; 00181 i01_[1] = 0; 00182 i01_[2] = 0; 00183 00184 s01_[0] = 0; 00185 s01_[1] = 0; 00186 s01_[2] = 0; 00187 00188 }
EndJob.
Implements EBClient.
Definition at line 107 of file EBClusterClient.cc.
References cleanup(), GenMuonPlsPt100GeV_cfg::cout, debug_, lat::endl(), and ievt_.
00107 { 00108 00109 if ( debug_ ) cout << "EBClusterClient: endJob, ievt = " << ievt_ << endl; 00110 00111 this->cleanup(); 00112 00113 }
EndRun.
Implements EBClient.
Definition at line 115 of file EBClusterClient.cc.
References cleanup(), GenMuonPlsPt100GeV_cfg::cout, debug_, lat::endl(), and jevt_.
00115 { 00116 00117 if ( debug_ ) cout << "EBClusterClient: endRun, jevt = " << jevt_ << endl; 00118 00119 this->cleanup(); 00120 00121 }
Get Functions.
Implements EBClient.
Definition at line 75 of file EBClusterClient.h.
References ievt_.
00075 { return ievt_; }
Setup.
Implements EBClient.
Definition at line 123 of file EBClusterClient.cc.
References dqmStore_, prefixME_, and DQMStore::setCurrentFolder().
Referenced by beginRun().
00123 { 00124 00125 dqmStore_->setCurrentFolder( prefixME_ + "/EBClusterClient" ); 00126 00127 }
bool EBClusterClient::writeDb | ( | EcalCondDBInterface * | econn, | |
RunIOV * | runiov, | |||
MonRunIOV * | moniov, | |||
bool & | status, | |||
bool | flag | |||
) | [virtual] |
WriteDB.
Implements EBClient.
Definition at line 190 of file EBClusterClient.cc.
00190 { 00191 00192 status = true; 00193 00194 if ( ! flag ) return false; 00195 00196 return true; 00197 00198 }
friend class EBSummaryClient [friend] |
Definition at line 34 of file EBClusterClient.h.
bool EBClusterClient::cloneME_ [private] |
Definition at line 83 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
bool EBClusterClient::debug_ [private] |
Definition at line 86 of file EBClusterClient.h.
Referenced by analyze(), beginJob(), beginRun(), EBClusterClient(), endJob(), and endRun().
DQMStore* EBClusterClient::dqmStore_ [private] |
bool EBClusterClient::enableCleanup_ [private] |
TH1F* EBClusterClient::h01_[3] [private] |
Definition at line 96 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile2D* EBClusterClient::h02_[2] [private] |
Definition at line 97 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile* EBClusterClient::h02ProjEta_[2] [private] |
Definition at line 98 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile * EBClusterClient::h02ProjPhi_[2] [private] |
Definition at line 98 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TH2F* EBClusterClient::h03_ [private] |
Definition at line 99 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TH1F* EBClusterClient::h03ProjEta_ [private] |
Definition at line 100 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TH1F * EBClusterClient::h03ProjPhi_ [private] |
Definition at line 100 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile2D* EBClusterClient::h04_ [private] |
Definition at line 101 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile* EBClusterClient::h04ProjEta_ [private] |
Definition at line 102 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile * EBClusterClient::h04ProjPhi_ [private] |
Definition at line 102 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TH1F* EBClusterClient::i01_[3] [private] |
Definition at line 103 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
int EBClusterClient::ievt_ [private] |
Definition at line 80 of file EBClusterClient.h.
Referenced by analyze(), beginJob(), endJob(), and getEvtPerJob().
int EBClusterClient::jevt_ [private] |
Definition at line 81 of file EBClusterClient.h.
Referenced by analyze(), beginJob(), beginRun(), endRun(), and getEvtPerRun().
std::string EBClusterClient::prefixME_ [private] |
Definition at line 88 of file EBClusterClient.h.
Referenced by analyze(), EBClusterClient(), and setup().
TH1F* EBClusterClient::s01_[3] [private] |
Definition at line 105 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
std::vector<int> EBClusterClient::superModules_ [private] |
bool EBClusterClient::verbose_ [private] |