![]() |
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
|
#include <EventFactory.h>
Public Member Functions | |
EventFromAsciiFactory () | |
virtual | ~EventFromAsciiFactory () |
EventFromAsciiFactory (std::istream &is) | |
virtual T * | Create () |
virtual std::string | EventName () const |
![]() | |
virtual | ~VirtualEventFactory () |
virtual VirtualEvent * | GetEvBufferPtr () |
virtual TBranch * | Branch (TTree &, const std::string &) |
virtual void | Fill (TBranch &) |
Public Attributes | |
std::istream * | mInput |
std::string | mLine |
std::auto_ptr< T > | mEvent |
Protected Member Functions | |
bool | AtEndOfEvent () const |
Int_t | FinishEvent () |
bool | AddParticle () |
Creates events from an input plain text file containing appropriately formatted data. Templated for all the types inheriting from EventMC (any event class implementing a Parse() method to populate the event's variables from a string will work.)
Definition at line 86 of file EventFactory.h.
|
inline |
Constructor.
Definition at line 91 of file EventFactory.h.
|
inlinevirtual |
Destructor.
Definition at line 96 of file EventFactory.h.
|
inlineexplicit |
Initialise the factory from an input stream.
Definition at line 101 of file EventFactory.h.
|
protected |
Create a new particle from the last data read from the input stream.
Definition at line 157 of file EventFactory.cxx.
|
protected |
Returns true when an end-of-event marker is encountered in the input stream.
Definition at line 35 of file EventFactory.cxx.
|
virtual |
Returns a new event instance.
Implements erhic::VirtualEventFactory.
Definition at line 57 of file EventFactory.cxx.
|
virtual |
Returns the name of the event class created by this factory.
Implements erhic::VirtualEventFactory.
Definition at line 173 of file EventFactory.cxx.
|
protected |
Perform end-of-event operations.
Definition at line 116 of file EventFactory.cxx.