Project
Loading...
Searching...
No Matches
o2::eventgen::GeneratorFromO2Kine Class Reference

#include <GeneratorFromFile.h>

Inherits o2::eventgen::Generator.

Public Member Functions

 GeneratorFromO2Kine ()=default
 
 GeneratorFromO2Kine (const char *name)
 
 GeneratorFromO2Kine (O2KineGenConfig const &pars)
 
bool Init () override
 
bool generateEvent () override
 
bool importParticles () override
 
void SetStartEvent (int start)
 
void setContinueMode (bool val)
 
- Public Member Functions inherited from o2::eventgen::Generator
 Generator ()
 
 Generator (const Char_t *name, const Char_t *title="ALICEo2 Generator")
 
 ~Generator () override=default
 
Bool_t Init () override
 
Bool_t ReadEvent (FairPrimaryGenerator *primGen) final
 
Bool_t triggerEvent ()
 
void setMomentumUnit (double val)
 
double getMomentumUnit () const
 
void setEnergyUnit (double val)
 
double getEnergyUnit () const
 
void setPositionUnit (double val)
 
double getPositionUnit () const
 
void setTimeUnit (double val)
 
double getTimeUnit () const
 
void setBoost (Double_t val)
 
void setTriggerMode (ETriggerMode_t val)
 
void addTrigger (Trigger trigger)
 
void addDeepTrigger (DeepTrigger trigger)
 
const std::vector< TParticle > & getParticles () const
 
void clearParticles ()
 
virtual void notifyEmbedding (const o2::dataformats::MCEventHeader *eventHeader)
 
void setTriggerOkHook (std::function< void(std::vector< TParticle > const &p, int eventCount)> f)
 
void setTriggerFalseHook (std::function< void(std::vector< TParticle > const &p, int eventCount)> f)
 

Additional Inherited Members

- Public Types inherited from o2::eventgen::Generator
enum  ETriggerMode_t { kTriggerOFF , kTriggerOR , kTriggerAND }
 
- Static Public Member Functions inherited from o2::eventgen::Generator
static void setTotalNEvents (unsigned int &n)
 
static unsigned int getTotalNEvents ()
 
- Protected Member Functions inherited from o2::eventgen::Generator
 Generator (const Generator &)
 
Generatoroperator= (const Generator &)
 
Bool_t addTracks (FairPrimaryGenerator *primGen)
 
Bool_t boostEvent ()
 
void addSubGenerator (int subGeneratorId, std::string const &subGeneratorDescription)
 
void notifySubGenerator (int subGeneratorId)
 
- Protected Attributes inherited from o2::eventgen::Generator
voidmInterface = nullptr
 
std::string mInterfaceName
 
ETriggerMode_t mTriggerMode = kTriggerOFF
 
std::vector< TriggermTriggers
 
std::vector< DeepTriggermDeepTriggers
 
std::function< void(std::vector< TParticle > const &p, int eventCount)> mTriggerOkHook = [](std::vector<TParticle> const& p, int eventCount) {}
 
std::function< void(std::vector< TParticle > const &p, int eventCount)> mTriggerFalseHook = [](std::vector<TParticle> const& p, int eventCount) {}
 
int mReadEventCounter = 0
 
double mMomentumUnit = 1.
 
double mEnergyUnit = 1.
 
double mPositionUnit = 0.1
 
double mTimeUnit = 3.3356410e-12
 
std::vector< TParticle > mParticles
 
Double_t mBoost
 
int mThisInstanceID = 0
 
- Static Protected Attributes inherited from o2::eventgen::Generator
static std::atomic< intInstanceCounter {0}
 

Detailed Description

This class implements a generic FairGenerator which reads the particles from an external O2 sim kinematics file.

Definition at line 70 of file GeneratorFromFile.h.

Constructor & Destructor Documentation

◆ GeneratorFromO2Kine() [1/3]

o2::eventgen::GeneratorFromO2Kine::GeneratorFromO2Kine ( )
default

◆ GeneratorFromO2Kine() [2/3]

o2::eventgen::GeneratorFromO2Kine::GeneratorFromO2Kine ( const char name)

Definition at line 172 of file GeneratorFromFile.cxx.

◆ GeneratorFromO2Kine() [3/3]

o2::eventgen::GeneratorFromO2Kine::GeneratorFromO2Kine ( O2KineGenConfig const &  pars)

Definition at line 212 of file GeneratorFromFile.cxx.

Member Function Documentation

◆ generateEvent()

bool o2::eventgen::GeneratorFromO2Kine::generateEvent ( )
inlineoverridevirtual

methods to override

Implements o2::eventgen::Generator.

Definition at line 80 of file GeneratorFromFile.h.

◆ importParticles()

bool o2::eventgen::GeneratorFromO2Kine::importParticles ( )
overridevirtual

Implements o2::eventgen::Generator.

Definition at line 245 of file GeneratorFromFile.cxx.

◆ Init()

bool o2::eventgen::GeneratorFromO2Kine::Init ( )
override

Definition at line 217 of file GeneratorFromFile.cxx.

◆ setContinueMode()

void o2::eventgen::GeneratorFromO2Kine::setContinueMode ( bool  val)
inline

Definition at line 89 of file GeneratorFromFile.h.

◆ SetStartEvent()

void o2::eventgen::GeneratorFromO2Kine::SetStartEvent ( int  start)

Definition at line 236 of file GeneratorFromFile.cxx.


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