10 newRun(SubRunPrincipal
const& srp,
11 ModuleDescription
const& md,
12 cet::exempt_ptr<Consumer> consumer)
14 return srp.runPrincipalExemptPtr() ?
15 new Run{srp.runPrincipal(), md, consumer} :
22 cet::exempt_ptr<Consumer> consumer,
27 ,
run_{newRun(srp, md, consumer)}
36 <<
"Tried to obtain a NULL run.\n";
49 bool const checkProducts,
50 std::set<TypeLabel>
const& expectedProducts)
63 auto const& pd = elem.second.pd;
64 auto productProvenancePtr = std::make_unique<ProductProvenance const>(
67 srp.
put(std::move(elem.second.prod),
69 std::move(productProvenancePtr),
70 std::move(elem.second.rs));
void put(std::unique_ptr< EDProduct > &&, BranchDescription const &, std::unique_ptr< ProductProvenance const > &&, RangeSet &&)
std::unique_ptr< Run const > const run_
Principal const & principal_
SubRun(SubRunPrincipal const &srp, ModuleDescription const &md, cet::exempt_ptr< Consumer > consumer, RangeSet const &rsForPuttingProducts=RangeSet::invalid())
RangeSet productRangeSet_
Run const & getRun() const
SubRunAuxiliary const & aux_
EDProductGetter const * productGetter(ProductID const pid) const
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
void commit(SubRunPrincipal &srp, bool const checkProducts, std::set< TypeLabel > const &expectedProducts)
EDProductGetter const * productGetter(ProductID const pid) const
TypeLabelMap & putProducts()
void checkPutProducts(bool checkProducts, std::set< TypeLabel > const &expectedProducts, TypeLabelMap const &putProducts)