#include <EBClusterClient.h>
Public Member Functions | |
void | analyze (void) |
Analyze. | |
void | beginJob (void) |
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 | setup (void) |
Setup. | |
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 34 of file EBClusterClient.h.
EBClusterClient::EBClusterClient | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 26 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_.
{ // cloneME switch cloneME_ = ps.getUntrackedParameter<bool>("cloneME", true); // verbose switch verbose_ = ps.getUntrackedParameter<bool>("verbose", true); // debug switch debug_ = ps.getUntrackedParameter<bool>("debug", false); // prefixME path prefixME_ = ps.getUntrackedParameter<std::string>("prefixME", ""); // enableCleanup_ switch enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false); // vector of selected Super Modules (Defaults to all 36). superModules_.reserve(36); for ( unsigned int i = 1; i <= 36; i++ ) superModules_.push_back(i); superModules_ = ps.getUntrackedParameter<std::vector<int> >("superModules", superModules_); h01_[0] = 0; h01_[1] = 0; h01_[2] = 0; h02_[0] = 0; h02ProjEta_[0] = 0; h02ProjPhi_[0] = 0; h02_[1] = 0; h02ProjEta_[1] = 0; h02ProjPhi_[1] = 0; h03_ = 0; h03ProjEta_ = 0; h03ProjPhi_ = 0; h04_ = 0; h04ProjEta_ = 0; h04ProjPhi_ = 0; i01_[0] = 0; i01_[1] = 0; i01_[2] = 0; s01_[0] = 0; s01_[1] = 0; s01_[2] = 0; }
EBClusterClient::~EBClusterClient | ( | ) | [virtual] |
void EBClusterClient::analyze | ( | void | ) | [virtual] |
Analyze.
Implements EBClient.
Definition at line 195 of file EBClusterClient.cc.
References cloneME_, gather_cfg::cout, debug_, dqmStore_, DQMStore::get(), getHisto(), h01_, h02_, h02ProjEta_, h02ProjPhi_, h03_, h03ProjEta_, h03ProjPhi_, h04_, h04ProjEta_, h04ProjPhi_, i01_, ievt_, jevt_, prefixME_, and s01_.
{ ievt_++; jevt_++; if ( ievt_ % 10 == 0 ) { if ( debug_ ) std::cout << "EBClusterClient: ievt/jevt = " << ievt_ << "/" << jevt_ << std::endl; } MonitorElement* me; me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC energy" ); h01_[0] = UtilsClient::getHisto( me, cloneME_, h01_[0] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC size" ); h01_[1] = UtilsClient::getHisto( me, cloneME_, h01_[1] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC number" ); h01_[2] = UtilsClient::getHisto( me, cloneME_, h01_[2] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC energy map" ); h02_[0] = UtilsClient::getHisto( me, cloneME_, h02_[0] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC ET map" ); h02_[1] = UtilsClient::getHisto( me, cloneME_, h02_[1] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC number map" ); h03_ = UtilsClient::getHisto( me, cloneME_, h03_ ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC size map" ); h04_ = UtilsClient::getHisto( me, cloneME_, h04_ ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC energy projection eta" ); h02ProjEta_[0] = UtilsClient::getHisto( me, cloneME_, h02ProjEta_[0] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC energy projection phi" ); h02ProjPhi_[0] = UtilsClient::getHisto( me, cloneME_, h02ProjPhi_[0] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC ET projection eta" ); h02ProjEta_[1] = UtilsClient::getHisto( me, cloneME_, h02ProjEta_[1] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC ET projection phi" ); h02ProjPhi_[1] = UtilsClient::getHisto( me, cloneME_, h02ProjPhi_[1] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC number projection eta" ); h03ProjEta_ = UtilsClient::getHisto( me, cloneME_, h03ProjEta_ ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC number projection phi" ); h03ProjPhi_ = UtilsClient::getHisto( me, cloneME_, h03ProjPhi_ ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC size projection eta" ); h04ProjEta_ = UtilsClient::getHisto( me, cloneME_, h04ProjEta_ ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT BC size projection phi" ); h04ProjPhi_ = UtilsClient::getHisto( me, cloneME_, h04ProjPhi_ ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT SC energy" ); i01_[0] = UtilsClient::getHisto( me, cloneME_, i01_[0] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT SC size" ); i01_[1] = UtilsClient::getHisto( me, cloneME_, i01_[1] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT SC number" ); i01_[2] = UtilsClient::getHisto( me, cloneME_, i01_[2] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT s1s9" ); s01_[0] = UtilsClient::getHisto( me, cloneME_, s01_[0] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT s9s25" ); s01_[1] = UtilsClient::getHisto( me, cloneME_, s01_[1] ); me = dqmStore_->get( prefixME_ + "/EBClusterTask/EBCLT dicluster invariant mass Pi0" ); s01_[2] = UtilsClient::getHisto( me, cloneME_, s01_[2] ); }
void EBClusterClient::beginJob | ( | void | ) | [virtual] |
BeginJob.
Implements EBClient.
Definition at line 81 of file EBClusterClient.cc.
References gather_cfg::cout, debug_, dqmStore_, ievt_, jevt_, and cmsCodeRules::cppFunctionSkipper::operator.
void EBClusterClient::beginRun | ( | void | ) | [virtual] |
void EBClusterClient::cleanup | ( | void | ) | [virtual] |
Cleanup.
Implements EBClient.
Definition at line 124 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().
{ if ( ! enableCleanup_ ) return; if ( cloneME_ ) { if ( h01_[0] ) delete h01_[0]; if ( h01_[1] ) delete h01_[1]; if ( h01_[2] ) delete h01_[2]; if ( h02_[0] ) delete h02_[0]; if ( h02ProjEta_[0] ) delete h02ProjEta_[0]; if ( h02ProjPhi_[0] ) delete h02ProjPhi_[0]; if ( h02_[1] ) delete h02_[1]; if ( h02ProjEta_[1] ) delete h02ProjEta_[1]; if ( h02ProjPhi_[1] ) delete h02ProjPhi_[1]; if ( h03_ ) delete h03_; if ( h03ProjEta_ ) delete h03ProjEta_; if ( h03ProjPhi_ ) delete h03ProjPhi_; if ( h04_ ) delete h04_; if ( h04ProjEta_ ) delete h04ProjEta_; if ( h04ProjPhi_ ) delete h04ProjPhi_; if ( i01_[0] ) delete i01_[0]; if ( i01_[1] ) delete i01_[1]; if ( i01_[2] ) delete i01_[2]; if ( s01_[0] ) delete s01_[0]; if ( s01_[1] ) delete s01_[1]; if ( s01_[2] ) delete s01_[2]; } h01_[0] = 0; h01_[1] = 0; h01_[2] = 0; h02_[0] = 0; h02ProjEta_[0] = 0; h02ProjPhi_[0] = 0; h02_[1] = 0; h02ProjEta_[1] = 0; h02ProjPhi_[1] = 0; h03_ = 0; h03ProjEta_ = 0; h03ProjPhi_ = 0; h04_ = 0; h04ProjEta_ = 0; h04ProjPhi_ = 0; i01_[0] = 0; i01_[1] = 0; i01_[2] = 0; s01_[0] = 0; s01_[1] = 0; s01_[2] = 0; }
void EBClusterClient::endJob | ( | void | ) | [virtual] |
void EBClusterClient::endRun | ( | void | ) | [virtual] |
int EBClusterClient::getEvtPerJob | ( | void | ) | [inline, virtual] |
Get Functions.
Implements EBClient.
Definition at line 73 of file EBClusterClient.h.
References ievt_.
{ return ievt_; }
int EBClusterClient::getEvtPerRun | ( | void | ) | [inline, virtual] |
void EBClusterClient::setup | ( | void | ) | [virtual] |
Setup.
Implements EBClient.
Definition at line 118 of file EBClusterClient.cc.
References dqmStore_, prefixME_, and DQMStore::setCurrentFolder().
Referenced by beginRun().
{ dqmStore_->setCurrentFolder( prefixME_ + "/EBClusterClient" ); }
friend class EBSummaryClient [friend] |
Definition at line 36 of file EBClusterClient.h.
bool EBClusterClient::cloneME_ [private] |
Definition at line 81 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
bool EBClusterClient::debug_ [private] |
Definition at line 84 of file EBClusterClient.h.
Referenced by analyze(), beginJob(), beginRun(), EBClusterClient(), endJob(), and endRun().
DQMStore* EBClusterClient::dqmStore_ [private] |
Definition at line 92 of file EBClusterClient.h.
Referenced by analyze(), beginJob(), and setup().
bool EBClusterClient::enableCleanup_ [private] |
Definition at line 88 of file EBClusterClient.h.
Referenced by cleanup(), and EBClusterClient().
TH1F* EBClusterClient::h01_[3] [private] |
Definition at line 94 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile2D* EBClusterClient::h02_[2] [private] |
Definition at line 95 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile* EBClusterClient::h02ProjEta_[2] [private] |
Definition at line 96 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile * EBClusterClient::h02ProjPhi_[2] [private] |
Definition at line 96 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TH2F* EBClusterClient::h03_ [private] |
Definition at line 97 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TH1F* EBClusterClient::h03ProjEta_ [private] |
Definition at line 98 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TH1F * EBClusterClient::h03ProjPhi_ [private] |
Definition at line 98 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile2D* EBClusterClient::h04_ [private] |
Definition at line 99 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile* EBClusterClient::h04ProjEta_ [private] |
Definition at line 100 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TProfile * EBClusterClient::h04ProjPhi_ [private] |
Definition at line 100 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
TH1F* EBClusterClient::i01_[3] [private] |
Definition at line 101 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
int EBClusterClient::ievt_ [private] |
Definition at line 78 of file EBClusterClient.h.
Referenced by analyze(), beginJob(), endJob(), and getEvtPerJob().
int EBClusterClient::jevt_ [private] |
Definition at line 79 of file EBClusterClient.h.
Referenced by analyze(), beginJob(), beginRun(), endRun(), and getEvtPerRun().
std::string EBClusterClient::prefixME_ [private] |
Definition at line 86 of file EBClusterClient.h.
Referenced by analyze(), EBClusterClient(), and setup().
TH1F* EBClusterClient::s01_[3] [private] |
Definition at line 103 of file EBClusterClient.h.
Referenced by analyze(), cleanup(), and EBClusterClient().
std::vector<int> EBClusterClient::superModules_ [private] |
Definition at line 90 of file EBClusterClient.h.
Referenced by EBClusterClient().
bool EBClusterClient::verbose_ [private] |
Definition at line 83 of file EBClusterClient.h.
Referenced by EBClusterClient().