EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Smear::EventFactory< T > Class Template Referenceabstract

#include <eic-smear/blob/master/include/eicsmear/smear/EventFactory.h>

+ Inheritance diagram for Smear::EventFactory< T >:
+ Collaboration diagram for Smear::EventFactory< T >:

Public Types

typedef T EventType
 
- Public Types inherited from erhic::VirtualEventFactory
typedef std::pair< TString,
TObject * > 
NamedObjects
 

Public Member Functions

virtual ~EventFactory ()
 
virtual TCreate ()=0
 
virtual std::string EventName () const
 
virtual TBranch * Branch (TTree &tree, const std::string &name)
 
virtual void Fill (TBranch &branch)
 
- Public Member Functions inherited from erhic::VirtualEventFactory
virtual ~VirtualEventFactory ()
 
virtual VirtualEventGetEvBufferPtr ()
 
virtual void FindFirstEvent ()
 

Additional Inherited Members

- Public Attributes inherited from erhic::VirtualEventFactory
std::vector< NamedObjectsmObjectsToWriteAtTheEnd
 
std::map< std::string,
std::string > 
mAdditionalInformation
 

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 EventFactory.h.

View newest version in sPHENIX GitHub at line 30 of file EventFactory.h

Member Typedef Documentation

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

Definition at line 32 of file EventFactory.h.

View newest version in sPHENIX GitHub at line 32 of file EventFactory.h

Constructor & Destructor Documentation

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

Destructor.

Definition at line 36 of file EventFactory.h.

View newest version in sPHENIX GitHub at line 36 of file EventFactory.h

Member Function Documentation

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 EventFactory.h.

View newest version in sPHENIX GitHub at line 50 of file EventFactory.h

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.

Referenced by Smear::EventFactory< Smear::Event >::Fill().

+ Here is the caller graph for this function:

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 EventFactory.h.

View newest version in sPHENIX GitHub at line 43 of file EventFactory.h

Referenced by Smear::EventFactory< Smear::Event >::Branch().

+ Here is the caller graph for this function:

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 EventFactory.h.

View newest version in sPHENIX GitHub at line 64 of file EventFactory.h


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