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

Public Member Functions

 AggregateEvent (fhicl::ParameterSet const &)
 
- Public Member Functions inherited from art::EDProducer
 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 (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
 ~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 &)
 
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 (art::Event &evt) override
 

Private Attributes

std::string fVertexModuleLabel
 
art::PtrVector< recob::Vertexfvertexlist
 

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)
 
- Protected Member Functions inherited from art::ModuleBase
ConsumesCollectorconsumesCollector ()
 
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 ()
 

Detailed Description

Definition at line 54 of file AggregateEvent_module.cc.

Constructor & Destructor Documentation

event::AggregateEvent::AggregateEvent ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 75 of file AggregateEvent_module.cc.

75  :
76  EDProducer{pset},
77  fVertexModuleLabel(pset.get< std::string >("VertexModuleLabel"))
78  {
79 
80  produces< std::vector<recob::Event> >();
81 
82  }
std::string string
Definition: nybbler.cc:12
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.h:20

Member Function Documentation

void event::AggregateEvent::produce ( art::Event evt)
overrideprivatevirtual

Implements art::EDProducer.

Definition at line 85 of file AggregateEvent_module.cc.

86  {
87 
88  std::unique_ptr<std::vector<recob::Event> > ecol(new std::vector<recob::Event>);
89 
90  // get the geometry
92 
93  art::Handle< std::vector<recob::Vertex> > vertexListHandle;
94  evt.getByLabel(fVertexModuleLabel,vertexListHandle);
95  for(unsigned int ii = 0; ii < vertexListHandle->size(); ++ii){
96  art::Ptr<recob::Vertex> vertex(vertexListHandle, ii);
97  fvertexlist.push_back(vertex); // class member
98  }
99 
100  }
art::PtrVector< recob::Vertex > fvertexlist
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
Definition: DataViewImpl.h:446
void push_back(Ptr< U > const &p)
Definition: PtrVector.h:435
vertex reconstruction

Member Data Documentation

art::PtrVector<recob::Vertex> event::AggregateEvent::fvertexlist
private

Definition at line 65 of file AggregateEvent_module.cc.

std::string event::AggregateEvent::fVertexModuleLabel
private

Definition at line 63 of file AggregateEvent_module.cc.


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