EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <eic-smear/blob/master/include/eicsmear/smear/EventFactory.h>
Public Types | |
typedef T | EventType |
Public Types inherited from erhic::VirtualEventFactory | |
typedef std::pair< TString, TObject * > | NamedObjects |
Public Member Functions | |
virtual | ~EventFactory () |
virtual T * | Create ()=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 VirtualEvent * | GetEvBufferPtr () |
virtual void | FindFirstEvent () |
Additional Inherited Members | |
Public Attributes inherited from erhic::VirtualEventFactory | |
std::vector< NamedObjects > | mObjectsToWriteAtTheEnd |
std::map< std::string, std::string > | mAdditionalInformation |
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
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
|
inlinevirtual |
Destructor.
Definition at line 36 of file EventFactory.h.
View newest version in sPHENIX GitHub at line 36 of file EventFactory.h
|
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
|
pure virtual |
Returns a new event instance.
Implements erhic::VirtualEventFactory.
Implemented in Smear::HadronicEventBuilder, and Smear::EventDisFactory.
Referenced by Smear::EventFactory< Smear::Event >::Fill().
|
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().
|
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