-
Notifications
You must be signed in to change notification settings - Fork 0
/
StEpSimuParticle.cxx
107 lines (98 loc) · 2.54 KB
/
StEpSimuParticle.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// PYTHIA Info
#include "StEpSimuParticle.h"
ClassImp(StEpSimuParticle);
// Setters
StEpSimuParticle::StEpSimuParticle()
{
}
void StEpSimuParticle::setFourMom(Double_t px, Double_t py, Double_t pz, Double_t e)
{
mPx = px;
mPy = py;
mPz = pz;
mE = e;
}
void StEpSimuParticle::setFourMom_hb(Double_t px, Double_t py, Double_t pz, Double_t e)
{
mPx_hb = px;
mPy_hb = py;
mPz_hb = pz;
mE_hb = e;
}
void StEpSimuParticle::setFourMom_breit(Double_t px, Double_t py, Double_t pz, Double_t e)
{
mPx_breit = px;
mPy_breit = py;
mPz_breit = pz;
mE_breit = e;
}
void StEpSimuParticle::setIndex(int id) { mIndex = id; }
void StEpSimuParticle::setStatus(int status) { mStatus = status; }
void StEpSimuParticle::setPdgCode(int code) { mPDG = code; }
void StEpSimuParticle::setParentIndex(int id) { mParentIndex = id; }
void StEpSimuParticle::setNChildren(int n) { mNChildren = n; }
void StEpSimuParticle::setChild1Index(int n) { mFirstChild = n; }
void StEpSimuParticle::setChildNIndex(int n) { mLastChild = n; }
void StEpSimuParticle::setZ(Double_t z) { mZ = z; }
void StEpSimuParticle::setXF(Double_t xf) { mXF = xf; }
void StEpSimuParticle::setThetaVsGamma(Double_t theta) { mThetaVsGamma = theta; }
void StEpSimuParticle::setPtVsGamma(Double_t pt) { mPtVsGamma = pt; }
void StEpSimuParticle::setVertex(Double_t x, Double_t y, Double_t z)
{
mVx = x;
mVy = y;
mVz = z;
}
void StEpSimuParticle::setMass(Double_t mass)
{
mMass = mass;
}
// Getters
Double_t StEpSimuParticle::pt()
{
return StEpSimuParticle::fourMomentum().Pt();
}
Double_t StEpSimuParticle::eta()
{
return StEpSimuParticle::fourMomentum().Eta();
}
Double_t StEpSimuParticle::phi()
{
return StEpSimuParticle::fourMomentum().Phi();
}
Double_t StEpSimuParticle::rap()
{
return StEpSimuParticle::fourMomentum().Rapidity();
}
Double_t StEpSimuParticle::pt_hb()
{
return StEpSimuParticle::fourMomentum_hb().Pt();
}
Double_t StEpSimuParticle::eta_hb()
{
return StEpSimuParticle::fourMomentum_hb().Eta();
}
Double_t StEpSimuParticle::phi_hb()
{
return StEpSimuParticle::fourMomentum_hb().Phi();
}
Double_t StEpSimuParticle::rap_hb()
{
return StEpSimuParticle::fourMomentum_hb().Rapidity();
}
Double_t StEpSimuParticle::pt_breit()
{
return StEpSimuParticle::fourMomentum_breit().Pt();
}
Double_t StEpSimuParticle::eta_breit()
{
return StEpSimuParticle::fourMomentum_breit().Eta();
}
Double_t StEpSimuParticle::phi_breit()
{
return StEpSimuParticle::fourMomentum_breit().Phi();
}
Double_t StEpSimuParticle::rap_breit()
{
return StEpSimuParticle::fourMomentum_breit().Rapidity();
}