#include <EventSkipperByID.h>
Definition at line 17 of file EventSkipperByID.h.
◆ EventSkipperByID()
edm::EventSkipperByID::EventSkipperByID |
( |
ParameterSet const & |
pset | ) |
|
|
explicit |
Definition at line 7 of file EventSkipperByID.cc.
13 firstRun_(
pset.getUntrackedParameter<
unsigned int>(
"firstRun", 1
U)),
14 firstLumi_(
pset.getUntrackedParameter<
unsigned int>(
"firstLuminosityBlock", 0
U)),
16 ?
pset.getUntrackedParameter<
unsigned int>(
"firstEvent")
17 :
pset.getUntrackedParameter<
unsigned long long>(
"firstEvent", 1
U)),
19 "lumisToSkip", std::vector<LuminosityBlockRange>())),
21 "lumisToProcess", std::vector<LuminosityBlockRange>())),
23 pset.getUntrackedParameter<std::vector<EventRange> >(
"eventsToSkip", std::vector<EventRange>())),
25 pset.getUntrackedParameter<std::vector<EventRange> >(
"eventsToProcess", std::vector<EventRange>())),
References edm::sortAndRemoveOverlaps(), whichEventsToProcess_, whichEventsToSkip_, whichLumisToProcess_, and whichLumisToSkip_.
◆ ~EventSkipperByID()
edm::EventSkipperByID::~EventSkipperByID |
( |
| ) |
|
◆ create()
◆ fillDescription()
Definition at line 116 of file EventSkipperByID.cc.
117 desc.addUntracked<
unsigned int>(
"firstRun", 1
U)->setComment(
"Skip any run with run number < 'firstRun'.");
118 desc.addUntracked<
unsigned int>(
"firstLuminosityBlock", 0
U)
119 ->setComment(
"Skip any lumi in run 'firstRun' with lumi number < 'firstLuminosityBlock'.");
124 "'firstEvent' is an XOR group because it can have type uint32 or uint64, default:1\n"
125 "If 'firstLuminosityBlock' == 0, skip any event in run 'firstRun' with event number < 'firstEvent'.\n"
126 "If 'firstLuminosityBlock' != 0, skip any event in lumi 'firstRun:firstLuminosityBlock' with event number "
129 std::vector<LuminosityBlockRange> defaultLumis;
130 desc.addUntracked<std::vector<LuminosityBlockRange> >(
"lumisToSkip", defaultLumis)
132 "Skip any lumi inside the specified run:lumi range. In python do 'help(cms.LuminosityBlockRange)' for "
134 desc.addUntracked<std::vector<LuminosityBlockRange> >(
"lumisToProcess", defaultLumis)
136 "If not empty, skip any lumi outside the specified run:lumi range. In python do "
137 "'help(cms.LuminosityBlockRange)' for documentation.");
139 std::vector<EventRange> defaultEvents;
140 desc.addUntracked<std::vector<EventRange> >(
"eventsToSkip", defaultEvents)
142 "Skip any event inside the specified run:event or run:lumi:event range. In python do "
143 "'help(cms.EventRange)' for documentation.");
144 desc.addUntracked<std::vector<EventRange> >(
"eventsToProcess", defaultEvents)
146 "If not empty, skip any event outside the specified run:event or run:lumi:event range. In python do "
147 "'help(cms.EventRange)' for documentation.");
References submitPVResolutionJobs::desc, and mitigatedMETSequence_cff::U.
Referenced by edm::RootPrimaryFileSequence::fillDescription(), edm::StreamerFileReader::fillDescriptions(), and dqmservices::DQMStreamerReader::fillDescriptions().
◆ skipIt()
Definition at line 49 of file EventSkipperByID.cc.
79 LuminosityBlockID lumiID = LuminosityBlockID(
run,
lumi);
98 EventRange
eventRange = EventRange(eventID, eventID);
99 EventID eventIDNoLumi = EventID(
run, 0
U,
event);
100 EventRange eventRangeNoLumi = EventRange(eventIDNoLumi, eventIDNoLumi);
References edm::binary_search_all(), electrons_cff::bool, unittestinputsource_cfi::eventRange, firstEvent_, firstLumi_, firstRun_, edm::lessThan(), edm::lessThanSpecial(), writedatasetfile::run, skippingEvents(), skippingLumis(), mitigatedMETSequence_cff::U, whichEventsToProcess_, whichEventsToSkip_, whichLumisToProcess_, and whichLumisToSkip_.
◆ skippingEvents()
bool edm::EventSkipperByID::skippingEvents |
( |
| ) |
const |
|
inline |
◆ skippingLumis()
bool edm::EventSkipperByID::skippingLumis |
( |
| ) |
const |
|
inline |
◆ somethingToSkip()
bool edm::EventSkipperByID::somethingToSkip |
( |
| ) |
const |
|
inline |
◆ firstEvent_
◆ firstLumi_
◆ firstRun_
◆ skippingEvents_
bool edm::EventSkipperByID::skippingEvents_ |
|
private |
◆ skippingLumis_
bool edm::EventSkipperByID::skippingLumis_ |
|
private |
◆ somethingToSkip_
bool edm::EventSkipperByID::somethingToSkip_ |
|
private |
◆ whichEventsToProcess_
std::vector<EventRange> edm::EventSkipperByID::whichEventsToProcess_ |
|
private |
◆ whichEventsToSkip_
std::vector<EventRange> edm::EventSkipperByID::whichEventsToSkip_ |
|
private |
◆ whichLumisToProcess_
◆ whichLumisToSkip_