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

#include <GeneratorHybrid.h>

Inherits o2::eventgen::Generator.

Public Member Functions

 GeneratorHybrid (const std::string &inputgens)
 
 ~GeneratorHybrid ()
 
Bool_t Init () override
 
Bool_t generateEvent () override
 
Bool_t importParticles () override
 
void updateHeader (o2::dataformats::MCEventHeader *eventHeader) override
 
Bool_t parseJSON (const std::string &path)
 
Bool_t confSetter (const auto &gen)
 
template<typename T >
std::string jsonValueToString (const T &value)
 
- 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

Definition at line 53 of file GeneratorHybrid.h.

Constructor & Destructor Documentation

◆ GeneratorHybrid()

o2::eventgen::GeneratorHybrid::GeneratorHybrid ( const std::string &  inputgens)

Definition at line 26 of file GeneratorHybrid.cxx.

◆ ~GeneratorHybrid()

o2::eventgen::GeneratorHybrid::~GeneratorHybrid ( )

Definition at line 162 of file GeneratorHybrid.cxx.

Member Function Documentation

◆ confSetter()

Bool_t o2::eventgen::GeneratorHybrid::confSetter ( const auto &  gen)

Definition at line 495 of file GeneratorHybrid.cxx.

◆ generateEvent()

bool o2::eventgen::GeneratorHybrid::generateEvent ( )
overridevirtual

methods to override

Implements o2::eventgen::Generator.

Definition at line 329 of file GeneratorHybrid.cxx.

◆ importParticles()

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

Implements o2::eventgen::Generator.

Definition at line 370 of file GeneratorHybrid.cxx.

◆ Init()

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

Definition at line 168 of file GeneratorHybrid.cxx.

◆ jsonValueToString()

template<typename T >
std::string o2::eventgen::GeneratorHybrid::jsonValueToString ( const T &  value)

Definition at line 487 of file GeneratorHybrid.cxx.

◆ parseJSON()

Bool_t o2::eventgen::GeneratorHybrid::parseJSON ( const std::string &  path)

Definition at line 610 of file GeneratorHybrid.cxx.

◆ updateHeader()

void o2::eventgen::GeneratorHybrid::updateHeader ( o2::dataformats::MCEventHeader eventHeader)
overridevirtual

Reimplemented from o2::eventgen::Generator.

Definition at line 475 of file GeneratorHybrid.cxx.


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