![]() |
Project
|
#include <GeneratorFromFile.h>
Inherits FairGenerator.
Public Member Functions | |
GeneratorFromFile ()=default | |
GeneratorFromFile (const char *name) | |
bool | ReadEvent (FairPrimaryGenerator *primGen) override |
void | SetStartEvent (int start) |
void | SetSkipNonTrackable (bool b) |
void | setFixOffShell (bool b) |
bool | rejectOrFixKinematics (TParticle &p) |
This class implements a generic FairGenerator which reads the particles from an external file at the moment, this only supports reading from an AliRoot kinematics file TODO: generalize this to be able to read from files of various formats (idea: use Reader policies or classes)
Definition at line 38 of file GeneratorFromFile.h.
|
default |
o2::eventgen::GeneratorFromFile::GeneratorFromFile | ( | const char * | name | ) |
Definition at line 32 of file GeneratorFromFile.cxx.
|
override |
Generates (or reads) one event and adds the tracks to the injected primary generator instance.
primGen | pointer to the primary FairPrimaryGenerator |
Definition at line 97 of file GeneratorFromFile.cxx.
bool o2::eventgen::GeneratorFromFile::rejectOrFixKinematics | ( | TParticle & | p | ) |
Definition at line 66 of file GeneratorFromFile.cxx.
|
inline |
Definition at line 56 of file GeneratorFromFile.h.
|
inline |
Definition at line 55 of file GeneratorFromFile.h.
Definition at line 57 of file GeneratorFromFile.cxx.