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, ROOT::Math::XYZVector vertex, ROOT::Math::LorentzRotation 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 30 of file KoralW.h.
◆ generateEvent()
void generateEvent |
( |
MCParticleGraph & |
mcGraph, |
|
|
ROOT::Math::XYZVector |
vertex, |
|
|
ROOT::Math::LorentzRotation |
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 107 of file KoralW.cc.
112 for (
int iPart = 0; iPart < hepevt_.
nhep; ++iPart) {
113 if (hepevt_.
isthep[iPart] > 1) {
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.
int isthep[nmxhep]
status code.
double vhep[nmxhep][4]
vertex [mm].
double phep[nmxhep][5]
four-momentum, mass [GeV].
int idhep[nmxhep]
particle ident KF.
int nhep
number of particles.
◆ getCrossSection()
double getCrossSection |
( |
| ) |
|
|
inline |
Returns the total cross section of the generated process.
- Returns
- The total cross section.
Definition at line 75 of file KoralW.h.
double m_crossSection
The cross section of the generated KoralW events.
◆ 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 80 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. |
Definition at line 71 of file KoralW.cc.
◆ setCMSEnergy()
void setCMSEnergy |
( |
double |
cmsEnergy | ) |
|
|
inline |
Sets the CMS energy.
- Parameters
-
cmsEnergy | The CMS energy in [GeV]. |
Definition at line 51 of file KoralW.h.
◆ storeParticle()
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 |
|
) |
| |
|
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. |
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.
◆ term()
Terminates the generator.
Closes the internal Fortran generator and retrieves the total cross section.
Definition at line 122 of file KoralW.cc.
The documentation for this class was generated from the following files: