LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ProducingService.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
12 
13 namespace art {
14 
17  {}
18  ProducingService::~ProducingService() noexcept = default;
19 
20  void
22  {
23  // We choose the one-argument constructor since the path
24  // information is irrelevant when the doPostRead* functions are
25  // invoked.
26  mc_ = ModuleContext{md};
27  }
28 
29  void
31  {
35  }
36 
37  void
39  {
40  auto r = rp.makeRun(mc_, RangeSet::forRun(rp.runID()));
41  postReadRun(r);
42  r.commitProducts();
43  }
44 
45  void
47  {
48  auto sr = srp.makeSubRun(mc_, RangeSet::forSubRun(srp.subRunID()));
49  postReadSubRun(sr);
50  sr.commitProducts();
51  }
52 
53  void
55  {
56  auto e = ep.makeEvent(mc_);
58  e.commitProducts(true, &expectedProducts<InEvent>());
59  }
60 
61  void
63  {}
64 
65  void
67  {}
68 
69  void
71  {}
72 
73 } // namespace art
TRandom r
Definition: spectrum.C:23
virtual void postReadEvent(Event &)
void doPostReadSubRun(SubRunPrincipal &)
Event makeEvent(ModuleContext const &mc)
virtual ~ProducingService() noexcept
void doPostReadEvent(EventPrincipal &)
Definition: Run.h:37
GlobalSignal< detail::SignalResponseType::LIFO, void(SubRunPrincipal &)> sPostReadSubRun
static RangeSet forSubRun(SubRunID)
Definition: RangeSet.cc:57
Run makeRun(ModuleContext const &mc, RangeSet const &rs=RangeSet::invalid())
Definition: RunPrincipal.cc:24
void setModuleDescription(ModuleDescription const &)
virtual void postReadRun(Run &)
Definition: MVAAlg.h:12
void registerCallbacks(ProducingServiceSignals &)
SubRun makeSubRun(ModuleContext const &mc, RangeSet const &rs=RangeSet::invalid())
void doPostReadRun(RunPrincipal &)
Float_t e
Definition: plot.C:35
virtual void postReadSubRun(SubRun &)
static RangeSet forRun(RunID)
Definition: RangeSet.cc:51
SubRunID subRunID() const
GlobalSignal< detail::SignalResponseType::LIFO, void(EventPrincipal &)> sPostReadEvent
GlobalSignal< detail::SignalResponseType::LIFO, void(RunPrincipal &)> sPostReadRun
RunID runID() const
Definition: RunPrincipal.cc:54