#include <PythiaChiGen.h>
|
static int | COLORS [] = {101, 102, 103} |
|
Definition at line 19 of file PythiaChiGen.h.
chigen::PythiaChiGen::PythiaChiGen |
( |
PartonicModel & |
partonicModel, |
|
|
int |
maxTries = 30 , |
|
|
bool |
doHadronization = true |
|
) |
| |
chigen::PythiaChiGen::~PythiaChiGen |
( |
| ) |
|
|
virtual |
void chigen::PythiaChiGen::calculateHadronRemnants |
( |
double |
x, |
|
|
double |
hadronPz, |
|
|
Vec4 & |
u, |
|
|
Vec4 & |
d |
|
) |
| |
|
private |
Calculates remnants kinematics
- Parameters
-
x | x-fraction |
hadronPz | hadron z-momentum |
u | u (anti) quark |
d | d (anti) quark |
Definition at line 63 of file PythiaChiGen.cxx.
References cos(), chigen::ChiGenRandomEngine::flat(), phi, chigen::random::random_engine, sin(), and theta.
65 Vec4 totalRemnant(0, 0, (1 -
x) * hadronPz,
eCM / 2 -
x * abs(hadronPz));
66 double halfRemnantInvMass = totalRemnant.mCalc() / 2;
69 double sine = halfRemnantInvMass *
sin(theta), cosine = halfRemnantInvMass *
cos(theta);
70 u.p(0, sine, cosine, halfRemnantInvMass);
71 d.p(0, -sine, -cosine, halfRemnantInvMass);
friend F32vec4 cos(const F32vec4 &a)
friend F32vec4 sin(const F32vec4 &a)
ChiGenRandomEngine * random_engine
void chigen::PythiaChiGen::calculateKinematics |
( |
| ) |
|
|
private |
void chigen::PythiaChiGen::decay |
( |
Event & |
event | ) |
|
|
private |
Perform decay of polarized chi-meson.
- Parameters
-
Definition at line 83 of file PythiaChiGen.cxx.
References chigen::evtgen::evt_gen, chigen::isCharmonia(), and p.
85 EvtVector4R chiMomentum(
92 EvtParticle *chiMeson =
104 EvtVector4R vertexPoint, evtMomentum;
105 for (
int particleNumber = 0, size =
evtstdhep.getNPart();
106 particleNumber < size; ++particleNumber) {
107 vertexPoint =
evtstdhep.getX4(particleNumber);
108 evtMomentum =
evtstdhep.getP4(particleNumber);
111 p.id(
id =
evtstdhep.getStdHepID(particleNumber));
112 p.px(evtMomentum.get(1));
113 p.py(evtMomentum.get(2));
114 p.pz(evtMomentum.get(3));
115 p.e(evtMomentum.get(0));
119 p.daughter1(
evtstdhep.getFirstDaughter(particleNumber) + 1);
120 p.daughter2(
evtstdhep.getLastDaughter(particleNumber) + 1);
121 p.mother1(
evtstdhep.getFirstMother(particleNumber) + 1);
122 p.mother2(
evtstdhep.getLastMother(particleNumber) + 1);
bool isCharmonia(int pdgCode)
EvtSpinDensity spinDensity
PartonicModel & partonicModel
void chigen::PythiaChiGen::fillColorEvent |
( |
Event & |
event | ) |
|
|
private |
Fills the event by hadronic remnants & gluon
- Parameters
-
Definition at line 132 of file PythiaChiGen.cxx.
151 event.append(21, 23 ,
167 event.append(-2, 23 ,
172 event.append(-1, 23 ,
Event * chigen::PythiaChiGen::next |
( |
| ) |
|
Calculates and returns the next event
- Returns
- event
Definition at line 177 of file PythiaChiGen.cxx.
References next, and chigen::pythia::pythia.
187 Fatal(
"PythiaHadronizationModel::next",
"Can't set kinematics at parton level.");
203 Fatal(
"PythiaHadronizationModel::next",
"Failed to hadronize remnants.");
void calculateKinematics()
void fillColorEvent(Event &event)
PartonicModel & partonicModel
Vec4 chigen::PythiaChiGen::boost |
|
private |
Boost from hard c.m. frame to hadronic c.m. frame
Definition at line 80 of file PythiaChiGen.h.
int chigen::PythiaChiGen::COLORS = {101, 102, 103} |
|
staticprivate |
Colors of particles:
u-quark : 101 d-quark : 102 gluon (color) : 103
Definition at line 92 of file PythiaChiGen.h.
Vec4 chigen::PythiaChiGen::dbarMomentum |
|
private |
Vec4 chigen::PythiaChiGen::dMomentum |
|
private |
bool chigen::PythiaChiGen::doHadronization |
|
private |
double chigen::PythiaChiGen::eCM |
|
private |
EvtStdHep chigen::PythiaChiGen::evtstdhep |
|
private |
Vec4 chigen::PythiaChiGen::gluonMomentum |
|
private |
int chigen::PythiaChiGen::maxTries |
|
private |
Vec4 chigen::PythiaChiGen::mesonMomentum |
|
private |
double chigen::PythiaChiGen::protonPz |
|
private |
Vec4 chigen::PythiaChiGen::ubarMomentum |
|
private |
Vec4 chigen::PythiaChiGen::uMomentum |
|
private |
The documentation for this class was generated from the following files: