1 #ifndef Analysis_AnalysisFilters_interface_RunLumiSelector_h 2 #define Analysis_AnalysisFilters_interface_RunLumiSelector_h 28 if (
params.exists(
"lumisToProcess")) {
29 lumis_ =
params.getUntrackedParameter<std::vector<edm::LuminosityBlockRange> >(
"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() &&
48 ev.id().luminosityBlock() >= ilumi->startLumi() &&
ev.id().luminosityBlock() <= ilumi->endLumi()) {
54 passCut(
ret,
"RunLumi");
56 passCut(
ret,
"RunLumi");
66 std::vector<edm::LuminosityBlockRange>
lumis_;
std::vector< edm::LuminosityBlockRange > lumis_
ret
prodAgent to be discontinued
RunLumiSelector(edm::ParameterSet const ¶ms, edm::ConsumesCollector &&iC)
RunLumiSelector(edm::ParameterSet const ¶ms)
deadvectors [0] push_back({0.0175431, 0.538005, 6.80997, 13.29})
bool operator()(edm::EventBase const &ev, pat::strbitset &ret) override