1 #ifndef Analysis_AnalysisFilters_interface_RunLumiSelector_h 2 #define Analysis_AnalysisFilters_interface_RunLumiSelector_h 28 if (params.
exists(
"lumisToProcess")) {
33 set(
"RunLumi",
false);
36 retInternal_ = getBitTemplate();
40 if (!ignoreCut(
"RunLumi")) {
41 bool goodLumi =
false;
42 for (std::vector<edm::LuminosityBlockRange>::const_iterator lumisBegin =
lumis_.begin(),
47 if (ev.
id().
run() >= ilumi->startRun() && ev.
id().
run() <= ilumi->endRun() &&
54 passCut(ret,
"RunLumi");
56 passCut(ret,
"RunLumi");
66 std::vector<edm::LuminosityBlockRange>
lumis_;
T getUntrackedParameter(std::string const &, T const &) const
std::vector< edm::LuminosityBlockRange > lumis_
ret
prodAgent to be discontinued
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)
bool operator()(edm::EventBase const &ev, pat::strbitset &ret) override