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