KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVFrameTransform.cpp
1//Created by KVClassFactory on Thu Jan 19 15:37:43 2017
2//Author: John Frankland,,,
3
4#include "KVFrameTransform.h"
5#include "KVParticle.h"
6
8
9
10
11
15
18{
19 // Construct frame transformation using velocity boost vector
20 // if beta=kTRUE, velocity given in light speed units
21 // if beta=kFALSE [default], velocity given in cm/ns units.
22 if (beta) {
23 Boost(boost);
24 }
25 else {
26 Boost(boost.X() / KVParticle::C(), boost.Y() / KVParticle::C(),
27 boost.Z() / KVParticle::C());
28 }
29}
30
31
32
33
36
38 : TLorentzRotation(arg1)
39{
40 // Construct frame transformation using rotation of axes
41}
42
43
44
45
48
51{
52 // Construct frame transformation using a TLorentzRotation
53}
54
55
56
59
62{
63 // Copy constructor
64}
65
66
67
68
74
77{
78 // Construct frame transformation using rotation & velocity boost vector
79 // in the order: BOOST then ROTATION
80 // if beta=kTRUE, velocity given in light speed units
81 // if beta=kFALSE [default], velocity given in cm/ns units.
82 if (beta) {
83 Boost(boost);
84 }
85 else {
87 boost.Z() / KVParticle::C());
88 }
89 Transform(r);
90}
91
92
93
99
102{
103 // Construct frame transformation using rotation & velocity boost vector
104 // in the order: ROTATION then BOOST
105 // if beta=kTRUE, velocity given in light speed units
106 // if beta=kFALSE [default], velocity given in cm/ns units.
107 if (beta) {
108 Boost(boost);
109 }
110 else {
112 boost.Z() / KVParticle::C());
113 }
114}
115
116
117
120
122{
123 // assignment by copy
124
125 return dynamic_cast<KVFrameTransform&>(TLorentzRotation::operator=(p));
126}
127
128
ROOT::R::TRInterface & r
bool Bool_t
winID h TVirtualViewer3D TVirtualGLPainter p
Utility class for kinematical transformations of KVParticle class.
KVFrameTransform & operator=(const KVFrameTransform &)
assignment by copy
static Double_t C()
TLorentzRotation & Boost(const TVector3 &)
TLorentzRotation & operator=(const TLorentzRotation &)
TLorentzRotation & Transform(const TLorentzRotation &)
double beta(double x, double y)
LVector boost(const LVector &v, const BoostVector &b)
ClassImp(TPyArg)