KaliVeda
1.14/2
Toolkit for HIC analysis
KVRelativeVelocity.h
1
#ifndef __KVRELATIVEVELOCITY_H
2
#define __KVRELATIVEVELOCITY_H
3
4
#include "KVVarGlobMean.h"
5
15
class
KVRelativeVelocity
:
public
KVVarGlobMean
{
16
17
void
init
()
18
{
19
fType
=
kTwoBody
;
20
}
21
22
public
:
23
KVRelativeVelocity
()
24
:
KVVarGlobMean
()
25
{
26
init
();
27
}
28
KVRelativeVelocity
(
const
Char_t
* nom)
29
:
KVVarGlobMean
(nom)
30
{
31
init
();
32
}
33
ROOT_COPY_CTOR(
KVRelativeVelocity
,
KVVarGlobMean
)
34
ROOT_COPY_ASSIGN_OP(
KVRelativeVelocity
)
35
virtual ~
KVRelativeVelocity
(
void
) {}
36
37
protected
:
38
void
fill2
(
const
KVNucleus
* n1,
const
KVNucleus
* n2)
39
{
40
if
(n1 != n2)
FillVar
((n1->
GetVelocity
() - n2->
GetVelocity
()).Mag());
41
}
42
43
ClassDef
(
KVRelativeVelocity
, 1)
//Calculate mean relative velocity of particls
44
};
45
46
#endif
Char_t
char Char_t
ClassDef
#define ClassDef(name, id)
KVNucleus
Description of properties and kinematics of atomic nuclei.
Definition:
KVNucleus.h:126
KVParticle::GetVelocity
TVector3 GetVelocity() const
returns velocity vector in cm/ns units
Definition:
KVParticle.cpp:1030
KVRelativeVelocity
Calculate mean relative velocity of particles.
Definition:
KVRelativeVelocity.h:15
KVRelativeVelocity::fill2
void fill2(const KVNucleus *n1, const KVNucleus *n2)
Definition:
KVRelativeVelocity.h:38
KVRelativeVelocity::KVRelativeVelocity
KVRelativeVelocity(const Char_t *nom)
Definition:
KVRelativeVelocity.h:28
KVRelativeVelocity::init
void init()
Definition:
KVRelativeVelocity.h:17
KVRelativeVelocity::KVRelativeVelocity
KVRelativeVelocity()
Definition:
KVRelativeVelocity.h:23
KVVarGlobMean
Abstract base class for global variables which calculate a mean value.
Definition:
KVVarGlobMean.h:35
KVVarGlobMean::FillVar
void FillVar(Double_t v, Double_t w=1.)
Definition:
KVVarGlobMean.cpp:27
KVVarGlob::kTwoBody
@ kTwoBody
Definition:
KVVarGlob.h:238
KVVarGlob::fType
Int_t fType
type of variable global; = kOneBody, kTwoBody or kNBody
Definition:
KVVarGlob.h:243
kaliveda.doxygen
KVMultiDet
globvars
KVRelativeVelocity.h
Generated on Fri Jan 17 2025 15:03:20 for KaliVeda by
1.9.1