C++ interface for the FORTRAN 4-fermion final state generator KoralW.
More...
#include <KoralW.h>
|
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. More...
|
|
|
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.
|
|
C++ interface for the FORTRAN 4-fermion final state generator KoralW.
Definition at line 39 of file KoralW.h.
◆ generateEvent()
void generateEvent |
( |
MCParticleGraph & |
mcGraph, |
|
|
TVector3 |
vertex, |
|
|
TLorentzRotation |
boost |
|
) |
| |
Generates one single event.
- Parameters
-
mcGraph | Reference to the MonteCarlo graph into which the generated particles will be stored. |
vertex | generated vertex. |
boost | generated boost. |
Definition at line 109 of file KoralW.cc.
114 for (
int iPart = 0; iPart < hepevt_.
nhep; ++iPart) {
115 if (hepevt_.
isthep[iPart] > 1) {
◆ getCrossSection()
double getCrossSection |
( |
| ) |
|
|
inline |
Returns the total cross section of the generated process.
- Returns
- The total cross section.
Definition at line 85 of file KoralW.h.
◆ getCrossSectionError()
double getCrossSectionError |
( |
| ) |
|
|
inline |
Returns the error on the total cross section of the generated process.
- Returns
- The error on the total cross section.
Definition at line 90 of file KoralW.h.
◆ init()
void init |
( |
const std::string & |
dataPath, |
|
|
const std::string & |
userDataFile |
|
) |
| |
Initializes the generator.
- Parameters
-
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. |
randomSeed | The random seed for the generator. |
Definition at line 73 of file KoralW.cc.
◆ setCMSEnergy()
void setCMSEnergy |
( |
double |
cmsEnergy | ) |
|
|
inline |
Sets the CMS energy.
- Parameters
-
cmsEnergy | The CMS energy in [GeV]. |
Definition at line 60 of file KoralW.h.
◆ storeParticle()
void storeParticle |
( |
MCParticleGraph & |
mcGraph, |
|
|
const float * |
mom, |
|
|
const float * |
vtx, |
|
|
int |
pdg, |
|
|
TVector3 |
vertex, |
|
|
TLorentzRotation |
boost, |
|
|
bool |
isVirtual = false , |
|
|
bool |
isInitial = false |
|
) |
| |
|
protected |
Store a single generated particle into the MonteCarlo graph.
- Parameters
-
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. |
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 136 of file KoralW.cc.
◆ term()
Terminates the generator.
Closes the internal Fortran generator and retrieves the total cross section.
Definition at line 124 of file KoralW.cc.
The documentation for this class was generated from the following files: