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_;