![]() |
![]() |
#include <DQM/EcalEndcapMonitorClient/interface/EEClusterClient.h>
Public Member Functions | |
void | analyze (void) |
Analyze. | |
void | beginJob (DQMStore *dqmStore) |
BeginJob. | |
void | beginRun (void) |
BeginRun. | |
void | cleanup (void) |
Cleanup. | |
EEClusterClient (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 | ~EEClusterClient () |
Destructor. | |
Private Attributes | |
bool | cloneME_ |
bool | debug_ |
DQMStore * | dqmStore_ |
bool | enableCleanup_ |
TH1F * | h01_ [3] |
TProfile * | h02ProjPhi_ [3][2] |
TProfile * | h02ProjR_ [3][2] |
TH2F * | h03_ [2] |
TH1F * | h03ProjPhi_ [2] |
TH1F * | h03ProjR_ [2] |
TProfile2D * | h04_ [3][2] |
TH1F * | i01_ [3] |
int | ievt_ |
int | jevt_ |
std::string | prefixME_ |
TH1F * | s01_ [3] |
std::vector< int > | superModules_ |
bool | verbose_ |
Friends | |
class | EESummaryClient |
Definition at line 32 of file EEClusterClient.h.
EEClusterClient::EEClusterClient | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 32 of file EEClusterClient.cc.
References cloneME_, debug_, enableCleanup_, edm::ParameterSet::getUntrackedParameter(), h01_, h02ProjPhi_, h02ProjR_, h03_, h03ProjPhi_, h03ProjR_, h04_, i, i01_, prefixME_, s01_, superModules_, and verbose_.
00032 { 00033 00034 // cloneME switch 00035 cloneME_ = ps.getUntrackedParameter<bool>("cloneME", true); 00036 00037 // verbose switch 00038 verbose_ = ps.getUntrackedParameter<bool>("verbose", true); 00039 00040 // debug switch 00041 debug_ = ps.getUntrackedParameter<bool>("debug", false); 00042 00043 // prefixME path 00044 prefixME_ = ps.getUntrackedParameter<string>("prefixME", ""); 00045 00046 // enableCleanup_ switch 00047 enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false); 00048 00049 // vector of selected Super Modules (Defaults to all 18). 00050 superModules_.reserve(18); 00051 for ( unsigned int i = 1; i <= 18; i++ ) superModules_.push_back(i); 00052 superModules_ = ps.getUntrackedParameter<vector<int> >("superModules", superModules_); 00053 00054 h01_[0] = 0; 00055 h01_[1] = 0; 00056 h01_[2] = 0; 00057 00058 for(int iEE=0;iEE<2;iEE++) { 00059 for(int i=0;i<3;++i) { 00060 h04_[i][iEE] = 0; 00061 h02ProjR_[i][iEE] = 0; 00062 h02ProjPhi_[i][iEE] = 0; 00063 } 00064 } 00065 00066 h03_[0] = 0; 00067 h03ProjR_[0] = 0; 00068 h03ProjPhi_[0] = 0; 00069 00070 h03_[1] = 0; 00071 h03ProjR_[1] = 0; 00072 h03ProjPhi_[1] = 0; 00073 00074 i01_[0] = 0; 00075 i01_[1] = 0; 00076 i01_[2] = 0; 00077 00078 s01_[0] = 0; 00079 s01_[1] = 0; 00080 s01_[2] = 0; 00081 00082 }
EEClusterClient::~EEClusterClient | ( | ) | [virtual] |
Analyze.
Implements EEClient.
Definition at line 206 of file EEClusterClient.cc.
References cloneME_, GenMuonPlsPt100GeV_cfg::cout, debug_, dqmStore_, lat::endl(), DQMStore::get(), h01_, h02ProjPhi_, h02ProjR_, h03_, h03ProjPhi_, h03ProjR_, h04_, histo, i01_, ievt_, jevt_, me, prefixME_, and s01_.
00206 { 00207 00208 ievt_++; 00209 jevt_++; 00210 if ( ievt_ % 10 == 0 ) { 00211 if ( debug_ ) cout << "EEClusterClient: ievt/jevt = " << ievt_ << "/" << jevt_ << endl; 00212 } 00213 00214 char histo[200]; 00215 00216 MonitorElement* me; 00217 00218 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC energy").c_str()); 00219 me = dqmStore_->get(histo); 00220 h01_[0] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h01_[0] ); 00221 00222 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC size").c_str()); 00223 me = dqmStore_->get(histo); 00224 h01_[1] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h01_[1] ); 00225 00226 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC number").c_str()); 00227 me = dqmStore_->get(histo); 00228 h01_[2] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h01_[2] ); 00229 00230 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC energy map EE -").c_str()); 00231 me = dqmStore_->get(histo); 00232 h04_[0][0] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h04_[0][0] ); 00233 00234 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC number map EE -").c_str()); 00235 me = dqmStore_->get(histo); 00236 h03_[0] = UtilsClient::getHisto<TH2F*>( me, cloneME_, h03_[0] ); 00237 00238 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC ET map EE -").c_str()); 00239 me = dqmStore_->get(histo); 00240 h04_[1][0] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h04_[1][0] ); 00241 00242 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC size map EE -").c_str()); 00243 me = dqmStore_->get(histo); 00244 h04_[2][0] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h04_[2][0] ); 00245 00246 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC energy projection R EE -").c_str()); 00247 me = dqmStore_->get(histo); 00248 h02ProjR_[0][0] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjR_[0][0] ); 00249 00250 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC energy projection phi EE -").c_str()); 00251 me = dqmStore_->get(histo); 00252 h02ProjPhi_[0][0] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjPhi_[0][0] ); 00253 00254 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC number projection R EE -").c_str()); 00255 me = dqmStore_->get(histo); 00256 h03ProjR_[0] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h03ProjR_[0] ); 00257 00258 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC number projection phi EE -").c_str()); 00259 me = dqmStore_->get(histo); 00260 h03ProjPhi_[0] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h03ProjPhi_[0] ); 00261 00262 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC ET projection R EE -").c_str()); 00263 me = dqmStore_->get(histo); 00264 h02ProjR_[1][0] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjR_[1][0] ); 00265 00266 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC ET projection phi EE -").c_str()); 00267 me = dqmStore_->get(histo); 00268 h02ProjPhi_[1][0] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjPhi_[1][0] ); 00269 00270 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC size projection R EE -").c_str()); 00271 me = dqmStore_->get(histo); 00272 h02ProjR_[2][0] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjR_[2][0] ); 00273 00274 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC size projection phi EE -").c_str()); 00275 me = dqmStore_->get(histo); 00276 h02ProjPhi_[2][0] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjPhi_[2][0] ); 00277 00278 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC energy map EE +").c_str()); 00279 me = dqmStore_->get(histo); 00280 h04_[0][1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h04_[0][1] ); 00281 00282 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC number map EE +").c_str()); 00283 me = dqmStore_->get(histo); 00284 h03_[1] = UtilsClient::getHisto<TH2F*>( me, cloneME_, h03_[1] ); 00285 00286 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC ET map EE +").c_str()); 00287 me = dqmStore_->get(histo); 00288 h04_[1][1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h04_[1][1] ); 00289 00290 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC size map EE +").c_str()); 00291 me = dqmStore_->get(histo); 00292 h04_[2][1] = UtilsClient::getHisto<TProfile2D*>( me, cloneME_, h04_[2][1] ); 00293 00294 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC energy projection R EE +").c_str()); 00295 me = dqmStore_->get(histo); 00296 h02ProjR_[0][1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjR_[0][1] ); 00297 00298 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC energy projection phi EE +").c_str()); 00299 me = dqmStore_->get(histo); 00300 h02ProjPhi_[0][1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjPhi_[0][1] ); 00301 00302 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC number projection R EE +").c_str()); 00303 me = dqmStore_->get(histo); 00304 h03ProjR_[1] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h03ProjR_[1] ); 00305 00306 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC number projection phi EE +").c_str()); 00307 me = dqmStore_->get(histo); 00308 h03ProjPhi_[1] = UtilsClient::getHisto<TH1F*>( me, cloneME_, h03ProjPhi_[1] ); 00309 00310 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC ET projection R EE +").c_str()); 00311 me = dqmStore_->get(histo); 00312 h02ProjR_[1][1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjR_[1][1] ); 00313 00314 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC ET projection phi EE +").c_str()); 00315 me = dqmStore_->get(histo); 00316 h02ProjPhi_[1][1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjPhi_[1][1] ); 00317 00318 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC size projection R EE +").c_str()); 00319 me = dqmStore_->get(histo); 00320 h02ProjR_[2][1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjR_[2][1] ); 00321 00322 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT BC size projection phi EE +").c_str()); 00323 me = dqmStore_->get(histo); 00324 h02ProjPhi_[2][1] = UtilsClient::getHisto<TProfile*>( me, cloneME_, h02ProjPhi_[2][1] ); 00325 00326 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT SC energy").c_str()); 00327 me = dqmStore_->get(histo); 00328 i01_[0] = UtilsClient::getHisto<TH1F*>( me, cloneME_, i01_[0] ); 00329 00330 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT SC size").c_str()); 00331 me = dqmStore_->get(histo); 00332 i01_[1] = UtilsClient::getHisto<TH1F*>( me, cloneME_, i01_[1] ); 00333 00334 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT SC number").c_str()); 00335 me = dqmStore_->get(histo); 00336 i01_[2] = UtilsClient::getHisto<TH1F*>( me, cloneME_, i01_[2] ); 00337 00338 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT s1s9").c_str()); 00339 me = dqmStore_->get(histo); 00340 s01_[0] = UtilsClient::getHisto<TH1F*>( me, cloneME_, s01_[0] ); 00341 00342 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT s9s25").c_str()); 00343 me = dqmStore_->get(histo); 00344 s01_[1] = UtilsClient::getHisto<TH1F*>( me, cloneME_, s01_[1] ); 00345 00346 sprintf(histo, (prefixME_ + "/EEClusterTask/EECLT dicluster invariant mass Pi0").c_str()); 00347 me = dqmStore_->get(histo); 00348 s01_[2] = UtilsClient::getHisto<TH1F*>( me, cloneME_, s01_[2] ); 00349 00350 }
BeginJob.
Implements EEClient.
Definition at line 88 of file EEClusterClient.cc.
References GenMuonPlsPt100GeV_cfg::cout, debug_, dqmStore_, lat::endl(), ievt_, and jevt_.
00088 { 00089 00090 dqmStore_ = dqmStore; 00091 00092 if ( debug_ ) cout << "EEClusterClient: beginJob" << endl; 00093 00094 ievt_ = 0; 00095 jevt_ = 0; 00096 00097 }
BeginRun.
Implements EEClient.
Definition at line 99 of file EEClusterClient.cc.
References GenMuonPlsPt100GeV_cfg::cout, debug_, lat::endl(), jevt_, and setup().
00099 { 00100 00101 if ( debug_ ) cout << "EEClusterClient: beginRun" << endl; 00102 00103 jevt_ = 0; 00104 00105 this->setup(); 00106 00107 }
Cleanup.
Implements EEClient.
Definition at line 131 of file EEClusterClient.cc.
References cloneME_, enableCleanup_, h01_, h02ProjPhi_, h02ProjR_, h03_, h03ProjPhi_, h03ProjR_, h04_, i, i01_, and s01_.
Referenced by endJob(), and endRun().
00131 { 00132 00133 if ( ! enableCleanup_ ) return; 00134 00135 if ( cloneME_ ) { 00136 if ( h01_[0] ) delete h01_[0]; 00137 if ( h01_[1] ) delete h01_[1]; 00138 if ( h01_[2] ) delete h01_[2]; 00139 00140 for(int iEE=0;iEE<2;iEE++) { 00141 for(int i=0;i<3;++i) { 00142 if(h04_[i][iEE]) delete h04_[i][iEE]; 00143 if(h02ProjR_[i][iEE]) delete h02ProjR_[i][iEE]; 00144 if(h02ProjPhi_[i][iEE]) delete h02ProjPhi_[i][iEE]; 00145 } 00146 } 00147 00148 if(h03_[0]) delete h03_[0]; 00149 if(h03ProjR_[0]) delete h03ProjR_[0]; 00150 if(h03ProjPhi_[0]) delete h03ProjPhi_[0]; 00151 00152 if(h03_[1]) delete h03_[1]; 00153 if(h03ProjR_[1]) delete h03ProjR_[1]; 00154 if(h03ProjPhi_[1]) delete h03ProjPhi_[1]; 00155 00156 if(i01_[0]) delete i01_[0]; 00157 if(i01_[1]) delete i01_[1]; 00158 if(i01_[2]) delete i01_[2]; 00159 00160 if(s01_[0]) delete s01_[0]; 00161 if(s01_[1]) delete s01_[1]; 00162 if(s01_[2]) delete s01_[2]; 00163 00164 } 00165 00166 h01_[0] = 0; 00167 h01_[1] = 0; 00168 h01_[2] = 0; 00169 00170 for(int iEE=0;iEE<2;iEE++) { 00171 for(int i=0;i<3;++i) { 00172 h04_[i][iEE] = 0; 00173 h02ProjR_[i][iEE] = 0; 00174 h02ProjPhi_[i][iEE] = 0; 00175 } 00176 } 00177 00178 h03_[0] = 0; 00179 h03ProjR_[0] = 0; 00180 h03ProjPhi_[0] = 0; 00181 00182 h03_[1] = 0; 00183 h03ProjR_[1] = 0; 00184 h03ProjPhi_[1] = 0; 00185 00186 i01_[0] = 0; 00187 i01_[1] = 0; 00188 i01_[2] = 0; 00189 00190 s01_[0] = 0; 00191 s01_[1] = 0; 00192 s01_[2] = 0; 00193 00194 }
EndJob.
Implements EEClient.
Definition at line 109 of file EEClusterClient.cc.
References cleanup(), GenMuonPlsPt100GeV_cfg::cout, debug_, lat::endl(), and ievt_.
00109 { 00110 00111 if ( debug_ ) cout << "EEClusterClient: endJob, ievt = " << ievt_ << endl; 00112 00113 this->cleanup(); 00114 00115 }
EndRun.
Implements EEClient.
Definition at line 117 of file EEClusterClient.cc.
References cleanup(), GenMuonPlsPt100GeV_cfg::cout, debug_, lat::endl(), and jevt_.
00117 { 00118 00119 if ( debug_ ) cout << "EEClusterClient: endRun, jevt = " << jevt_ << endl; 00120 00121 this->cleanup(); 00122 00123 }
Get Functions.
Implements EEClient.
Definition at line 75 of file EEClusterClient.h.
References ievt_.
00075 { return ievt_; }
Setup.
Implements EEClient.
Definition at line 125 of file EEClusterClient.cc.
References dqmStore_, prefixME_, and DQMStore::setCurrentFolder().
Referenced by beginRun().
00125 { 00126 00127 dqmStore_->setCurrentFolder( prefixME_ + "/EEClusterClient" ); 00128 00129 }
bool EEClusterClient::writeDb | ( | EcalCondDBInterface * | econn, | |
RunIOV * | runiov, | |||
MonRunIOV * | moniov, | |||
bool & | status, | |||
bool | flag | |||
) | [virtual] |
WriteDB.
Implements EEClient.
Definition at line 196 of file EEClusterClient.cc.
00196 { 00197 00198 status = true; 00199 00200 if ( ! flag ) return false; 00201 00202 return true; 00203 00204 }
friend class EESummaryClient [friend] |
Definition at line 34 of file EEClusterClient.h.
bool EEClusterClient::cloneME_ [private] |
Definition at line 83 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
bool EEClusterClient::debug_ [private] |
Definition at line 86 of file EEClusterClient.h.
Referenced by analyze(), beginJob(), beginRun(), EEClusterClient(), endJob(), and endRun().
DQMStore* EEClusterClient::dqmStore_ [private] |
bool EEClusterClient::enableCleanup_ [private] |
TH1F* EEClusterClient::h01_[3] [private] |
Definition at line 96 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
TProfile* EEClusterClient::h02ProjPhi_[3][2] [private] |
Definition at line 99 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
TProfile* EEClusterClient::h02ProjR_[3][2] [private] |
Definition at line 98 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
TH2F* EEClusterClient::h03_[2] [private] |
Definition at line 100 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
TH1F* EEClusterClient::h03ProjPhi_[2] [private] |
Definition at line 102 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
TH1F* EEClusterClient::h03ProjR_[2] [private] |
Definition at line 101 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
TProfile2D* EEClusterClient::h04_[3][2] [private] |
Definition at line 97 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
TH1F* EEClusterClient::i01_[3] [private] |
Definition at line 103 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
int EEClusterClient::ievt_ [private] |
Definition at line 80 of file EEClusterClient.h.
Referenced by analyze(), beginJob(), endJob(), and getEvtPerJob().
int EEClusterClient::jevt_ [private] |
Definition at line 81 of file EEClusterClient.h.
Referenced by analyze(), beginJob(), beginRun(), endRun(), and getEvtPerRun().
std::string EEClusterClient::prefixME_ [private] |
Definition at line 88 of file EEClusterClient.h.
Referenced by analyze(), EEClusterClient(), and setup().
TH1F* EEClusterClient::s01_[3] [private] |
Definition at line 104 of file EEClusterClient.h.
Referenced by analyze(), cleanup(), and EEClusterClient().
std::vector<int> EEClusterClient::superModules_ [private] |
bool EEClusterClient::verbose_ [private] |