Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::test::ToyProductProducerMultiput Class Reference
Inheritance diagram for art::test::ToyProductProducerMultiput:
art::EDProducer art::detail::Producer art::detail::LegacyModule art::Modifier art::ModuleBase art::ProductRegistryHelper

Public Types

using Parameters = Table< Config >
 
- Public Types inherited from art::EDProducer
using ModuleType = EDProducer
 
using WorkerType = WorkerT< EDProducer >
 
- Public Types inherited from art::detail::Producer
template<typename UserConfig , typename KeysToIgnore = void>
using Table = Modifier::Table< UserConfig, KeysToIgnore >
 
- Public Types inherited from art::Modifier
template<typename UserConfig , typename UserKeysToIgnore = void>
using Table = ProducerTable< UserConfig, detail::ModuleConfig, UserKeysToIgnore >
 

Public Member Functions

 ToyProductProducerMultiput (Parameters const &p)
 
- Public Member Functions inherited from art::EDProducer
 EDProducer ()=default
 
 EDProducer (fhicl::ParameterSet const &pset)
 
template<typename Config >
 EDProducer (Table< Config > const &config)
 
std::string workerType () const
 
- Public Member Functions inherited from art::detail::Producer
virtual ~Producer () noexcept
 
 Producer ()
 
 Producer (fhicl::ParameterSet const &)
 
 Producer (Producer const &)=delete
 
 Producer (Producer &&)=delete
 
Produceroperator= (Producer const &)=delete
 
Produceroperator= (Producer &&)=delete
 
void doBeginJob ()
 
void doEndJob ()
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenOutputFiles (FileBlock const &fb)
 
void doRespondToCloseOutputFiles (FileBlock const &fb)
 
bool doBeginRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doEndRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed)
 
- Public Member Functions inherited from art::Modifier
virtual ~Modifier () noexcept
 
 Modifier ()
 
 Modifier (Modifier const &)=delete
 
 Modifier (Modifier &&)=delete
 
Modifieroperator= (Modifier const &)=delete
 
Modifieroperator= (Modifier &&)=delete
 
- Public Member Functions inherited from art::ModuleBase
virtual ~ModuleBase () noexcept
 
 ModuleBase ()
 
ModuleDescription const & moduleDescription () const
 
void setModuleDescription (ModuleDescription const &)
 
template<typename T , BranchType = InEvent>
ProductToken< T > consumes (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > mayConsume (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_process_name)
 
template<typename T , BranchType BT>
ViewToken< T > consumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< T > mayConsumeView (InputTag const &tag)
 

Private Member Functions

void produce (Event &e) override
 
void endSubRun (SubRun &sr) override
 
void endRun (Run &r) override
 

Private Attributes

BranchType const branchType_
 

Additional Inherited Members

- Static Public Member Functions inherited from art::EDProducer
static void commitEvent (EventPrincipal &ep, Event &e)
 

Detailed Description

Definition at line 34 of file ToyProductProducerMultiput_module.cc.

Member Typedef Documentation

Definition at line 38 of file ToyProductProducerMultiput_module.cc.

Constructor & Destructor Documentation

art::test::ToyProductProducerMultiput::ToyProductProducerMultiput ( Parameters const &  p)
inlineexplicit

Definition at line 39 of file ToyProductProducerMultiput_module.cc.

40  : EDProducer{p}, branchType_{BranchType(p().branchType())}
41  {
42  run_time_produces<IntProduct>(this, branchType_);
43  }
EDProducer()=default
p
Definition: test.py:228
BranchType
Definition: BranchType.h:18

Member Function Documentation

void art::test::ToyProductProducerMultiput::endRun ( Run r)
inlineoverrideprivatevirtual

Reimplemented from art::EDProducer.

Definition at line 65 of file ToyProductProducerMultiput_module.cc.

66  {
67  if (branchType_ != InRun)
68  return;
69  r.put(std::make_unique<IntProduct>(5), runFragment());
70  r.put(std::make_unique<IntProduct>(6), runFragment());
71  }
constexpr auto runFragment()
void art::test::ToyProductProducerMultiput::endSubRun ( SubRun sr)
inlineoverrideprivatevirtual

Reimplemented from art::EDProducer.

Definition at line 56 of file ToyProductProducerMultiput_module.cc.

57  {
58  if (branchType_ != InSubRun)
59  return;
60  sr.put(std::make_unique<IntProduct>(3), subRunFragment());
61  sr.put(std::make_unique<IntProduct>(4), subRunFragment());
62  }
constexpr auto subRunFragment()
static const double sr
Definition: Units.h:167
void art::test::ToyProductProducerMultiput::produce ( Event e)
inlineoverrideprivatevirtual

Implements art::EDProducer.

Definition at line 47 of file ToyProductProducerMultiput_module.cc.

48  {
49  if (branchType_ != InEvent)
50  return;
51  e.put(std::make_unique<IntProduct>(1));
52  e.put(std::make_unique<IntProduct>(2));
53  }
const double e

Member Data Documentation

BranchType const art::test::ToyProductProducerMultiput::branchType_
private

Definition at line 35 of file ToyProductProducerMultiput_module.cc.


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