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

Public Member Functions

 InputProducer (fhicl::ParameterSet const &)
 
virtual void endRun (art::Run &r) override
 
virtual void endSubRun (art::SubRun &sr) override
 
virtual void produce (art::Event &e) override
 
 InputProducer (fhicl::ParameterSet const &)
 
virtual void produce (art::Event &e) override
 
- 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)
 

Additional Inherited Members

- 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 >
 
- Static Public Member Functions inherited from art::EDProducer
static void commitEvent (EventPrincipal &ep, Event &e)
 

Detailed Description

Definition at line 21 of file InputProducer_module.cc.

Constructor & Destructor Documentation

arttest::InputProducer::InputProducer ( fhicl::ParameterSet const &  )
inlineexplicit

Definition at line 23 of file InputProducer_module.cc.

24  {
25  produces<StringProduct>();
26  produces<StringProduct, art::InSubRun>("endSubRun");
27  produces<StringProduct, art::InRun>("endRun");
28  }
arttest::InputProducer::InputProducer ( fhicl::ParameterSet const &  )
inlineexplicit

Definition at line 23 of file InputProducerOnlyEvents_module.cc.

24  {
25  produces<StringProduct>();
26  }

Member Function Documentation

virtual void arttest::InputProducer::endRun ( art::Run r)
inlineoverridevirtual

Reimplemented from art::EDProducer.

Definition at line 31 of file InputProducer_module.cc.

32  {
33  r.put(std::make_unique<StringProduct>("endRun"),
34  "endRun",
36  }
constexpr auto runFragment()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
virtual void arttest::InputProducer::endSubRun ( art::SubRun sr)
inlineoverridevirtual

Reimplemented from art::EDProducer.

Definition at line 39 of file InputProducer_module.cc.

40  {
41  sr.put(std::make_unique<StringProduct>("endSubRun"),
42  "endSubRun",
44  }
constexpr auto subRunFragment()
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
virtual void arttest::InputProducer::produce ( art::Event e)
inlineoverridevirtual

Implements art::EDProducer.

Definition at line 29 of file InputProducerOnlyEvents_module.cc.

30  {
31  e.put(std::make_unique<StringProduct>("event"));
32  }
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
virtual void arttest::InputProducer::produce ( art::Event e)
inlineoverridevirtual

Implements art::EDProducer.

Definition at line 47 of file InputProducer_module.cc.

48  {
49  e.put(std::make_unique<StringProduct>("event"));
50  }
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 files: