LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
RunPrincipal.cc
Go to the documentation of this file.
3 // vim: set sw=2 expandtab :
4 
5 namespace art {
6 
7  RunPrincipal::~RunPrincipal() = default;
8 
10  RunAuxiliary const& aux,
11  ProcessConfiguration const& pc,
12  cet::exempt_ptr<ProductTable const> presentProducts,
13  std::unique_ptr<DelayedReader>&&
14  reader /*= std::make_unique<NoDelayedReader>()*/)
15  : Principal{InRun,
16  pc,
17  presentProducts,
18  aux.processHistoryID(),
19  std::move(reader)}
20  , aux_{aux}
21  {}
22 
23  Run
25  {
26  return Run{*this, mc, makeInserter(mc), rs};
27  }
28 
29  Run
31  {
32  return Run{*this, mc};
33  }
34 
35  Timestamp const&
37  {
38  return aux_.beginTime();
39  }
40 
41  Timestamp const&
43  {
44  return aux_.endTime();
45  }
46 
47  RunAuxiliary const&
49  {
50  return aux_;
51  }
52 
53  RunID
55  {
56  return aux_.id();
57  }
58 
61  {
62  return aux_.run();
63  }
64 
65  void
67  ProductTables const& producedProducts)
68  {
71  }
72 } // namespace art
std::optional< ProductInserter > makeInserter(ModuleContext const &mc)
Definition: Principal.cc:813
ProcessHistoryID const & processHistoryID() const noexcept
Definition: RunAuxiliary.cc:52
RunAuxiliary const & runAux() const
Definition: RunPrincipal.cc:48
Timestamp const & beginTime() const noexcept
Definition: RunAuxiliary.cc:70
RunAuxiliary aux_
Definition: RunPrincipal.h:42
Definition: Run.h:37
Timestamp const & endTime() const
Definition: RunPrincipal.cc:42
void createGroupsForProducedProducts(ProductTables const &producedProducts)
Definition: RunPrincipal.cc:66
void createGroupsForProducedProducts(ProductTables const &producedProducts)
Definition: Principal.cc:201
Run makeRun(ModuleContext const &mc, RangeSet const &rs=RangeSet::invalid())
Definition: RunPrincipal.cc:24
ProcessHistoryID const & processHistoryID() const
Definition: Principal.h:148
Timestamp const & beginTime() const
Definition: RunPrincipal.cc:36
RunNumber_t run() const
Definition: RunPrincipal.cc:60
RunNumber_t run() const noexcept
Timestamp const & endTime() const noexcept
Definition: RunAuxiliary.cc:76
Definition: MVAAlg.h:12
void setProcessHistoryID(ProcessHistoryID const &)
Definition: RunAuxiliary.cc:82
RunPrincipal(RunAuxiliary const &, ProcessConfiguration const &, cet::exempt_ptr< ProductTable const >, std::unique_ptr< DelayedReader > &&=std::make_unique< NoDelayedReader >())
Definition: RunPrincipal.cc:9
RunID const & id() const noexcept
Definition: RunAuxiliary.cc:64
RunID runID() const
Definition: RunPrincipal.cc:54
IDNumber_t< Level::Run > RunNumber_t
Definition: IDNumber.h:120