![]() |
Belle II Software development
|
C++ Interface for the Fortran generator TEEGG. More...
#include <Teegg.h>
Public Member Functions | |
Teegg () | |
Constructor. | |
~Teegg () | |
Destructor. | |
void | setDefaultSettings () |
Sets the default settings for the TEEGG Fortran generator. | |
void | setVACPOL (const std::string &vacpol="HLMNT") |
specifies which vacuum polarization code (NOT IMPLEMENTED YET) | |
void | setTEVETO (double teveto=666.66) |
set maximum theta of e+ in final state (in radians) | |
void | setTEMIN (double temin=666.66) |
set minimum angle between the e- and -z axis (egamma conf. | |
void | setTGMIN (double tgmin=666.66) |
set minimum angle between the gamma and -z axis | |
void | setTGVETO (double tgveto=666.66) |
set maximum angle between the gamma and -z axis(etron conf. | |
void | setEEMIN (double eemin=666.66) |
set minimum energy of the e- (egamma & etron configurations) | |
void | setEGMIN (double egmin=666.66) |
set minimum energy of the gamma (egamma & gamma configurations) | |
void | setPEGMIN (double pegmin=666.66) |
set minimum phi sep of e-gamma (egamma config with hard rad corr) | |
void | setEEVETO (double eeveto=666.66) |
set minimum energy to veto(gamma config with hard rad corr) | |
void | setEGVETO (double egveto=666.66) |
set minimum energy to veto(etron/gamma config with hard rad corr) | |
void | setPHVETO (double phveto=666.66) |
set minimum phi sep to veto(etron/gamma config with hard rad corr) | |
void | setCUTOFF (double cutoff=666.66) |
set cutoff energy for radiative corrections (in CM frame) | |
void | setEPS (double eps=666.66) |
set param. | |
void | setFRAPHI (double fraphi=666.66) |
set fraction of time phi_ks is generated with peak(hard rad corr) | |
void | setEPSPHI (double epsphi=666.66) |
set param. | |
void | setWGHT1M (double wght1m=666.66) |
set maximum weight for generation of QP0, cos(theta QP) | |
void | setWGHTMX (double wghtmx=666.66) |
set maximum weight for the trial events | |
void | setRADCOR (const std::string &radcor="NONE") |
specifies radiative correction (NONE SOFT or HARD) | |
void | setCONFIG (const std::string &config="NONE") |
specifies the event configuration (EGAMMA GAMMA or ETRON) | |
void | setMATRIX (const std::string &matrix="NONE") |
specifies which eeg matrix element (BK BKM2 TCHAN or EPA) | |
void | setMTRXGG (const std::string &mtrxgg="NONE") |
specifies which eegg matrix element (EPADC BEEGG or MEEGG) | |
void | setUNWGHT (int unwght=1) |
set logical variable. | |
void | setCMSEnergy (double cmsEnergy) |
Sets the CMS energy. | |
void | init () |
Initialize generator. | |
void | initExtraInfo () |
Initializes the extra info. | |
void | generateEvent (MCParticleGraph &mcGraph, ROOT::Math::XYZVector vertex, ROOT::Math::LorentzRotation boost) |
Generates one single event. | |
double | getT () |
returns kinematic variable T. | |
double | getW2 () |
returns kinematic variable W2. | |
double | getWeight () |
returns weight. | |
void | term () |
Terminates the generator. | |
Protected Member Functions | |
void | applySettings () |
Apply the settings to the internal Fortran generator. | |
void | storeParticle (MCParticleGraph &mcGraph, const double *mom, 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_pi |
pi=3.1415.... | |
double | m_conversionFactor |
Conversion factor for hbarc to nb. | |
double | m_alphaQED0 |
QED coupling constant at Q=0. | |
double | m_massElectron |
muon mass. | |
double | m_cmsEnergy |
CMS Energy = 2*Ebeam [GeV]. | |
double | m_TEVETO |
maximum theta of e+ in final state (in radians) | |
double | m_TEMIN |
minimum angle between the e- and -z axis (egamma conf. | |
double | m_TGMIN |
minimum angle between the gamma and -z axis | |
double | m_TGVETO |
maximum angle between the gamma and -z axis(etron conf. | |
double | m_EEMIN |
minimum energy of the e- (egamma & etron configurations) | |
double | m_EGMIN |
minimum energy of the gamma (egamma & gamma configurations) | |
double | m_PEGMIN |
minimum phi sep of e-gamma (egamma config with hard rad corr) | |
double | m_EEVETO |
minimum energy to veto(gamma config with hard rad corr) | |
double | m_EGVETO |
minimum energy to veto(etron/gamma config with hard rad corr) | |
double | m_PHVETO |
minimum phi sep to veto(etron/gamma config with hard rad corr | |
double | m_CUTOFF |
cutoff energy for radiative corrections (in CM frame) | |
double | m_EPS |
param. | |
double | m_FRAPHI |
fraction of time phi_ks is generated with peak(hard rad corr) | |
double | m_EPSPHI |
param. | |
double | m_WGHT1M |
maximum weight for generation of QP0, cos(theta QP) | |
double | m_WGHTMX |
maximum weight for the trial events | |
int | m_VACPOL |
vacuum polarization: off, nsk (Novosibirsk) or hlmnt (Teubner). | |
int | m_RADCOR |
specifies radiative correction (NONE SOFT or HARD) | |
int | m_CONFIG |
specifies the event configuration (EGAMMA GAMMA or ETRON) | |
int | m_MATRIX |
specifies which eeg matrix element (BK BKM2 TCHAN or EPA) | |
int | m_MTRXGG |
specifies which eegg matrix element (EPADC BEEGG or MEEGG) | |
std::string | m_sVACPOL |
vacuum polarization: off, nsk (Novosibirsk) or hlmnt (Teubner). | |
std::string | m_sRADCOR |
specifies radiative correction (NONE SOFT or HARD) | |
std::string | m_sCONFIG |
specifies the event configuration (EGAMMA GAMMA or ETRON) | |
std::string | m_sMATRIX |
specifies which eeg matrix element (BK BKM2 TCHAN or EPA) | |
std::string | m_sMTRXGG |
specifies which eegg matrix element (EPADC BEEGG or MEEGG) | |
int | m_UNWGHT |
logical variable. | |
double | m_t |
T=-Q2. | |
double | m_w2 |
W2. | |
double | m_weight |
weight per event | |
double | m_vp2 |
vacuum polarization squared (multiply with this to correctly for VP) | |
Private Attributes | |
int | m_npar [100] |
Integer parameters for Teegg. | |
double | m_xpar [100] |
Double parameters for Teegg. | |
Teegg | ( | ) |
Constructor.
Sets the default settings.
Definition at line 88 of file Teegg.cc.
|
protected |
Apply the settings to the internal Fortran generator.
Definition at line 214 of file Teegg.cc.
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 | Production vertex. |
boost | Lorentz boost vector. |
Definition at line 159 of file Teegg.cc.
|
inline |
|
inline |
|
inline |
void init | ( | ) |
Initialize generator.
Definition at line 153 of file Teegg.cc.
void initExtraInfo | ( | ) |
Initializes the extra info.
Definition at line 147 of file Teegg.cc.
|
inline |
Sets the CMS energy.
cmsEnergy | The CMS energy in [GeV]. |
Definition at line 152 of file Teegg.h.
|
inline |
|
inline |
void setDefaultSettings | ( | ) |
Sets the default settings for the TEEGG Fortran generator.
Definition at line 103 of file Teegg.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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]. |
pdg | The PDG code of the particle. |
vertex | Production vertex. |
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 281 of file Teegg.cc.
void term | ( | ) |
Terminates the generator.
Closes the internal Fortran generator.
Definition at line 197 of file Teegg.cc.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |