12 std::unique_ptr<RunHelperBase>
14 if(pset.
exists(
"setRunNumber")) {
17 return std::make_unique<SetRunHelper>(
pset);
20 if(pset.
exists(
"setRunNumberForEachLumi")) {
23 return std::make_unique<SetRunForEachLumiHelper>(
pset);
26 return std::make_unique<DefaultRunHelper>();
33 assert(lumi == originalLumi);
38 assert(run == originalRun);
45 setRun_(pset.getUntrackedParameter<unsigned
int>(
"setRunNumber")),
58 <<
"The value of the 'setRunNumber' parameter must not be\n" 59 <<
"less than the first run number in the first input file.\n" 60 <<
"'setRunNumber' was " <<
setRun_ <<
", while the first run was " 83 <<
"The 'setRunNumber' parameter of PoolSource cannot be used with real data.\n";
98 setRunNumberForEachLumi_(pset.getUntrackedParameter<
std::vector<unsigned
int> >(
"setRunNumberForEachLumi")),
99 indexOfNextRunNumber_(0),
118 <<
"but this job is processing more luminosity blocks than this.\n";
123 "'setRunNumberForEachLumi' contains an illegal run number of '0'.\n";
143 <<
" Parameter 'setRunNumberForEachLumi' can only process a single run.\n" 144 <<
"but this job is processing more than one run.\n";
163 <<
"The 'setRunNumberForEachLumi' parameter of PoolSource cannot be used with real data.\n";
176 ParameterDescription<std::vector<unsigned int> >(
"setRunNumberForEachLumi", std::vector<unsigned int>(),
false),
true)
177 ->
setComment(
"If 'setRun' is non-zero, change number of first run to this number. Apply same offset to all runs." \
178 "If 'setRunNumberForEachLumi' is non-empty, use these as run numbers for each lumi respectively." \
179 "''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
virtual void checkForNewRun(RunNumber_t run) override
size_t indexOfNextRunNumber_
static LuminosityBlockID firstValidLuminosityBlock()
virtual void setForcedRunOffset(RunNumber_t firstRun) override
virtual void checkRunConsistency(RunNumber_t run, RunNumber_t origninalRun) const override
static void fillDescription(ParameterSetDescription &desc)
virtual 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_
virtual InputSource::ItemType nextItemType(InputSource::ItemType const &previousItemType, InputSource::ItemType const &newIemType) override
SetRunHelper(ParameterSet const &pset)
virtual void checkRunConsistency(RunNumber_t run, RunNumber_t origninalRun) const override
virtual ~DefaultRunHelper()
ParameterDescriptionNode * addOptionalNode(ParameterDescriptionNode const &node, bool writeToCfi)
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)
virtual void checkLumiConsistency(LuminosityBlockNumber_t lumi, LuminosityBlockNumber_t origninalLumi) const
virtual RunNumber_t runNumberToUseForThisLumi() const override
std::vector< RunNumber_t > setRunNumberForEachLumi_
virtual ~SetRunForEachLumiHelper()
virtual void overrideRunNumber(EventID &event, bool isRealData) override
virtual void checkRunConsistency(RunNumber_t run, RunNumber_t origninalRun) const