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.";
41 return processHistory.
id();
44 processHistory.push_back(pc);
45 auto const phid = processHistory.id();
50 std::unique_ptr<art::History>
52 std::unique_ptr<History>&& history)
const 64 auto const phid = history->processHistoryID();
70 "Error while attempting to create event principal from SourceHelper.\n"}
71 <<
"There is no processing history corresponding to the valid id: " 73 <<
"Please contact artists@fnal.gov for guidance.";
78 auto const new_phid = processHistory.
id();
80 history->setProcessHistoryID(new_phid);
100 principal->markProcessHistoryAsModified();
129 principal->markProcessHistoryAsModified();
152 std::unique_ptr<History>&& history)
const 154 if (history.get() ==
nullptr) {
157 "Error while attempting to create principal from SourceHelper.\n"}
158 <<
"The provided 'unique_ptr<History>' object is null, which is not " 160 "for this makeEventPrincipal function overload. Please choose a " 162 "function to use, or provided a non-null History unique pointer. " 164 "artists@fnal.gov for further guidance.";
168 auto const processHistoryID = new_history->processHistoryID();
173 if (processHistoryID.isValid()) {
174 principal->markProcessHistoryAsModified();
183 bool const isRealData,
196 bool const isRealData,
std::unique_ptr< History > history_(ProcessConfiguration const &, std::unique_ptr< History > &&) const
cet::exempt_ptr< ProductTables const > presentProducts_
void setPresentProducts(cet::exempt_ptr< ProductTables const > presentProducts)
SubRunPrincipal * makeSubRunPrincipal(SubRunAuxiliary const &subRunAux) const
void setProcessHistoryID(ProcessHistoryID const &phid) const
RunPrincipal * makeRunPrincipal(RunAuxiliary const &runAux) const
ProcessHistoryID id() const
static collection_type const & get()
SourceHelper(ModuleDescription const &md)
IDNumber_t< Level::SubRun > SubRunNumber_t
ProcessConfiguration const & processConfiguration() const
void throwIfProductsNotRegistered_() const
static constexpr Timestamp invalidTimestamp()
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
ProcessHistoryID & processHistoryID() const noexcept
IDNumber_t< Level::Event > EventNumber_t
ProcessHistoryID const & processHistoryID() const noexcept
EventPrincipal * makeEventPrincipal(EventAuxiliary const &eventAux, std::unique_ptr< History > &&history) const
static constexpr double sr
void push_back(const_reference t)
static auto emplace(value_type const &value)
ProcessHistoryID processHistoryID_(BranchType, ProcessConfiguration const &) const
IDNumber_t< Level::Run > RunNumber_t