|
|
Go to the documentation of this file.
38 iovIsTime_(!
pset.getParameter<
bool>(
"iovIsRunNotTime")) {
39 std::vector<unsigned int>
temp(
pset.getParameter<std::vector<unsigned int>>(
"firstValid"));
40 for (std::vector<unsigned int>::iterator itValue =
temp.begin(), itValueEnd =
temp.end(); itValue != itValueEnd;
55 <<
" The Record type named \"" <<
recordName_ <<
"\" could not be found. Please check the spelling. \n"
56 <<
"If the spelling is fine, then no module in the job requires this Record and therefore EmptyESSource can "
58 "In such a case please either remove the EmptyESSource with label'"
73 std::pair<std::set<IOVSyncValue>::iterator, std::set<IOVSyncValue>::iterator> itFound =
77 if (itFound.first == itFound.second) {
95 endOfInterval =
IOVSyncValue(itFound.second->eventID().previousRunLastEvent(0));
105 "The name of the EventSetup Record for which intervals are to be generated.\n The record type must be used "
106 "by some module in the job else an exception will occur.");
107 desc.
add<
bool>(
"iovIsRunNotTime",
true)->setComment(
"Sets how to interpret integer values used in 'firstValid'");
108 desc.
add<std::vector<unsigned int>>(
"firstValid")
110 "Sets the beginning point of an IOV. The end point is assumed to be the next entry in the list. If there "
111 "are no further entries than 'end of time' is used.");
EmptyESSource(ParameterSet const &)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setIntervalFor(eventsetup::EventSetupRecordKey const &, IOVSyncValue const &iTime, ValidityInterval &oInterval) override
const eventsetup::ComponentDescription & descriptionForFinder() const
std::set< IOVSyncValue > setOfIOV_
void delaySettingRecords() override
void findingRecordWithKey(const eventsetup::EventSetupRecordKey &)
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
static const IOVSyncValue & endOfTime()
EmptyESSource const & operator=(EmptyESSource const &)=delete
std::pair< Time_t, Time_t > ValidityInterval
static void fillDescriptions(ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
static const ValidityInterval & invalidInterval()