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

#include <GeneratorTGenerator.h>

Inherits o2::eventgen::Generator.

Public Member Functions

 GeneratorTGenerator ()
 
 GeneratorTGenerator (const Char_t *name, const Char_t *title="ALICEo2 TGenerator Generator")
 
 ~GeneratorTGenerator () override
 
Bool_t generateEvent () override
 
Bool_t importParticles () override
 
void setTGenerator (TGenerator *val)
 
const TGenerator * getTGenerator () const
 
Bool_t Init () override
 
- 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
 
virtual void updateHeader (o2::dataformats::MCEventHeader *eventHeader)
 
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)
 

Protected Member Functions

 GeneratorTGenerator (const GeneratorTGenerator &)
 
GeneratorTGeneratoroperator= (const GeneratorTGenerator &)
 
 ClassDefOverride (GeneratorTGenerator, 1)
 
- 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

TGenerator * mTGenerator
 
TClonesArray * mCloneParticles
 
- 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
 

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 ()
 
- Static Protected Attributes inherited from o2::eventgen::Generator
static std::atomic< intInstanceCounter {0}
 

Detailed Description

Definition at line 30 of file GeneratorTGenerator.h.

Constructor & Destructor Documentation

◆ GeneratorTGenerator() [1/3]

o2::eventgen::GeneratorTGenerator::GeneratorTGenerator ( )

default constructor

default constructor

Definition at line 31 of file GeneratorTGenerator.cxx.

◆ GeneratorTGenerator() [2/3]

o2::eventgen::GeneratorTGenerator::GeneratorTGenerator ( const Char_t *  name,
const Char_t *  title = "ALICEo2 TGenerator Generator" 
)

constructor with name and title

constructor

Definition at line 45 of file GeneratorTGenerator.cxx.

◆ ~GeneratorTGenerator()

o2::eventgen::GeneratorTGenerator::~GeneratorTGenerator ( )
override

destructor

destructor

Definition at line 59 of file GeneratorTGenerator.cxx.

◆ GeneratorTGenerator() [3/3]

o2::eventgen::GeneratorTGenerator::GeneratorTGenerator ( const GeneratorTGenerator )
protected

copy constructor

Member Function Documentation

◆ ClassDefOverride()

o2::eventgen::GeneratorTGenerator::ClassDefOverride ( GeneratorTGenerator  ,
 
)
protected

◆ generateEvent()

Bool_t o2::eventgen::GeneratorTGenerator::generateEvent ( )
overridevirtual

methods to override

generate event

success

Implements o2::eventgen::Generator.

Definition at line 69 of file GeneratorTGenerator.cxx.

◆ getTGenerator()

const TGenerator * o2::eventgen::GeneratorTGenerator::getTGenerator ( ) const
inline

Definition at line 47 of file GeneratorTGenerator.h.

◆ importParticles()

Bool_t o2::eventgen::GeneratorTGenerator::importParticles ( )
overridevirtual

import particles

success

Implements o2::eventgen::Generator.

Definition at line 82 of file GeneratorTGenerator.cxx.

◆ Init()

Bool_t o2::eventgen::GeneratorTGenerator::Init ( )
override

Initialize the generator if needed

init

init base class

success

Definition at line 115 of file GeneratorTGenerator.cxx.

◆ operator=()

GeneratorTGenerator & o2::eventgen::GeneratorTGenerator::operator= ( const GeneratorTGenerator )
protected

operator=

◆ setTGenerator()

void o2::eventgen::GeneratorTGenerator::setTGenerator ( TGenerator *  val)
inline

setters

Definition at line 46 of file GeneratorTGenerator.h.

Member Data Documentation

◆ mCloneParticles

TClonesArray* o2::eventgen::GeneratorTGenerator::mCloneParticles
protected

Definition at line 59 of file GeneratorTGenerator.h.

◆ mTGenerator

TGenerator* o2::eventgen::GeneratorTGenerator::mTGenerator
protected

TGenerator interface

Definition at line 58 of file GeneratorTGenerator.h.


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