#include <ESDataCertificationTask.h>
Public Member Functions | |
ESDataCertificationTask (const edm::ParameterSet &ps) | |
virtual | ~ESDataCertificationTask () |
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) |
void | beginJob (void) |
void | beginLuminosityBlock (const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) |
void | cleanup (void) |
void | endJob (void) |
void | endLuminosityBlock (const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) |
void | reset (void) |
Private Attributes | |
DQMStore * | dqmStore_ |
bool | enableCleanup_ |
MonitorElement * | meESDataCertificationSummary_ |
MonitorElement * | meESDataCertificationSummaryMap_ |
bool | mergeRuns_ |
std::string | prefixME_ |
Definition at line 8 of file ESDataCertificationTask.h.
ESDataCertificationTask::ESDataCertificationTask | ( | const edm::ParameterSet & | ps | ) |
Definition at line 26 of file ESDataCertificationTask.cc.
References edm::ParameterSet::getUntrackedParameter(), and cmsCodeRules::cppFunctionSkipper::operator.
{ dqmStore_ = Service<DQMStore>().operator->(); prefixME_ = ps.getUntrackedParameter<string>("prefixME", ""); enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false); mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false); meESDataCertificationSummary_ = 0; meESDataCertificationSummaryMap_ = 0; }
ESDataCertificationTask::~ESDataCertificationTask | ( | ) | [virtual] |
Definition at line 41 of file ESDataCertificationTask.cc.
{ }
void ESDataCertificationTask::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
void ESDataCertificationTask::beginJob | ( | void | ) | [protected, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 45 of file ESDataCertificationTask.cc.
References trackerHits::histo.
{ char histo[200]; if ( dqmStore_ ) { dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo"); sprintf(histo, "CertificationSummary"); meESDataCertificationSummary_ = dqmStore_->bookFloat(histo); meESDataCertificationSummary_->Fill(0.0); sprintf(histo, "CertificationSummaryMap"); meESDataCertificationSummaryMap_ = dqmStore_->book2D(histo,histo, 40, 0., 40., 40, 0., 40.); meESDataCertificationSummaryMap_->setAxisTitle("X", 1); meESDataCertificationSummaryMap_->setAxisTitle("Y", 2); } }
void ESDataCertificationTask::beginLuminosityBlock | ( | const edm::LuminosityBlock & | lumiBlock, |
const edm::EventSetup & | iSetup | ||
) | [protected, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 72 of file ESDataCertificationTask.cc.
References reset().
{ this->reset(); }
void ESDataCertificationTask::cleanup | ( | void | ) | [protected] |
Definition at line 91 of file ESDataCertificationTask.cc.
{ if ( dqmStore_ ) { dqmStore_->setCurrentFolder(prefixME_ + "/EventInfo"); if ( meESDataCertificationSummary_ ) dqmStore_->removeElement( meESDataCertificationSummary_->getName() ); if ( meESDataCertificationSummaryMap_ ) dqmStore_->removeElement( meESDataCertificationSummaryMap_->getName() ); } }
void ESDataCertificationTask::endJob | ( | void | ) | [protected, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 66 of file ESDataCertificationTask.cc.
References edm::cleanup().
{ if ( enableCleanup_ ) this->cleanup(); }
void ESDataCertificationTask::endLuminosityBlock | ( | const edm::LuminosityBlock & | lumiBlock, |
const edm::EventSetup & | iSetup | ||
) | [protected, virtual] |
void ESDataCertificationTask::reset | ( | void | ) | [protected] |
Definition at line 82 of file ESDataCertificationTask.cc.
DQMStore* ESDataCertificationTask::dqmStore_ [private] |
Definition at line 27 of file ESDataCertificationTask.h.
bool ESDataCertificationTask::enableCleanup_ [private] |
Definition at line 31 of file ESDataCertificationTask.h.
Definition at line 35 of file ESDataCertificationTask.h.
Definition at line 36 of file ESDataCertificationTask.h.
bool ESDataCertificationTask::mergeRuns_ [private] |
Definition at line 33 of file ESDataCertificationTask.h.
std::string ESDataCertificationTask::prefixME_ [private] |
Definition at line 29 of file ESDataCertificationTask.h.