LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ProducingService.cc
Go to the documentation of this file.
10 #include "fhiclcpp/ParameterSet.h"
11 
12 art::ProducingService::~ProducingService() noexcept = default;
13 
14 void
15 art::ProducingService::registerCallbacks(ProducingServiceSignals& signals)
16 {
17  signals.sPostReadRun.watch(this, &ProducingService::doPostReadRun);
18  signals.sPostReadSubRun.watch(this, &ProducingService::doPostReadSubRun);
19  signals.sPostReadEvent.watch(this, &ProducingService::doPostReadEvent);
20 }
21 
22 void
24 {
26  postReadRun(r);
27  r.commit(rp, true, expectedProducts<InRun>());
28 }
29 
30 void
32 {
33  SubRun sr{
35  postReadSubRun(sr);
36  sr.commit(srp, true, expectedProducts<InSubRun>());
37 }
38 
39 void
41 {
44  e.commit(ep, true, expectedProducts<InEvent>());
45 }
46 
47 void
49 {}
50 
51 void
53 {}
54 
55 void
57 {}
58 
59 void
61 {
62  md_ = md;
63 }
virtual void postReadSubRun(SubRun &sr)
virtual ~ProducingService() noexcept
static cet::exempt_ptr< Consumer > non_module_context()
Definition: Consumer.cc:76
virtual void postReadEvent(Event &e)
Definition: Run.h:30
void doPostReadSubRun(SubRunPrincipal &srp)
SubRunID id() const
void setModuleDescription(ModuleDescription const &md)
void doPostReadEvent(EventPrincipal &ep)
static RangeSet forRun(RunID)
Definition: RangeSet.cc:52
ModuleDescription md_
static RangeSet forSubRun(SubRunID)
Definition: RangeSet.cc:58
RunID const & id() const
Definition: RunPrincipal.h:46
HLT enums.
virtual void postReadRun(Run &r)
Float_t e
Definition: plot.C:34
void doPostReadRun(RunPrincipal &rp)