LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
SubRunPrincipal.cc
Go to the documentation of this file.
3 // vim: set sw=2 expandtab :
4 
5 namespace art {
6 
8 
10  SubRunAuxiliary const& aux,
11  ProcessConfiguration const& pc,
12  cet::exempt_ptr<ProductTable const> presentProducts,
13  std::unique_ptr<DelayedReader>&&
14  reader /*= std::make_unique<NoDelayedReader>()*/)
16  pc,
17  presentProducts,
18  aux.processHistoryID(),
19  std::move(reader)}
20  , aux_{aux}
21  {}
22 
23  SubRun
25  {
26  return SubRun{*this, mc, makeInserter(mc), rs};
27  }
28 
29  SubRun
31  {
32  return SubRun{*this, mc};
33  }
34 
35  SubRunAuxiliary const&
37  {
38  return aux_;
39  }
40 
41  SubRunID
43  {
44  return aux_.id();
45  }
46 
49  {
50  return aux_.subRun();
51  }
52 
53  Timestamp const&
55  {
56  return aux_.beginTime();
57  }
58 
59  Timestamp const&
61  {
62  return aux_.endTime();
63  }
64 
65  RunPrincipal const&
67  {
68  if (!runPrincipal_) {
70  << "Tried to obtain a NULL runPrincipal.\n";
71  }
72  return *runPrincipal_;
73  }
74 
75  RunID const&
77  {
78  return aux_.runID();
79  }
80 
83  {
84  return aux_.run();
85  }
86 
87  void
88  SubRunPrincipal::setRunPrincipal(cet::exempt_ptr<RunPrincipal const> rp)
89  {
90  runPrincipal_ = rp;
91  }
92 
93  void
95  ProductTables const& producedProducts)
96  {
99  }
100 
101 } // namespace art
RunID const & runID() const noexcept
void setRunPrincipal(cet::exempt_ptr< RunPrincipal const > rp)
std::optional< ProductInserter > makeInserter(ModuleContext const &mc)
Definition: Principal.cc:813
void setProcessHistoryID(ProcessHistoryID const &phid)
cet::exempt_ptr< RunPrincipal const > runPrincipal_
RunNumber_t run() const
SubRunAuxiliary aux_
SubRunNumber_t subRun() const noexcept
void createGroupsForProducedProducts(ProductTables const &producedProducts)
Definition: Principal.cc:201
RunPrincipal const & runPrincipal() const
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:148
IDNumber_t< Level::SubRun > SubRunNumber_t
Definition: IDNumber.h:119
Timestamp const & endTime() const noexcept
RunNumber_t run() const noexcept
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
SubRunPrincipal(SubRunAuxiliary const &, ProcessConfiguration const &, cet::exempt_ptr< ProductTable const >, std::unique_ptr< DelayedReader > &&=std::make_unique< NoDelayedReader >())
SubRunID const & id() const noexcept
SubRunNumber_t subRun() const
ProcessHistoryID const & processHistoryID() const noexcept
Definition: MVAAlg.h:12
SubRun makeSubRun(ModuleContext const &mc, RangeSet const &rs=RangeSet::invalid())
Timestamp const & endTime() const
SubRunAuxiliary const & subRunAux() const
void createGroupsForProducedProducts(ProductTables const &producedProducts)
Timestamp const & beginTime() const
RunID const & runID() const
SubRunID subRunID() const
Timestamp const & beginTime() const noexcept