13 if (pset.
exists(
"setRunNumber")) {
16 return std::make_unique<SetRunHelper>(
pset);
19 if (pset.
exists(
"setRunNumberForEachLumi")) {
22 return std::make_unique<SetRunForEachLumiHelper>(
pset);
25 return std::make_unique<DefaultRunHelper>();
31 assert(lumi == originalLumi);
35 assert(run == originalRun);
42 setRun_(pset.getUntrackedParameter<unsigned
int>(
"setRunNumber")),
53 <<
"The value of the 'setRunNumber' parameter must not be\n" 54 <<
"less than the first run number in the first input file.\n" 55 <<
"'setRunNumber' was " <<
setRun_ <<
", while the first run was " << firstRun <<
".\n";
76 <<
"The 'setRunNumber' parameter of PoolSource cannot be used with real data.\n";
91 setRunNumberForEachLumi_(pset.getUntrackedParameter<
std::vector<unsigned
int> >(
"setRunNumberForEachLumi")),
92 indexOfNextRunNumber_(0),
111 <<
"but this job is processing more luminosity blocks than this.\n";
116 <<
"'setRunNumberForEachLumi' contains an illegal run number of '0'.\n";
119 if (!sameRunNumber) {
134 <<
" Parameter 'setRunNumberForEachLumi' can only process a single run.\n" 135 <<
"but this job is processing more than one run.\n";
149 <<
"The 'setRunNumberForEachLumi' parameter of PoolSource cannot be used with real data.\n";
161 "setRunNumberForEachLumi", std::vector<unsigned int>(),
false),
164 "If 'setRun' is non-zero, change number of first run to this number. Apply same offset to all runs." 165 "If 'setRunNumberForEachLumi' is non-empty, use these as run numbers for each lumi respectively." 166 "''setRun' and 'setRunNumberForEachLumi' are mutually exclusive and allowed only for simulation.");
void setComment(std::string const &value)
T getUntrackedParameter(std::string const &, T const &) const
void checkForNewRun(RunNumber_t run) override
size_t indexOfNextRunNumber_
static LuminosityBlockID firstValidLuminosityBlock()
void setForcedRunOffset(RunNumber_t firstRun) override
void checkRunConsistency(RunNumber_t run, RunNumber_t origninalRun) const override
static void fillDescription(ParameterSetDescription &desc)
void overrideRunNumber(EventID &event, bool isRealData) override
bool exists(std::string const ¶meterName) const
checks if a parameter exists
static RunID firstValidRun()
unsigned int LuminosityBlockNumber_t
RunNumber_t realRunNumber_
InputSource::ItemType nextItemType(InputSource::ItemType const &previousItemType, InputSource::ItemType const &newIemType) override
SetRunHelper(ParameterSet const &pset)
void checkRunConsistency(RunNumber_t run, RunNumber_t origninalRun) const override
ParameterDescriptionNode * addOptionalNode(ParameterDescriptionNode const &node, bool writeToCfi)
~DefaultRunHelper() override
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::unique_ptr< RunHelperBase > makeRunHelper(ParameterSet const &pset)
SetRunForEachLumiHelper(ParameterSet const &pset)
~SetRunForEachLumiHelper() override
virtual void checkLumiConsistency(LuminosityBlockNumber_t lumi, LuminosityBlockNumber_t origninalLumi) const
RunNumber_t runNumberToUseForThisLumi() const override
std::vector< RunNumber_t > setRunNumberForEachLumi_
void overrideRunNumber(EventID &event, bool isRealData) override
virtual void checkRunConsistency(RunNumber_t run, RunNumber_t origninalRun) const