KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVFrameTransform.cpp
Go to the documentation of this file.
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 
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 {
86  Boost(boost.X() / KVParticle::C(), boost.Y() / KVParticle::C(),
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 {
111  Boost(boost.X() / KVParticle::C(), boost.Y() / KVParticle::C(),
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 
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
ROOT::R::TRInterface & r
bool Bool_t
Utility class for kinematical transformations of KVParticle class.
KVFrameTransform & operator=(const KVFrameTransform &)
assignment by copy
static Double_t C()
Definition: KVParticle.cpp:117
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)