#include <RunLumiSelector.h>
Public Member Functions | |
bool | operator() (edm::EventBase const &ev, pat::strbitset &ret) |
RunLumiSelector () | |
RunLumiSelector (edm::ParameterSet const ¶ms) | |
Private Attributes | |
std::vector < edm::LuminosityBlockRange > | lumis_ |
Definition at line 14 of file RunLumiSelector.h.
RunLumiSelector::RunLumiSelector | ( | ) | [inline] |
Definition at line 16 of file RunLumiSelector.h.
{}
RunLumiSelector::RunLumiSelector | ( | edm::ParameterSet const & | params | ) | [inline] |
Definition at line 18 of file RunLumiSelector.h.
References edm::ParameterSet::exists(), edm::ParameterSet::getUntrackedParameter(), and lumis_.
bool RunLumiSelector::operator() | ( | edm::EventBase const & | ev, |
pat::strbitset & | ret | ||
) | [inline] |
Definition at line 34 of file RunLumiSelector.h.
References edm::EventBase::id(), edm::EventID::luminosityBlock(), lumis_, run_regression::ret, and edm::EventID::run().
{ if ( !ignoreCut("RunLumi") ) { bool goodLumi = false; for ( std::vector<edm::LuminosityBlockRange>::const_iterator lumisBegin = lumis_.begin(), lumisEnd = lumis_.end(), ilumi = lumisBegin; ilumi != lumisEnd; ++ilumi ) { if ( ev.id().run() >= ilumi->startRun() && ev.id().run() <= ilumi->endRun() && ev.id().luminosityBlock() >= ilumi->startLumi() && ev.id().luminosityBlock() <= ilumi->endLumi() ) { goodLumi = true; break; } } if ( goodLumi ) passCut(ret, "RunLumi" ); } else { passCut(ret, "RunLumi"); } setIgnored(ret); return (bool)ret; }
std::vector<edm::LuminosityBlockRange> RunLumiSelector::lumis_ [private] |
Definition at line 60 of file RunLumiSelector.h.
Referenced by operator()(), and RunLumiSelector().