37 : recordName_(pset.getParameter<std::
string>(
"recordName")),
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.");
void delaySettingRecords() override
void setIntervalFor(eventsetup::EventSetupRecordKey const &, IOVSyncValue const &iTime, ValidityInterval &oInterval) override
EmptyESSource(ParameterSet const &)
EmptyESSource const & operator=(EmptyESSource const &)=delete
static const IOVSyncValue & endOfTime()
const eventsetup::ComponentDescription & descriptionForFinder() const
std::pair< Time_t, Time_t > ValidityInterval
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::set< IOVSyncValue > setOfIOV_
static void fillDescriptions(ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
T getParameter(std::string const &) const
static const ValidityInterval & invalidInterval()
void findingRecordWithKey(const eventsetup::EventSetupRecordKey &)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag