KaliVeda
1.12/06
Heavy-Ion Analysis Toolkit
kaliveda.doxygen
KVMultiDet
particles
KVKinematicalFrame.h
Go to the documentation of this file.
1
4
#ifndef __KVKINEMATICALFRAME_H
5
#define __KVKINEMATICALFRAME_H
6
7
#include "
TNamed.h
"
8
#include "
KVParticle.h
"
9
#include "
KVFrameTransform.h
"
10
21
class
KVKinematicalFrame
:
public
TNamed
{
22
KVFrameTransform
fTransform
;
23
unique_ptr<KVParticle>
fParticle
;
24
25
public
:
26
KVKinematicalFrame
(
const
Char_t
* name,
const
KVParticle
* original,
const
KVFrameTransform
& trans);
27
KVKinematicalFrame
(
KVParticle
*,
const
KVFrameTransform
&);
28
KVKinematicalFrame
(
const
KVFrameTransform
& trans,
const
KVParticle
* original);
29
KVKinematicalFrame
(
const
KVKinematicalFrame
&);
30
KVKinematicalFrame
&
operator=
(
const
KVKinematicalFrame
&);
31
virtual
~KVKinematicalFrame
() {}
32
33
KVParticle
*
GetParticle
()
const
34
{
35
return
fParticle
.get();
36
}
37
const
KVParticle
*
operator->
()
const
38
{
39
return
(
const
KVParticle
*)
GetParticle
();
40
}
41
void
ReapplyTransform
(
const
KVParticle
* original);
42
void
ApplyTransform
(
const
KVParticle
* original,
const
KVFrameTransform
& trans);
43
44
const
KVFrameTransform
&
GetTransform
()
const
45
{
46
return
fTransform
;
47
}
48
void
SetTransform
(
const
KVFrameTransform
& f)
49
{
50
fTransform
=
f
;
51
}
52
53
ClassDef
(
KVKinematicalFrame
, 0)
//Handle representation of a particle in different kinematical frames
54
};
55
56
#endif
KVFrameTransform.h
KVParticle.h
f
#define f(i)
Char_t
char Char_t
ClassDef
#define ClassDef(name, id)
TNamed.h
KVFrameTransform
Utility class for kinematical transformations of KVParticle class.
Definition:
KVFrameTransform.h:60
KVKinematicalFrame
Kinematical representation of a particle in different reference frames.
Definition:
KVKinematicalFrame.h:21
KVKinematicalFrame::fParticle
unique_ptr< KVParticle > fParticle
kinematically transformed particle
Definition:
KVKinematicalFrame.h:23
KVKinematicalFrame::GetParticle
KVParticle * GetParticle() const
Definition:
KVKinematicalFrame.h:33
KVKinematicalFrame::operator=
KVKinematicalFrame & operator=(const KVKinematicalFrame &)
Assignment operator required for rootcint (not rootcling)
Definition:
KVKinematicalFrame.cpp:69
KVKinematicalFrame::fTransform
KVFrameTransform fTransform
kinematical transform wrt 'parent' frame
Definition:
KVKinematicalFrame.h:22
KVKinematicalFrame::ReapplyTransform
void ReapplyTransform(const KVParticle *original)
Apply stored kinematical transformation to the particle.
Definition:
KVKinematicalFrame.cpp:85
KVKinematicalFrame::KVKinematicalFrame
KVKinematicalFrame(const Char_t *name, const KVParticle *original, const KVFrameTransform &trans)
Definition:
KVKinematicalFrame.cpp:14
KVKinematicalFrame::operator->
const KVParticle * operator->() const
Definition:
KVKinematicalFrame.h:37
KVKinematicalFrame::ApplyTransform
void ApplyTransform(const KVParticle *original, const KVFrameTransform &trans)
Apply new kinematical transformation to the particle and update all subframes.
Definition:
KVKinematicalFrame.cpp:98
KVKinematicalFrame::GetTransform
const KVFrameTransform & GetTransform() const
Definition:
KVKinematicalFrame.h:44
KVKinematicalFrame::~KVKinematicalFrame
virtual ~KVKinematicalFrame()
Definition:
KVKinematicalFrame.h:31
KVKinematicalFrame::SetTransform
void SetTransform(const KVFrameTransform &f)
Definition:
KVKinematicalFrame.h:48
KVParticle
Base class for relativistic kinematics of massive particles.
Definition:
KVParticle.h:398
TNamed
Generated on Thu Apr 21 2022 14:14:16 for KaliVeda by
1.9.1