LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ResultsPrincipal.cc
Go to the documentation of this file.
2 // vim: set sw=2:
3 
8 
10  ResultsAuxiliary const& aux,
11  ProcessConfiguration const& pc,
12  cet::exempt_ptr<ProductTable const> presentProducts,
13  std::unique_ptr<BranchMapper>&& mapper,
14  std::unique_ptr<DelayedReader>&& rtrv)
15  : Principal{pc,
17  presentProducts,
18  std::move(mapper),
19  std::move(rtrv)}
20  , aux_{aux}
21 {
23  cet::exempt_ptr<EDProductGetterFinder const>{this});
24 }
25 
28 {
29  return InResults;
30 }
31 
34 {
35  return aux().processHistoryID_;
36 }
37 
38 void
40 {
41  aux().setProcessHistoryID(phid);
42 }
43 
44 void
46 {
49 }
50 
51 void
53  std::unique_ptr<EDProduct>&& edp,
54  BranchDescription const& pd,
55  std::unique_ptr<ProductProvenance const>&& productProvenance)
56 {
57  assert(edp);
58  branchMapper().insert(std::move(productProvenance));
60  pd, pd.productID(), RangeSet::invalid(), std::move(edp)));
61 }
void setProcessHistoryID(ProcessHistoryID const &phid) const
void setGroupFinder(cet::exempt_ptr< EDProductGetterFinder const > ep)
Definition: DelayedReader.h:38
DelayedReader & productReader()
Definition: Principal.h:198
ProcessHistoryID processHistoryID_
BranchMapper const & branchMapper() const
Definition: Principal.h:144
result_t insert(std::unique_ptr< ProductProvenance const > &&)
Definition: BranchMapper.cc:24
ProcessHistoryID const & processHistoryID() const override
ProductID productID() const
virtual void fillGroup(BranchDescription const &)=0
BranchType branchType() const override
ResultsPrincipal(ResultsAuxiliary const &, ProcessConfiguration const &, cet::exempt_ptr< ProductTable const > presentProducts, std::unique_ptr< BranchMapper > &&mapper=std::make_unique< BranchMapper >(), std::unique_ptr< DelayedReader > &&rtrv=std::make_unique< NoDelayedReader >())
ResultsAuxiliary aux_
void put(std::unique_ptr< EDProduct > &&, BranchDescription const &, std::unique_ptr< ProductProvenance const > &&)
static RangeSet invalid()
Definition: RangeSet.cc:46
BranchType
Definition: BranchType.h:18
void fillGroup(BranchDescription const &) override
ResultsAuxiliary const & aux() const
void setProcessHistoryID(ProcessHistoryID const &phid) override
std::unique_ptr< Group > make_group(BranchDescription const &, ProductID const &, RangeSet &&)
Definition: GroupFactory.h:44