1 #ifndef Analysis_AnalysisFilters_interface_RunLumiSelector_h
2 #define Analysis_AnalysisFilters_interface_RunLumiSelector_h
22 if ( params.
exists(
"lumisToProcess") ) {
28 set(
"RunLumi",
false);
31 retInternal_ = getBitTemplate();
36 if ( !ignoreCut(
"RunLumi") ) {
37 bool goodLumi =
false;
38 for ( std::vector<edm::LuminosityBlockRange>::const_iterator lumisBegin =
lumis_.begin(),
39 lumisEnd =
lumis_.end(), ilumi = lumisBegin;
40 ilumi != lumisEnd; ++ilumi ) {
41 if ( ev.
id().
run() >= ilumi->startRun() && ev.
id().
run() <= ilumi->endRun() &&
47 if ( goodLumi ) passCut(ret,
"RunLumi" );
49 passCut(ret,
"RunLumi");
60 std::vector<edm::LuminosityBlockRange>
lumis_;
T getUntrackedParameter(std::string const &, T const &) const
std::vector< edm::LuminosityBlockRange > lumis_
bool operator()(edm::EventBase const &ev, pat::strbitset &ret)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
LuminosityBlockNumber_t luminosityBlock() const
RunLumiSelector(edm::ParameterSet const ¶ms)