Belle II Software development
|
C++ interface for the FORTRAN 4-fermion final state generator KoralW. More...
#include <KoralW.h>
Public Member Functions | |
KoralW () | |
Constructor. | |
~KoralW () | |
Destructor. | |
void | setCMSEnergy (double cmsEnergy) |
Sets the CMS energy. | |
void | init (const std::string &dataPath, const std::string &userDataFile) |
Initializes the generator. | |
void | generateEvent (MCParticleGraph &mcGraph, ROOT::Math::XYZVector vertex, ROOT::Math::LorentzRotation boost) |
Generates one single event. | |
void | term () |
Terminates the generator. | |
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. | |
Protected Member Functions | |
void | storeParticle (MCParticleGraph &mcGraph, const float *mom, const float *vtx, int pdg, ROOT::Math::XYZVector vertex, ROOT::Math::LorentzRotation boost, bool isVirtual=false, bool isInitial=false) |
Store a single generated particle into the MonteCarlo graph. | |
Protected Attributes | |
double | m_crossSection |
The cross section of the generated KoralW events. | |
double | m_crossSectionError |
The error on the cross section of the generated KoralW events. | |
double | m_cmsEnergy |
CMS Energy = 2*Ebeam [GeV]. | |
Private Attributes | |
double | m_XPar [m_numXPar] |
Values of parameters for KoralW. | |
unsigned int | m_seed1 |
First seed for the random number generator. | |
unsigned int | m_seed2 |
Second seed for the random number generator. | |
unsigned int | m_seed3 |
Third seed for the random number generator. | |
Static Private Attributes | |
static constexpr int | m_numXPar = 10000 |
Number of parameters for KoralW. | |
C++ interface for the FORTRAN 4-fermion final state generator KoralW.
|
inline |
Constructor.
Definition at line 35 of file KoralW.h.
void generateEvent | ( | MCParticleGraph & | mcGraph, |
ROOT::Math::XYZVector | vertex, | ||
ROOT::Math::LorentzRotation | boost | ||
) |
Generates one single event.
mcGraph | Reference to the MonteCarlo graph into which the generated particles will be stored. |
vertex | generated vertex. |
boost | generated boost. |
Definition at line 107 of file KoralW.cc.
|
inline |
|
inline |
void init | ( | const std::string & | dataPath, |
const std::string & | userDataFile | ||
) |
Initializes the generator.
dataPath | The path to the default input data file for KoralW. |
userDataFile | The path and filename of the user input data file, which defines the user settings for the generator. |
Definition at line 71 of file KoralW.cc.
|
inline |
Sets the CMS energy.
cmsEnergy | The CMS energy in [GeV]. |
Definition at line 51 of file KoralW.h.
|
protected |
Store a single generated particle into the MonteCarlo graph.
mcGraph | Reference to the MonteCarlo graph into which the particle should be stored. |
mom | The 3-momentum of the particle in [GeV]. |
vtx | The vertex of the particle in [mm]. |
pdg | The PDG code of the particle. |
vertex | The vertex of the particle in [mm]. |
boost | Lorentz boost vector. |
isVirtual | If the particle is a virtual particle, such as the incoming particles, set this to true. |
isInitial | If the particle is a initial particle for ISR, set this to true. |
Definition at line 134 of file KoralW.cc.
void term | ( | ) |
|
protected |
|
protected |
|
staticconstexprprivate |
|
private |
|
private |
|
private |
|
private |