1 #ifndef Analysis_AnalysisFilters_interface_RunLumiSelector_h
2 #define Analysis_AnalysisFilters_interface_RunLumiSelector_h
31 if ( params.
exists(
"lumisToProcess") ) {
37 set(
"RunLumi",
false);
40 retInternal_ = getBitTemplate();
45 if ( !ignoreCut(
"RunLumi") ) {
46 bool goodLumi =
false;
47 for ( std::vector<edm::LuminosityBlockRange>::const_iterator lumisBegin =
lumis_.begin(),
48 lumisEnd =
lumis_.end(), ilumi = lumisBegin;
49 ilumi != lumisEnd; ++ilumi ) {
50 if ( ev.
id().
run() >= ilumi->startRun() && ev.
id().
run() <= ilumi->endRun() &&
56 if ( goodLumi ) passCut(ret,
"RunLumi" );
58 passCut(ret,
"RunLumi");
69 std::vector<edm::LuminosityBlockRange>
lumis_;
T getUntrackedParameter(std::string const &, T const &) const
std::vector< edm::LuminosityBlockRange > lumis_
tuple ret
prodAgent to be discontinued
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, edm::ConsumesCollector &&iC)
RunLumiSelector(edm::ParameterSet const ¶ms)