12 #include <mdst/dataobjects/MCParticleGraph.h>
15 #include <TLorentzRotation.h>
57 void init(
const std::string& dataPath,
const std::string& userDataFile);
101 bool isVirtual =
false,
bool isInitial =
false);
C++ interface for the FORTRAN 4-fermion final state generator KoralW.
double m_crossSection
The cross section of the generated KoralW events.
double m_cmsEnergy
CMS Energy = 2*Ebeam [GeV].
static constexpr int m_numXPar
Number of parameters for KoralW.
unsigned int m_seed2
Second seed for the random number generator.
void setCMSEnergy(double cmsEnergy)
Sets the CMS energy.
unsigned int m_seed3
Third seed for the random number generator.
void term()
Terminates the generator.
void init(const std::string &dataPath, const std::string &userDataFile)
Initializes the generator.
double m_crossSectionError
The error on the cross section of the generated KoralW events.
void generateEvent(MCParticleGraph &mcGraph, TVector3 vertex, TLorentzRotation boost)
Generates one single event.
double m_XPar[m_numXPar]
Values of parameters for KoralW.
double getCrossSection()
Returns the total cross section of the generated process.
double getCrossSectionError()
Returns the error on the total cross section of the generated process.
void storeParticle(MCParticleGraph &mcGraph, const float *mom, const float *vtx, int pdg, TVector3 vertex, TLorentzRotation boost, bool isVirtual=false, bool isInitial=false)
Store a single generated particle into the MonteCarlo graph.
unsigned int m_seed1
First seed for the random number generator.
Class to build, validate and sort a particle decay chain.
Abstract base class for different kinds of events.