#include <HLTTauRelvalQTester.h>
Public Member Functions | |
HLTTauRelvalQTester (const edm::ParameterSet &ps) | |
~HLTTauRelvalQTester () | |
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) |
Analyze. | |
void | endJob () |
void | endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) |
perform the actual quality tests | |
void | endRun (const edm::Run &r, const edm::EventSetup &c) |
Private Attributes | |
std::vector< int > | mothers_ |
edm::InputTag | refMothers_ |
bool | runQTests |
Definition at line 4 of file HLTTauRelvalQTester.h.
HLTTauRelvalQTester::HLTTauRelvalQTester | ( | const edm::ParameterSet & | ps | ) |
Definition at line 7 of file HLTTauRelvalQTester.cc.
References edm::ParameterSet::getParameter(), mothers_, refMothers_, and runQTests.
: QualityTester(ps) { refMothers_ = ps.getParameter<edm::InputTag >("refMothers"); mothers_ = ps.getParameter<std::vector<int> >("mothers"); runQTests = false; }
HLTTauRelvalQTester::~HLTTauRelvalQTester | ( | ) |
Definition at line 15 of file HLTTauRelvalQTester.cc.
{ }
void HLTTauRelvalQTester::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
Analyze.
Reimplemented from QualityTester.
Definition at line 23 of file HLTTauRelvalQTester.cc.
References edm::Event::getByLabel(), i, j, mothers_, refMothers_, and runQTests.
{ edm::Handle<std::vector<int> > refMothers; if(e.getByLabel(refMothers_,refMothers)) for(unsigned int i=0;i<refMothers->size();++i) { int mother = (*refMothers)[i]; for(unsigned int j=0;j<mothers_.size();++j) { if(mothers_[j]==mother) runQTests = true; } if(runQTests) { QualityTester::analyze(e,c); } } }
void HLTTauRelvalQTester::endJob | ( | void | ) | [protected, virtual] |
Reimplemented from QualityTester.
Definition at line 60 of file HLTTauRelvalQTester.cc.
{ QualityTester::endJob(); }
void HLTTauRelvalQTester::endLuminosityBlock | ( | edm::LuminosityBlock const & | lumiSeg, |
edm::EventSetup const & | c | ||
) | [protected, virtual] |
perform the actual quality tests
Reimplemented from QualityTester.
Definition at line 44 of file HLTTauRelvalQTester.cc.
{ QualityTester::endLuminosityBlock(lumiSeg,c); }
void HLTTauRelvalQTester::endRun | ( | const edm::Run & | r, |
const edm::EventSetup & | c | ||
) | [protected, virtual] |
Reimplemented from QualityTester.
Definition at line 52 of file HLTTauRelvalQTester.cc.
{ QualityTester::endRun(r,c); }
std::vector<int> HLTTauRelvalQTester::mothers_ [private] |
Definition at line 19 of file HLTTauRelvalQTester.h.
Referenced by analyze(), and HLTTauRelvalQTester().
Definition at line 18 of file HLTTauRelvalQTester.h.
Referenced by analyze(), and HLTTauRelvalQTester().
bool HLTTauRelvalQTester::runQTests [private] |
Definition at line 20 of file HLTTauRelvalQTester.h.
Referenced by analyze(), and HLTTauRelvalQTester().