KaliVeda
1.14/2
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVFoxH2.cpp
1
#include "KVFoxH2.h"
2
3
ClassImp
(
KVFoxH2
)
4
5
6
9
10
void
KVFoxH2
::init(
void
)
11
{
12
// Initialisation of the fields of the KVFoxH2 class
13
// Set reference frame to "CM" by default
14
15
den = 0;
16
num = 0;
17
SetFrame(
"CM"
);
18
fType = kTwoBody;
19
}
20
21
22
24
25
void
KVFoxH2::Copy
(
TObject
& a)
const
26
{
27
KVVarGlob1::Copy
(
a
);
28
((
KVFoxH2
&)
a
).den =
den
;
29
((
KVFoxH2
&)
a
).num =
num
;
30
}
31
32
33
39
40
void
KVFoxH2::fill2
(
const
KVNucleus
* n1,
const
KVNucleus
* n2)
41
{
42
// Calculate contribution to H(2) for the given pair of nuclei.
43
// By default, momenta in "CM" frame are used. (change with SetFrame()).
44
// NOTE: if one of the nuclei has zero momentum (strange, but could happen)
45
// it is excluded from the sum.
46
47
Double_t
p1, p2, cos_th_rel;
48
49
if
(n1 == n2) {
50
p1 = p2 = n1->
GetMomentum
().
Mag
();
51
cos_th_rel = 1.;
52
}
53
else
{
54
p1 = n1->
GetMomentum
().
Mag
();
55
p2 = n2->
GetMomentum
().
Mag
();
56
if
((p1 * p2) > 0.0) cos_th_rel = n1->
GetMomentum
().
Dot
(n2->
GetMomentum
()) / (p1 * p2);
57
else
cos_th_rel = 1.;
58
}
59
if
((p1 * p2) > 0.) {
60
num
+= p1 * p2 * (3.*cos_th_rel * cos_th_rel - 1.);
61
den
+= 2.*p1 * p2;
62
}
63
}
64
65
66
68
69
void
KVFoxH2::Init
(
void
)
70
{
71
KVVarGlob1::Init
();
72
den
= 0;
73
num
= 0;
74
}
75
76
77
79
80
void
KVFoxH2::Reset
(
void
)
81
{
82
KVVarGlob1::Init
();
83
den
= 0;
84
num
= 0;
85
}
86
87
88
90
91
void
KVFoxH2::Calculate
()
92
{
93
if
(
den
> 0)
94
SetValue
(
num
/
den
);
95
else
96
SetValue
(-99);
97
}
98
99
100
Double_t
double Double_t
KVFoxH2
Event shape global variable : second Fox-Wolfram moment, H(2)
Definition
KVFoxH2.h:28
KVFoxH2::Init
void Init()
Definition
KVFoxH2.cpp:69
KVFoxH2::fill2
void fill2(const KVNucleus *n1, const KVNucleus *n2)
Definition
KVFoxH2.cpp:40
KVFoxH2::num
Double_t num
Definition
KVFoxH2.h:30
KVFoxH2::Calculate
void Calculate()
Definition
KVFoxH2.cpp:91
KVFoxH2::Reset
void Reset()
Definition
KVFoxH2.cpp:80
KVFoxH2::Copy
virtual void Copy(TObject &obj) const
Definition
KVFoxH2.cpp:25
KVFoxH2::den
Double_t den
Definition
KVFoxH2.h:31
KVNucleus
Description of properties and kinematics of atomic nuclei.
Definition
KVNucleus.h:126
KVParticle::GetMomentum
TVector3 GetMomentum() const
Definition
KVParticle.h:604
KVVarGlob1::Init
void Init()
Definition
KVVarGlob1.h:56
KVVarGlob1::SetValue
void SetValue(Double_t val)
Definition
KVVarGlob1.h:27
KVVarGlob1::Copy
void Copy(TObject &obj) const
Definition
KVVarGlob1.h:51
TObject
TVector3::Dot
Double_t Dot(const TVector3 &) const
TVector3::Mag
Double_t Mag() const
a
TArc a
ClassImp
ClassImp(TPyArg)
kaliveda.doxygen
KVMultiDet
globvars
KVFoxH2.cpp
Generated on Wed Oct 23 2024 12:45:21 for KaliVeda by
1.9.8