Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
art::ProducingService Class Reference

#include <ProducingService.h>

Inheritance diagram for art::ProducingService:
art::ProductRegistryHelper gar::geo::GeometryGArConfigurationWriter geo::GeometryConfigurationWriter

Public Member Functions

 ProducingService ()
 
virtual ~ProducingService () noexcept
 
void setModuleDescription (ModuleDescription const &)
 
void registerCallbacks (ProducingServiceSignals &)
 
void doPostReadRun (RunPrincipal &)
 
void doPostReadSubRun (SubRunPrincipal &)
 
void doPostReadEvent (EventPrincipal &)
 

Static Public Attributes

static constexpr bool service_handle_allowed {false}
 

Private Member Functions

virtual void postReadRun (Run &)
 
virtual void postReadSubRun (SubRun &)
 
virtual void postReadEvent (Event &)
 
- Private Member Functions inherited from art::ProductRegistryHelper
 ProductRegistryHelper (product_creation_mode)
 
 ~ProductRegistryHelper ()
 
 ProductRegistryHelper (ProductRegistryHelper const &)=delete
 
 ProductRegistryHelper (ProductRegistryHelper &&)=delete
 
ProductRegistryHelperoperator= (ProductRegistryHelper const &)=delete
 
ProductRegistryHelperoperator= (ProductRegistryHelper &&)=delete
 
void productList (std::unique_ptr< ProductList > p)
 
void registerProducts (ProductDescriptions &productsToRegister, ModuleDescription const &md)
 
void fillDescriptions (ModuleDescription const &md)
 
template<typename P , BranchType B>
TypeLabel const & reconstitutes (std::string const &modLabel, std::string const &instanceName={})
 
template<BranchType B>
TypeLabelLookup_t const & expectedProducts () const
 
template<typename P , BranchType B = InEvent>
void produces (std::string const &instanceName={}, Persistable const persistable=Persistable::Yes)
 
ProducesCollectorproducesCollector () noexcept
 

Private Attributes

ModuleContext mc_ {ModuleContext::invalid()}
 

Detailed Description

Definition at line 17 of file ProducingService.h.

Constructor & Destructor Documentation

art::ProducingService::ProducingService ( )
art::ProducingService::~ProducingService ( )
virtualdefaultnoexcept

Member Function Documentation

void art::ProducingService::doPostReadEvent ( EventPrincipal ep)

Definition at line 54 of file ProducingService.cc.

55  {
56  Event e{ep, mc_};
58  e.movePutProductsToPrincipal(ep, true, &expectedProducts<InEvent>());
59  }
virtual void postReadEvent(Event &)
const double e
void art::ProducingService::doPostReadRun ( RunPrincipal rp)

Definition at line 38 of file ProducingService.cc.

39  {
40  Run r{rp, mc_, RangeSet::forRun(rp.runID())};
41  postReadRun(r);
42  r.movePutProductsToPrincipal(rp);
43  }
virtual void postReadRun(Run &)
static RangeSet forRun(RunID)
Definition: RangeSet.cc:51
void art::ProducingService::doPostReadSubRun ( SubRunPrincipal srp)

Definition at line 46 of file ProducingService.cc.

47  {
48  SubRun sr{srp, mc_, RangeSet::forSubRun(srp.subRunID())};
50  sr.movePutProductsToPrincipal(srp);
51  }
static RangeSet forSubRun(SubRunID)
Definition: RangeSet.cc:57
static constexpr double sr
Definition: Units.h:166
virtual void postReadSubRun(SubRun &)
void art::ProducingService::postReadEvent ( Event )
privatevirtual

Definition at line 70 of file ProducingService.cc.

71  {}
void art::ProducingService::postReadRun ( Run )
privatevirtual

Reimplemented in gar::geo::GeometryGArConfigurationWriter, and geo::GeometryConfigurationWriter.

Definition at line 62 of file ProducingService.cc.

63  {}
void art::ProducingService::postReadSubRun ( SubRun )
privatevirtual

Definition at line 66 of file ProducingService.cc.

67  {}
void art::ProducingService::registerCallbacks ( ProducingServiceSignals cbReg)

Definition at line 30 of file ProducingService.cc.

31  {
32  cbReg.sPostReadRun.watch(this, &ProducingService::doPostReadRun);
33  cbReg.sPostReadSubRun.watch(this, &ProducingService::doPostReadSubRun);
34  cbReg.sPostReadEvent.watch(this, &ProducingService::doPostReadEvent);
35  }
void doPostReadSubRun(SubRunPrincipal &)
void doPostReadEvent(EventPrincipal &)
void doPostReadRun(RunPrincipal &)
void art::ProducingService::setModuleDescription ( ModuleDescription const &  md)

Definition at line 21 of file ProducingService.cc.

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  }

Member Data Documentation

ModuleContext art::ProducingService::mc_ {ModuleContext::invalid()}
private

Definition at line 43 of file ProducingService.h.

constexpr bool art::ProducingService::service_handle_allowed {false}
static

Definition at line 19 of file ProducingService.h.


The documentation for this class was generated from the following files: