eic-smear  1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
Smear::EventFactory< T > Class Template Referenceabstract

Event factory for events of a particular type. More...

#include <EventFactory.h>

Inheritance diagram for Smear::EventFactory< T >:
erhic::VirtualEventFactory

Public Types

typedef T EventType
 

Public Member Functions

virtual ~EventFactory ()
 Destructor. More...
 
virtual T * Create ()=0
 Returns a new event instance. More...
 
virtual std::string EventName () const
 Returns the name of the branch object type (Smear::Event). More...
 
virtual TBranch * Branch (TTree &tree, const std::string &name)
 Create and configure the output branch for smeared events in the tree. More...
 
virtual void Fill (TBranch &branch)
 Create() the new event and fill the requested tree branch with it. More...
 
- Public Member Functions inherited from erhic::VirtualEventFactory
virtual ~VirtualEventFactory ()
 Destructor. More...
 
virtual VirtualEventGetEvBufferPtr ()
 Returns a pointer to the event buffer. More...
 

Detailed Description

template<typename T>
class Smear::EventFactory< T >

Event factory for events of a particular type.

Handles the Branch methods for that event type. The template argument can be any event type inheriting from erhic::VirtualEvent.

Definition at line 30 of file smear/EventFactory.h.

Member Typedef Documentation

◆ EventType

template<typename T >
typedef T Smear::EventFactory< T >::EventType

Definition at line 32 of file smear/EventFactory.h.

Constructor & Destructor Documentation

◆ ~EventFactory()

template<typename T >
virtual Smear::EventFactory< T >::~EventFactory ( )
inlinevirtual

Destructor.

Definition at line 36 of file smear/EventFactory.h.

Member Function Documentation

◆ Branch()

template<typename T >
virtual TBranch* Smear::EventFactory< T >::Branch ( TTree &  tree,
const std::string &  name 
)
inlinevirtual

Create and configure the output branch for smeared events in the tree.

Reimplemented from erhic::VirtualEventFactory.

Definition at line 50 of file smear/EventFactory.h.

◆ Create()

template<typename T >
virtual T* Smear::EventFactory< T >::Create ( )
pure virtual

Returns a new event instance.

Implements erhic::VirtualEventFactory.

Implemented in Smear::HadronicEventBuilder, and Smear::EventDisFactory.

◆ EventName()

template<typename T >
virtual std::string Smear::EventFactory< T >::EventName ( ) const
inlinevirtual

Returns the name of the branch object type (Smear::Event).

Implements erhic::VirtualEventFactory.

Definition at line 43 of file smear/EventFactory.h.

◆ Fill()

template<typename T >
virtual void Smear::EventFactory< T >::Fill ( TBranch &  branch)
inlinevirtual

Create() the new event and fill the requested tree branch with it.

Reimplemented from erhic::VirtualEventFactory.

Definition at line 64 of file smear/EventFactory.h.


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