Belle II Software
release-08-01-10
|
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, ROOT::Math::PxPyPzEVector pParentParticle, ROOT::Math::XYZVector 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_logCaptureDebug |
Capture EvtGen log and transform into basf2 logging as B2DEBUG messages. | |
Static Protected Attributes | |
static EvtGenFwRandEngine | m_eng |
Variable needed for random generator. | |
Private Member Functions | |
int | addParticles2Graph (EvtParticle *particle, MCParticleGraph &graph, ROOT::Math::XYZVector pPrimaryVertex, MCParticleGraph::GraphParticle *parent, double timeOffset=0) |
Convert EvtParticle structure to flat MCParticle list. | |
void | updateGraphParticle (EvtParticle *eParticle, MCParticleGraph::GraphParticle *gParticle, ROOT::Math::XYZVector 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 35 of file EvtGenInterface.h.
|
static |
Create and initialize an EvtGen instance:
Definition at line 47 of file EvtGenInterface.cc.
|
protected |