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

Classes

struct  Config
 

Public Types

using Parameters = art::EDProducer::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

 ToyProductProducer (Parameters const &ps)
 
- 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 beginRun (art::Run &r) override
 
void beginSubRun (art::SubRun &sr) override
 
void produce (art::Event &e) override
 
void endSubRun (art::SubRun &sr) override
 
void endRun (art::Run &r) override
 

Additional Inherited Members

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

Detailed Description

Definition at line 23 of file ToyProductProducer_module.cc.

Member Typedef Documentation

Definition at line 27 of file ToyProductProducer_module.cc.

Constructor & Destructor Documentation

arttest::ToyProductProducer::ToyProductProducer ( Parameters const &  ps)
inlineexplicit

Definition at line 29 of file ToyProductProducer_module.cc.

29  : EDProducer{ps}
30  {
31  produces<StringProduct, art::InRun>();
32  produces<StringProduct, art::InRun>("bgnRun");
33  produces<StringProduct, art::InRun>("endRun");
34 
35  produces<StringProduct, art::InSubRun>();
36  produces<StringProduct, art::InSubRun>("bgnSubRun");
37  produces<StringProduct, art::InSubRun>("endSubRun");
38 
39  produces<StringProduct>();
40  }
static const double ps
Definition: Units.h:103
EDProducer()=default

Member Function Documentation

void arttest::ToyProductProducer::beginRun ( art::Run r)
inlineoverrideprivatevirtual

Reimplemented from art::EDProducer.

Definition at line 44 of file ToyProductProducer_module.cc.

45  {
46  r.put(std::make_unique<StringProduct>("empty"), art::fullRun());
47  r.put(
48  std::make_unique<StringProduct>("beginRun"), "bgnRun", art::fullRun());
49  }
constexpr auto fullRun()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
void arttest::ToyProductProducer::beginSubRun ( art::SubRun sr)
inlineoverrideprivatevirtual

Reimplemented from art::EDProducer.

Definition at line 52 of file ToyProductProducer_module.cc.

53  {
54  sr.put(std::make_unique<StringProduct>("emptyAgain"), art::fullSubRun());
55  sr.put(std::make_unique<StringProduct>("beginSubRun"),
56  "bgnSubRun",
57  art::fullSubRun());
58  }
constexpr auto fullSubRun()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
void arttest::ToyProductProducer::endRun ( art::Run r)
inlineoverrideprivatevirtual

Reimplemented from art::EDProducer.

Definition at line 75 of file ToyProductProducer_module.cc.

76  {
77  r.put(
78  std::make_unique<StringProduct>("endRun"), "endRun", art::fullRun());
79  }
constexpr auto fullRun()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
void arttest::ToyProductProducer::endSubRun ( art::SubRun sr)
inlineoverrideprivatevirtual

Reimplemented from art::EDProducer.

Definition at line 67 of file ToyProductProducer_module.cc.

68  {
69  sr.put(std::make_unique<StringProduct>("endSubRun"),
70  "endSubRun",
71  art::fullSubRun());
72  }
constexpr auto fullSubRun()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
void arttest::ToyProductProducer::produce ( art::Event e)
inlineoverrideprivatevirtual

Implements art::EDProducer.

Definition at line 61 of file ToyProductProducer_module.cc.

62  {
63  e.put(std::make_unique<StringProduct>("event"));
64  }
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692

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