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

Public Types

typedef std::vector< int > intvec_t
 
typedef std::vector< std::stringstrvec_t
 
typedef std::vector< float > floatvec_t
 
- 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

 AssnsIterProducer1 (fhicl::ParameterSet const &p)
 
 AssnsIterProducer1 (AssnsIterProducer1 const &)=delete
 
 AssnsIterProducer1 (AssnsIterProducer1 &&)=delete
 
AssnsIterProducer1operator= (AssnsIterProducer1 const &)=delete
 
AssnsIterProducer1operator= (AssnsIterProducer1 &&)=delete
 
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)
 

Private Attributes

std::string fInputLabel
 

Additional Inherited Members

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

Detailed Description

Definition at line 28 of file AssnsIterProducer1_module.cc.

Member Typedef Documentation

typedef std::vector<float> lartest::AssnsIterProducer1::floatvec_t

Definition at line 32 of file AssnsIterProducer1_module.cc.

typedef std::vector<int> lartest::AssnsIterProducer1::intvec_t

Definition at line 30 of file AssnsIterProducer1_module.cc.

Definition at line 31 of file AssnsIterProducer1_module.cc.

Constructor & Destructor Documentation

AssnsIterProducer1::AssnsIterProducer1 ( fhicl::ParameterSet const &  p)
explicit

Definition at line 51 of file AssnsIterProducer1_module.cc.

52  : EDProducer{p}, fInputLabel(p.get<std::string>("input_label"))
53 {
54  produces<intvec_t>();
55  produces<strvec_t>();
56  produces<floatvec_t>();
57 }
std::string string
Definition: nybbler.cc:12
EDProducer()=default
p
Definition: test.py:228
lartest::AssnsIterProducer1::AssnsIterProducer1 ( AssnsIterProducer1 const &  )
delete
lartest::AssnsIterProducer1::AssnsIterProducer1 ( AssnsIterProducer1 &&  )
delete

Member Function Documentation

AssnsIterProducer1& lartest::AssnsIterProducer1::operator= ( AssnsIterProducer1 const &  )
delete
AssnsIterProducer1& lartest::AssnsIterProducer1::operator= ( AssnsIterProducer1 &&  )
delete
void AssnsIterProducer1::produce ( art::Event e)
overridevirtual

Implements art::EDProducer.

Definition at line 60 of file AssnsIterProducer1_module.cc.

61 {
62  auto vs = std::make_unique<strvec_t>(
63  strvec_t{"one", "one-a", "two", "two-a", "three", "three-a"});
64  auto vi = std::make_unique<intvec_t>(intvec_t{1, 2, 3});
65  auto vf =
66  std::make_unique<floatvec_t>(floatvec_t{1.0, 1.1, 2.0, 2.1, 3.0, 3.1});
67 
68  e.put(std::move(vs));
69  e.put(std::move(vi));
70  e.put(std::move(vf));
71 }
std::vector< int > intvec_t
std::vector< float > floatvec_t
std::vector< std::string > strvec_t
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692

Member Data Documentation

std::string lartest::AssnsIterProducer1::fInputLabel
private

Definition at line 48 of file AssnsIterProducer1_module.cc.


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