13 firstRun_(pset.getUntrackedParameter<unsigned int>(
"firstRun", 1U)),
14 firstLumi_(pset.getUntrackedParameter<unsigned int>(
"firstLuminosityBlock", 0U)),
15 firstEvent_(pset.getUntrackedParameter<unsigned int>(
"firstEvent", 1U)),
18 whichEventsToSkip_(pset.getUntrackedParameter<std::vector<
EventRange> >(
"eventsToSkip",std::vector<
EventRange>())),
19 whichEventsToProcess_(pset.getUntrackedParameter<std::vector<
EventRange> >(
"eventsToProcess",std::vector<
EventRange>())),
20 skippingLumis_(!(whichLumisToSkip_.
empty() && whichLumisToProcess_.
empty())),
21 skippingEvents_(!(whichEventsToSkip_.
empty() && whichEventsToProcess_.
empty())),
22 somethingToSkip_(skippingLumis_ || skippingEvents_ || !(firstRun_ <= 1U && firstLumi_ <= 1U && firstEvent_ <= 1U)) {
31 std::auto_ptr<EventSkipperByID>
34 if (!evSkp->somethingToSkip()) {
46 if(run == 0U) run = 1U;
113 ->setComment(
"Skip any run with run number < 'firstRun'.");
114 desc.
addUntracked<
unsigned int>(
"firstLuminosityBlock", 0U)
115 ->setComment(
"Skip any lumi in run 'firstRun' with lumi number < 'firstLuminosityBlock'.");
117 ->setComment(
"If 'firstLuminosityBlock' == 0, skip any event in run 'firstRun' with event number < 'firstEvent'.\n"
118 "If 'firstLuminosityBlock' != 0, skip any event in lumi 'firstRun:firstLuminosityBlock' with event number < 'firstEvent'.");
120 std::vector<LuminosityBlockRange> defaultLumis;
121 desc.
addUntracked<std::vector<LuminosityBlockRange> >(
"lumisToSkip", defaultLumis)
122 ->setComment(
"Skip any lumi inside the specified run:lumi range.");
123 desc.
addUntracked<std::vector<LuminosityBlockRange> >(
"lumisToProcess", defaultLumis)
124 ->setComment(
"If not empty, skip any lumi outside the specified run:lumi range.");
126 std::vector<EventRange> defaultEvents;
127 desc.
addUntracked<std::vector<EventRange> >(
"eventsToSkip", defaultEvents)
128 ->setComment(
"Skip any event inside the specified run:event or run:lumi:event range.");
129 desc.
addUntracked<std::vector<EventRange> >(
"eventsToProcess", defaultEvents)
130 ->setComment(
"If not empty, skip any event outside the specified run:event or run:lumi:event range.");
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
unsigned int EventNumber_t
bool skippingLumis() const
bool skipIt(RunNumber_t run, LuminosityBlockNumber_t lumi, EventNumber_t event) const
LuminosityBlockNumber_t firstLumi_
unsigned int LuminosityBlockNumber_t
bool skippingEvents() const
std::vector< LuminosityBlockRange > whichLumisToSkip_
std::vector< EventRange > whichEventsToProcess_
bool lessThanSpecial(EventRange const &lh, EventRange const &rh)
< trclass="colgroup">< tdclass="colgroup"colspan=5 > Muon Digi collections</td >< tr >< td >< ahref="classDTDigi.html"> DTDigi</a ></td >< td >< ahref="DataFormats_DTDigi.html"> MuonDigiCollection & lt
std::vector< LuminosityBlockRange > whichLumisToProcess_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::vector< EventRange > whichEventsToSkip_
EventNumber_t firstEvent_
static void fillDescription(ParameterSetDescription &desc)
std::vector< EventRange > & sortAndRemoveOverlaps(std::vector< EventRange > &eventRange)
bool binary_search_all(ForwardSequence const &s, Datum const &d)
wrappers for std::binary_search
bool lessThan(EventRange const &lh, EventRange const &rh)
static std::auto_ptr< EventSkipperByID > create(ParameterSet const &pset)
EventSkipperByID(ParameterSet const &pset)