23 "Error while attempting to create principal from SourceHelper.\n")
24 <<
"Principals cannot be created until product registration is " 26 "This can happen if you are attempting to create a Principal\n" 27 "outside of your 'readNext' function, or if you are using a\n" 28 "different SourceHelper object than the one provided by art.\n" 29 "Please contact artists@fnal.gov for guidance.";
42 return processHistoryID;
46 if (processHistoryID.
isValid()) {
52 "Error while attempting to create principal from SourceHelper.\n")
53 <<
"The provided process-history ID\n" 54 <<
" " << processHistory <<
'\n' 55 <<
"does not correspond to a known process history.\n" 56 "Please contact artists@fnal.gov for guidance.";
59 processHistory.push_back(pc);
60 auto const phid = processHistory.id();
67 cet::exempt_ptr<ProductTables const> presentProducts)
77 constexpr
auto branch_type = T::branch_type;
82 if (aux.processHistoryID().isValid()) {
83 principal->markProcessHistoryAsModified();
91 return makePrincipal_<RunPrincipal>(std::move(runAux));
112 return makePrincipal_<SubRunPrincipal>(std::move(subRunAux));
134 return makePrincipal_<EventPrincipal>(std::move(eventAux));
141 bool const isRealData,
153 bool const isRealData,
SubRunPrincipal * makeSubRunPrincipal(SubRunAuxiliary subRunAux) const
cet::exempt_ptr< ProductTables const > presentProducts_
void setPresentProducts(cet::exempt_ptr< ProductTables const > presentProducts)
EventPrincipal * makeEventPrincipal(EventAuxiliary eventAux) const
static collection_type const & get()
SourceHelper(ModuleDescription const &md)
ProcessHistoryID updatedProcessHistoryID_(ProcessHistoryID const &, BranchType, ProcessConfiguration const &) const
IDNumber_t< Level::SubRun > SubRunNumber_t
T * makePrincipal_(typename T::Auxiliary aux) const
ProcessConfiguration const & processConfiguration() const
void throwIfProductsNotRegistered_() const
static constexpr Timestamp invalidTimestamp()
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
RunPrincipal * makeRunPrincipal(RunAuxiliary runAux) const
IDNumber_t< Level::Event > EventNumber_t
static auto emplace(value_type const &value)
IDNumber_t< Level::Run > RunNumber_t