|
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
|
Event factory for events of a particular type. More...
#include <EventFactory.h>
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 VirtualEvent * | GetEvBufferPtr () |
| Returns a pointer to the event buffer. More... | |
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.
| typedef T Smear::EventFactory< T >::EventType |
Definition at line 32 of file smear/EventFactory.h.
|
inlinevirtual |
Destructor.
Definition at line 36 of file smear/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 smear/EventFactory.h.
|
pure virtual |
Returns a new event instance.
Implements erhic::VirtualEventFactory.
Implemented in Smear::HadronicEventBuilder, and Smear::EventDisFactory.
|
inlinevirtual |
Returns the name of the branch object type (Smear::Event).
Implements erhic::VirtualEventFactory.
Definition at line 43 of file smear/EventFactory.h.
|
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.