LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Run.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
5 
6 namespace art {
7 
8  Run::~Run() = default;
9 
10  Run::Run(RunPrincipal const& srp,
11  ModuleContext const& mc,
12  std::optional<ProductInserter> inserter,
13  RangeSet const& rs /* = RangeSet::invalid() */)
14  : ProductRetriever{InRun, srp, mc, false}
15  , inserter_{std::move(inserter)}
16  , runPrincipal_{srp}
17  , rangeSet_{rs}
18  {}
19 
20  RunID
21  Run::id() const
22  {
23  return runPrincipal_.runID();
24  }
25 
27  Run::run() const
28  {
29  return id().run();
30  }
31 
32  Timestamp const&
34  {
35  return runPrincipal_.beginTime();
36  }
37 
38  Timestamp const&
39  Run::endTime() const
40  {
41  return runPrincipal_.endTime();
42  }
43 
44  ProcessHistory const&
46  {
48  }
49 
50  void
52  {
53  assert(inserter_);
54  inserter_->commitProducts();
55  }
56 
57 } // namespace art
Timestamp const & endTime() const
Definition: Run.cc:39
RunID id() const
Definition: Run.cc:21
RangeSet rangeSet_
Definition: Run.h:116
RunNumber_t run() const
Definition: Run.cc:27
RunNumber_t run() const
Definition: RunID.h:64
Timestamp const & endTime() const
Definition: RunPrincipal.cc:42
Timestamp const & beginTime() const
Definition: RunPrincipal.cc:36
ProcessHistory const & processHistory() const
Definition: Principal.cc:247
ProcessHistory const & processHistory() const
Definition: Run.cc:45
std::optional< ProductInserter > inserter_
Definition: Run.h:112
void commitProducts()
Definition: Run.cc:51
Definition: MVAAlg.h:12
Timestamp const & beginTime() const
Definition: Run.cc:33
RunPrincipal const & runPrincipal_
Definition: Run.h:113
RunID runID() const
Definition: RunPrincipal.cc:54
Run(RunPrincipal const &srp, ModuleContext const &mc, std::optional< ProductInserter > inserter=std::nullopt, RangeSet const &rs=RangeSet::invalid())
Definition: Run.cc:10
IDNumber_t< Level::Run > RunNumber_t
Definition: IDNumber.h:120