KaliVeda
1.14/2
Toolkit for HIC analysis
KVDirectivity.cpp
1
#include "KVDirectivity.h"
2
3
ClassImp(
KVDirectivity
)
4
5
10
11
13
void
KVDirectivity
::Copy(TObject& a)
const
14
{
15
16
KVVarGlob1::Copy
(a);
// copy attributes of KVVarGlob1 base object
17
18
KVDirectivity
& aglob = (
KVDirectivity
&)a;
19
aglob.
total_mod_trans
= total_mod_trans;
20
aglob.
total_trans
= total_trans;
21
}
22
23
26
27
29
30
void
KVDirectivity::Calculate
(
void
)
31
{
32
double
mod_tot_trans =
total_trans
.Mag();
33
SetValue
(mod_tot_trans /
total_mod_trans
);
34
}
35
36
40
41
43
44
void
KVDirectivity::init
()
45
{
46
fType
=
KVVarGlob::kOneBody
;
// this is a 1-body variable
47
#ifdef USING_ROOT6
48
SetSelection
({
"V>Vcm"
, [](
const
KVNucleus
* n)
49
{
50
return
n->GetVpar() > 0;
51
}
52
});
53
#else
54
SetSelection
(
"_NUC_->GetVpar()>0"
);
55
#endif
56
}
57
58
66
67
69
70
void
KVDirectivity::fill
(
const
KVNucleus
* n)
71
{
72
TVector3 trans_mom = n->
GetTransverseMomentum
();
73
total_trans
+= trans_mom;
74
total_mod_trans
+= trans_mom.Mag();
75
}
76
77
78
KVDirectivity
Transverse momentum directivity (FOPI)
Definition:
KVDirectivity.h:23
KVDirectivity::init
void init()
Definition:
KVDirectivity.cpp:44
KVDirectivity::total_trans
TVector3 total_trans
Definition:
KVDirectivity.h:26
KVDirectivity::total_mod_trans
double total_mod_trans
Definition:
KVDirectivity.h:25
KVDirectivity::fill
void fill(const KVNucleus *n)
Definition:
KVDirectivity.cpp:70
KVDirectivity::Calculate
void Calculate()
Calculation of global variable value(s) after filling is finished.
Definition:
KVDirectivity.cpp:30
KVNucleus
Description of properties and kinematics of atomic nuclei.
Definition:
KVNucleus.h:126
KVParticle::GetTransverseMomentum
TVector3 GetTransverseMomentum() const
Definition:
KVParticle.h:608
KVVarGlob1::SetValue
void SetValue(Double_t val)
Definition:
KVVarGlob1.h:27
KVVarGlob1::Copy
void Copy(TObject &obj) const
Definition:
KVVarGlob1.h:51
KVVarGlob::kOneBody
@ kOneBody
Definition:
KVVarGlob.h:237
KVVarGlob::SetSelection
void SetSelection(const KVParticleCondition &sel)
Definition:
KVVarGlob.h:600
KVVarGlob::fType
Int_t fType
type of variable global; = kOneBody, kTwoBody or kNBody
Definition:
KVVarGlob.h:243
kaliveda.doxygen
KVMultiDet
globvars
KVDirectivity.cpp
Generated on Tue Apr 1 2025 15:24:31 for KaliVeda by
1.9.1