Belle II Software development
|
C++ Interface for the Fortran generator PHOKHARA. More...
#include <Phokhara.h>
Public Member Functions | |
Phokhara () | |
Constructor. | |
~Phokhara () | |
Destructor. | |
void | setDefaultSettings () |
Sets the default settings for the PHOKHARA generator. | |
void | setLO (int LO) |
Sets LO correction mode. | |
void | setWeighted (int weighted) |
Sets weighted mode. | |
void | setNLO (int NLO) |
Sets NLO mode. | |
void | setFullNLO (int FullNLO) |
Sets Full NLO mode. | |
void | setQED (int QED) |
Sets QED corrections. | |
void | setIFSNLO (int IFSNLO) |
Sets IFSNLO options. | |
void | setAlpha (int alpha) |
Sets alpha qed options. | |
void | setPionFF (int pionff) |
Sets pion formfactors. | |
void | setKaonFF (int kaonff) |
Sets kaon formfactors. | |
void | setPionStructure (int pionstructure) |
Sets Pion Structure. | |
void | setNarrowRes (int narres) |
Sets narrow resonances. | |
void | setProtonFF (int protonff) |
Sets Proton formfactors. | |
void | setChiSW (int chisw) |
Sets Chi production. | |
void | setSwitchBeamResolution (int be_r) |
Switches beam resolution for Chi production. | |
void | setBeamResolution (double beamres) |
Beam resolution for Chi production. | |
void | setScatteringAngleRangePhoton (std::pair< double, double > angleRange) |
Sets the theta scattering angle range for the photon. | |
void | setScatteringAngleRangeFinalStates (std::pair< double, double > angleRange) |
Sets the theta scattering angle range for the final state particles. | |
void | setMinInvMassHadronsGamma (double MinInvMassHadronsGamma) |
Sets the minimal hadrons(muons)-gamma-inv mass squared. | |
void | setm_MinInvMassHadrons (double MinInvMassHadrons) |
Sets the minimal inv. | |
void | setForceMinInvMassHadronsCut (bool forceMinInvMassHadronsCut) |
Sets whether to force the minimal invariant mass squared cut. | |
void | setm_MaxInvMassHadrons (double MaxInvMassHadrons) |
Sets the maximal inv. | |
void | setMinEnergyGamma (double MinEnergyGamma) |
Sets the minimal photon energy/missing energy. | |
void | setCMSEnergy (double cmsEnergy) |
Sets the CMS energy. | |
void | setNSearchMax (int nSearchMax) |
Sets the number of events used to search maximum. | |
void | setEpsilon (double epsilon) |
Sets soft/hard photon energy separator. | |
void | setFinalState (int finalState) |
Sets final state. | |
void | setReplaceMuonsByVirtualPhoton (bool replaceMuonsByVirtualPhoton) |
Sets whether to replace muons by a virtual photon. | |
void | setNMaxTrials (int nMaxTrials) |
Sets number of trials per event. | |
void | init (const std::string ¶mFile) |
Initializes the generator. | |
double | generateEvent (MCParticleGraph &mcGraph, ROOT::Math::XYZVector vertex, ROOT::Math::LorentzRotation boost) |
Generates one single event. | |
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_massMuon |
electron mass. | |
double | m_massW |
W mass [GeV] for on shell sin2theta and GF. | |
double | m_massZ |
Z mass [GeV]. | |
double | m_widthZ |
Z width [GeV] (may be recalculated by EW library). | |
int | m_finalState |
final state, called 'pion' in Phokhara, dont get confused. | |
bool | m_replaceMuonsByVirtualPhoton |
Replace muons by a virtual photon. | |
int | m_nMaxTrials |
Events before loop is aborted. | |
int | m_nSearchMax |
Events used to search maximum of differential cross section. | |
double | m_cmsEnergy |
CMS Energy = 2*Ebeam [GeV]. | |
double | m_epsilon |
Soft/hard photon separator in units of CMS/2., called 'w' in Phokhara. | |
int | m_weighted |
generate weighted events | |
int | m_LO |
LO: 1ph(0, default), Born: 0ph(1), only Born: 0ph(-1) | |
int | m_NLO |
NLO, for 1ph only: off (0, default), on (1) | |
int | m_fullNLO |
NLO, full NLO : No(0), Yes(1) | |
int | m_QED |
ISR only(0), ISR+FSR(1), ISR+INT+FSR(2) | |
int | m_IFSNLO |
IFSNLO: no(0), yes(1) | |
int | m_alpha |
vacuum polarization switch: off (0), on (1,[by Fred Jegerlehner]), on (2,[by Thomas Teubner]) | |
int | m_pionff |
FF_pion: KS PionFormFactor(0),GS old (1),GS new (2) | |
int | m_pionstructure |
for pi+pi- only: f0+f0(600): K+K- model(0), "no structure" model(1), no f0+f0(600)(2), f0 KLOE(3) | |
int | m_kaonff |
FF_kaon: KaonFormFactor constrained(0), KaonFormFactor unconstrained(1) KaonFormFactor old(2) | |
int | m_narres |
narr_res: no narrow resonances (0), J/psi (1) and psi(2S) (2) only for m_finalState = 0,1,6,7 | |
int | m_protonff |
ProtonFormFactor old(0), ProtonFormFactor new(1) | |
int | m_chi_sw |
chi_sw: Radiative return(0), Chi production(1), Radiative return + Chi production (2) | |
int | m_be_r |
be_r: without beam resolution(0), with beam resolution(1) | |
std::pair< double, double > | m_ScatteringAngleRangePhoton |
Minimal/Maximal photon angle/missing momentum angle. | |
std::pair< double, double > | m_ScatteringAngleRangeFinalStates |
Minimal/Maximal pions(muons,nucleons,kaons) momentum angle. | |
double | m_MinInvMassHadronsGamma |
minimum mass of the hadron-gamma system [GeV^2] | |
double | m_MinInvMassHadrons |
minimum mass of the hadron system [GeV^2] | |
bool | m_ForceMinInvMassHadronsCut |
Force application of the above cut. | |
double | m_MaxInvMassHadrons |
maximum mass of the hadron system [GeV^2] | |
double | m_MinEnergyGamma |
minimum gamma energy [GeV] | |
double | m_beamres |
beam resolution for chi2 studies | |
Private Attributes | |
int | m_npar [100] |
Integer parameters for PHOKHARA. | |
double | m_xpar [100] |
Double parameters for PHOKHARA. | |
C++ Interface for the Fortran generator PHOKHARA.
Definition at line 27 of file Phokhara.h.
Phokhara | ( | ) |
Constructor.
Sets the default settings.
Definition at line 83 of file Phokhara.cc.
~Phokhara | ( | ) |
|
protected |
Apply the settings to the internal Fortran generator.
Definition at line 293 of file Phokhara.cc.
double 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 181 of file Phokhara.cc.
void init | ( | const std::string & | paramFile | ) |
Initializes the generator.
paramFile | The path to the input param file for Phokhara. |
Definition at line 166 of file Phokhara.cc.
|
inline |
Sets alpha qed options.
alpha | Vacuum polarization switch: off (0), on (1,[by Fred Jegerlehner], default), on (2,[by Thomas Teubner]) |
Definition at line 74 of file Phokhara.h.
|
inline |
Beam resolution for Chi production.
beamres | - beam resolution for pion==11 and pion==12 only |
Definition at line 114 of file Phokhara.h.
|
inline |
Sets Chi production.
chisw | Radiative return(0), Chi production(1), Radiative return + Chi production (2) |
Definition at line 104 of file Phokhara.h.
|
inline |
Sets the CMS energy.
cmsEnergy | The CMS energy in [GeV]. |
Definition at line 156 of file Phokhara.h.
void setDefaultSettings | ( | ) |
Sets the default settings for the PHOKHARA generator.
Definition at line 98 of file Phokhara.cc.
|
inline |
Sets soft/hard photon energy separator.
epsilon | soft/hard photon energy separator |
Definition at line 166 of file Phokhara.h.
|
inline |
Sets final state.
finalState | Final state code. |
Definition at line 171 of file Phokhara.h.
|
inline |
Sets whether to force the minimal invariant mass squared cut.
This cut is ignored by PHOKHARA with LO = 1, NLO = 1.
[in] | forceMinInvMassHadronsCut | Whether to force the cut or not. |
Definition at line 140 of file Phokhara.h.
|
inline |
Sets Full NLO mode.
FullNLO | NLO : No(0), Yes(1) |
Definition at line 59 of file Phokhara.h.
|
inline |
Sets IFSNLO options.
IFSNLO | no(0), yes(1) |
Definition at line 69 of file Phokhara.h.
|
inline |
Sets kaon formfactors.
kaonff | KaonFormFactor constrained (0),KaonFormFactor unconstrained (1),KaonFormFactor old (2) |
Definition at line 84 of file Phokhara.h.
|
inline |
Sets LO correction mode.
LO | Defines LO: 1ph (0, default), Born: 0ph (1), only Born: 0ph (-1). |
Definition at line 44 of file Phokhara.h.
|
inline |
Sets the maximal inv.
mass squared of the hadrons(muons)
MaxInvMassHadrons | maximal inv. mass squared of the hadrons(muons) in [GeV^2]. |
Definition at line 146 of file Phokhara.h.
|
inline |
Sets the minimal inv.
mass squared of the hadrons(muons)
MinInvMassHadrons | minimal inv. mass squared of the hadrons(muons) in [GeV^2]. |
Definition at line 134 of file Phokhara.h.
|
inline |
Sets the minimal photon energy/missing energy.
MinEnergyGamma | minimal photon energy/missing energy in [GeV^2]. |
Definition at line 151 of file Phokhara.h.
|
inline |
Sets the minimal hadrons(muons)-gamma-inv mass squared.
MinInvMassHadronsGamma | minimal hadrons(muons)-gamma-inv mass squared in [GeV^2]. |
Definition at line 129 of file Phokhara.h.
|
inline |
Sets narrow resonances.
narres | no narrow resonances (0), J/Psi (1), Psi(2S) (2) (narrow resonances only for pion = 0, 1, 6, 7 |
Definition at line 94 of file Phokhara.h.
|
inline |
Sets NLO mode.
NLO | Defines NLO, for 1ph only: off (0, default), on (1) |
Definition at line 54 of file Phokhara.h.
|
inline |
Sets number of trials per event.
nMaxTrials | PHOKHARA is very ineffienct when using NLO corrections, adjust number of trials to >1000 per event! |
Definition at line 182 of file Phokhara.h.
|
inline |
Sets the number of events used to search maximum.
nSearchMax | Number of events for maximum search |
Definition at line 161 of file Phokhara.h.
|
inline |
Sets pion formfactors.
pionff | KS Pionformfactor(0), GS Pionformfactor(1) old, GS Pionformfactor new(2) |
Definition at line 79 of file Phokhara.h.
|
inline |
Sets Pion Structure.
pionstructure | f0+f0(600): KK model(0), no structure(1), no f0+f0(600)(2), f0 KLOE(3) |
Definition at line 89 of file Phokhara.h.
|
inline |
Sets Proton formfactors.
protonff | f0+f0(600): KK model(0), no structure(1), no f0+f0(600)(2), f0 KLOE(3) |
Definition at line 99 of file Phokhara.h.
|
inline |
Sets QED corrections.
QED | QED corrections: ISR only(0), ISR+FSR(1), ISR+INT+FSR(2) |
Definition at line 64 of file Phokhara.h.
|
inline |
Sets whether to replace muons by a virtual photon.
replaceMuonsByVirtualPhoton | If true, perform the replacement. |
Definition at line 176 of file Phokhara.h.
|
inline |
Sets the theta scattering angle range for the final state particles.
angleRange | A pair of values, representing the min and max theta angle of the final state particles in [deg]. |
Definition at line 124 of file Phokhara.h.
|
inline |
Sets the theta scattering angle range for the photon.
angleRange | A pair of values, representing the min and max theta angle of the photon in [deg]. |
Definition at line 119 of file Phokhara.h.
|
inline |
Switches beam resolution for Chi production.
be_r | without beam resolution(0), with beam resolution(1). Works only for pion=11 and pion=12 |
Definition at line 109 of file Phokhara.h.
|
inline |
Sets weighted mode.
weighted | generate weighted events. |
Definition at line 49 of file Phokhara.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]. |
pdg | The PDG code of the particle. |
vertex | generated vertex. |
boost | generated boost. |
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 344 of file Phokhara.cc.
void term | ( | ) |
Terminates the generator.
Closes the internal Fortran generator.
Definition at line 266 of file Phokhara.cc.
|
protected |
vacuum polarization switch: off (0), on (1,[by Fred Jegerlehner]), on (2,[by Thomas Teubner])
Definition at line 226 of file Phokhara.h.
|
protected |
QED coupling constant at Q=0.
Definition at line 206 of file Phokhara.h.
|
protected |
be_r: without beam resolution(0), with beam resolution(1)
Definition at line 233 of file Phokhara.h.
|
protected |
beam resolution for chi2 studies
Definition at line 242 of file Phokhara.h.
|
protected |
chi_sw: Radiative return(0), Chi production(1), Radiative return + Chi production (2)
Definition at line 232 of file Phokhara.h.
|
protected |
CMS Energy = 2*Ebeam [GeV].
Definition at line 218 of file Phokhara.h.
|
protected |
Conversion factor for hbarc to nb.
Definition at line 205 of file Phokhara.h.
|
protected |
Soft/hard photon separator in units of CMS/2., called 'w' in Phokhara.
Definition at line 219 of file Phokhara.h.
|
protected |
final state, called 'pion' in Phokhara, dont get confused.
Definition at line 214 of file Phokhara.h.
|
protected |
Force application of the above cut.
Definition at line 239 of file Phokhara.h.
|
protected |
NLO, full NLO : No(0), Yes(1)
Definition at line 223 of file Phokhara.h.
|
protected |
IFSNLO: no(0), yes(1)
Definition at line 225 of file Phokhara.h.
|
protected |
FF_kaon: KaonFormFactor constrained(0), KaonFormFactor unconstrained(1) KaonFormFactor old(2)
Definition at line 229 of file Phokhara.h.
|
protected |
LO: 1ph(0, default), Born: 0ph(1), only Born: 0ph(-1)
Definition at line 221 of file Phokhara.h.
|
protected |
muon mass.
Definition at line 207 of file Phokhara.h.
|
protected |
electron mass.
Definition at line 208 of file Phokhara.h.
|
protected |
W mass [GeV] for on shell sin2theta and GF.
Definition at line 209 of file Phokhara.h.
|
protected |
Z mass [GeV].
Definition at line 210 of file Phokhara.h.
|
protected |
maximum mass of the hadron system [GeV^2]
Definition at line 240 of file Phokhara.h.
|
protected |
minimum gamma energy [GeV]
Definition at line 241 of file Phokhara.h.
|
protected |
minimum mass of the hadron system [GeV^2]
Definition at line 238 of file Phokhara.h.
|
protected |
minimum mass of the hadron-gamma system [GeV^2]
Definition at line 237 of file Phokhara.h.
|
protected |
narr_res: no narrow resonances (0), J/psi (1) and psi(2S) (2) only for m_finalState = 0,1,6,7
Definition at line 230 of file Phokhara.h.
|
protected |
NLO, for 1ph only: off (0, default), on (1)
Definition at line 222 of file Phokhara.h.
|
protected |
Events before loop is aborted.
Definition at line 216 of file Phokhara.h.
|
private |
Integer parameters for PHOKHARA.
Definition at line 264 of file Phokhara.h.
|
protected |
Events used to search maximum of differential cross section.
Definition at line 217 of file Phokhara.h.
|
protected |
pi=3.1415....
Definition at line 204 of file Phokhara.h.
|
protected |
FF_pion: KS PionFormFactor(0),GS old (1),GS new (2)
Definition at line 227 of file Phokhara.h.
|
protected |
for pi+pi- only: f0+f0(600): K+K- model(0), "no structure" model(1), no f0+f0(600)(2), f0 KLOE(3)
Definition at line 228 of file Phokhara.h.
|
protected |
ProtonFormFactor old(0), ProtonFormFactor new(1)
Definition at line 231 of file Phokhara.h.
|
protected |
ISR only(0), ISR+FSR(1), ISR+INT+FSR(2)
Definition at line 224 of file Phokhara.h.
|
protected |
Replace muons by a virtual photon.
Definition at line 215 of file Phokhara.h.
|
protected |
Minimal/Maximal pions(muons,nucleons,kaons) momentum angle.
Definition at line 236 of file Phokhara.h.
|
protected |
Minimal/Maximal photon angle/missing momentum angle.
Definition at line 235 of file Phokhara.h.
|
protected |
generate weighted events
Definition at line 220 of file Phokhara.h.
|
protected |
Z width [GeV] (may be recalculated by EW library).
Definition at line 211 of file Phokhara.h.
|
private |
Double parameters for PHOKHARA.
Definition at line 265 of file Phokhara.h.