![]() |
Belle II Software
release-06-01-15
|
Class to interface EvtGen. More...
#include <EvtGenInterface.h>
Public Member Functions | |
EvtGenInterface () | |
Constructor. | |
~EvtGenInterface () | |
Destructor. | |
int | setup (const std::string &decayFileName, const std::string &parentParticle, const std::string &userFileName=std::string(""), bool coherentMixing=true) |
Setup evtgen with the given decay files | |
int | simulateEvent (MCParticleGraph &graph, TLorentzVector pParentParticle, TVector3 pPrimaryVertex, int inclusiveType, const std::string &inclusiveParticle) |
Generate a single event. | |
int | simulateDecay (MCParticleGraph &graph, MCParticleGraph::GraphParticle &parent) |
Simulate a particle decay. | |
Static Public Member Functions | |
static EvtGen * | createEvtGen (const std::string &decayFileName, bool coherentMixing) |
Create and initialize an EvtGen instance: More... | |
Protected Attributes | |
EvtParticle * | m_parent |
Variable needed for parent particle. More... | |
EvtGen * | m_Generator |
Variable needed for EvtGen generator. | |
EvtVector4R | m_pinit |
Variable needed for initial momentum. | |
EvtId | m_ParentParticle |
Variable needed for parent particle ID. | |
bool | m_ParentInitialized |
Whether parent particle is initialized. | |
IOIntercept::OutputToLogMessages | m_logCapture |
Capture evtgen log and transform into basf2 logging. | |
Static Protected Attributes | |
static EvtGenFwRandEngine | m_eng |
Variable needed for random generator. | |
Private Member Functions | |
int | addParticles2Graph (EvtParticle *particle, MCParticleGraph &graph, TVector3 pPrimaryVertex, MCParticleGraph::GraphParticle *parent, double timeOffset=0) |
Convert EvtParticle structure to flat MCParticle list. | |
void | updateGraphParticle (EvtParticle *eParticle, MCParticleGraph::GraphParticle *gParticle, TVector3 pPrimaryVertex, double timeOffset=0) |
Copy parameters from EvtParticle to MCParticle. | |
Class to interface EvtGen.
This class is responsible to handle all interaction with evtgen and its classes when generating events. It sets up the models, calls evtgen to generate the events and converts the evtgen particles to a list of MCParticles
Definition at line 34 of file EvtGenInterface.h.
|
static |
Create and initialize an EvtGen instance:
Definition at line 49 of file EvtGenInterface.cc.
|
protected |