#include <HLTTauCertifier.h>
Public Member Functions | |
HLTTauCertifier (const edm::ParameterSet &) | |
~HLTTauCertifier () | |
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) |
Fake Analyze. | |
void | beginJob () |
BeginJob. | |
void | beginLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) |
Luminosity Block. | |
void | beginRun (const edm::Run &r, const edm::EventSetup &c) |
BeginRun. | |
void | endJob () |
Endjob. | |
void | endLuminosityBlock (const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) |
DQM Client Diagnostic. | |
void | endRun (const edm::Run &r, const edm::EventSetup &c) |
EndRun. | |
Private Attributes | |
DQMStore * | dbe_ |
std::vector< std::string > | inputMEs_ |
bool | setBadRunOnErrors_ |
bool | setBadRunOnWarnings_ |
std::string | targetFolder_ |
std::string | targetME_ |
Definition at line 21 of file HLTTauCertifier.h.
HLTTauCertifier::HLTTauCertifier | ( | const edm::ParameterSet & | ps | ) |
Definition at line 9 of file HLTTauCertifier.cc.
References dbe_, and edm::ParameterSet::getParameter().
{ targetFolder_ = ps.getParameter<string>("targetDir"); targetME_ = ps.getParameter<string>("targetME"); inputMEs_ = ps.getParameter<vector<string> >("inputMEs"); setBadRunOnWarnings_ = ps.getParameter<bool>("setBadRunOnWarnings"); setBadRunOnErrors_ = ps.getParameter<bool>("setBadRunOnErrors"); dbe_ = &*edm::Service<DQMStore>(); }
HLTTauCertifier::~HLTTauCertifier | ( | ) |
Definition at line 21 of file HLTTauCertifier.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
void HLTTauCertifier::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
void HLTTauCertifier::beginJob | ( | void | ) | [protected, virtual] |
void HLTTauCertifier::beginLuminosityBlock | ( | const edm::LuminosityBlock & | lumiSeg, |
const edm::EventSetup & | context | ||
) | [protected, virtual] |
Luminosity Block.
Reimplemented from edm::EDAnalyzer.
Definition at line 42 of file HLTTauCertifier.cc.
{ }
void HLTTauCertifier::beginRun | ( | const edm::Run & | r, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
void HLTTauCertifier::endJob | ( | void | ) | [protected, virtual] |
Endjob.
Reimplemented from edm::EDAnalyzer.
Definition at line 91 of file HLTTauCertifier.cc.
{
return;
}
void HLTTauCertifier::endLuminosityBlock | ( | const edm::LuminosityBlock & | lumiSeg, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
DQM Client Diagnostic.
Reimplemented from edm::EDAnalyzer.
Definition at line 58 of file HLTTauCertifier.cc.
{ }
void HLTTauCertifier::endRun | ( | const edm::Run & | r, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
EndRun.
Reimplemented from edm::EDAnalyzer.
Definition at line 62 of file HLTTauCertifier.cc.
References DQMStore::bookFloat(), dbe_, benchmark_cfg::errors, MonitorElement::Fill(), DQMStore::get(), MonitorElement::getQErrors(), MonitorElement::getQWarnings(), i, DQMStore::setCurrentFolder(), and benchmark_cfg::warnings.
{ if(dbe_) { int warnings=0; int errors=0; double response=1.0; for(unsigned int i=0;i<inputMEs_.size();++i) { MonitorElement *monElement = dbe_->get(inputMEs_.at(i)); if(monElement) { warnings+=monElement->getQWarnings().size(); errors+=monElement->getQErrors().size(); } } if(setBadRunOnWarnings_ && warnings>0) response=0.0; if(setBadRunOnErrors_ && errors>0) response=0.0; //OK SAVE THE FINAL RESULT dbe_->setCurrentFolder(targetFolder_); MonitorElement *certME = dbe_->bookFloat(targetME_); certME->Fill(response); } }
DQMStore* HLTTauCertifier::dbe_ [private] |
Definition at line 50 of file HLTTauCertifier.h.
std::vector<std::string> HLTTauCertifier::inputMEs_ [private] |
Definition at line 53 of file HLTTauCertifier.h.
bool HLTTauCertifier::setBadRunOnErrors_ [private] |
Definition at line 55 of file HLTTauCertifier.h.
bool HLTTauCertifier::setBadRunOnWarnings_ [private] |
Definition at line 54 of file HLTTauCertifier.h.
std::string HLTTauCertifier::targetFolder_ [private] |
Definition at line 52 of file HLTTauCertifier.h.
std::string HLTTauCertifier::targetME_ [private] |
Definition at line 51 of file HLTTauCertifier.h.