#include <DifFourVector.h>
Definition at line 34 of file DifFourVector.h.
◆ DifFourVector() [1/4]
DifFourVector::DifFourVector |
( |
| ) |
|
Definition at line 27 of file DifFourVector.cxx.
28 :
E(0.0),
P(0.0,0.0,0.0)
29{}
Referenced by boostFrom(), boostFromMe(), boostTo(), boostToMe(), DifFourVector(), operator*, operator+, operator+=(), operator-(), operator-, operator-=(), operator=(), and zeroDerivatives().
◆ DifFourVector() [2/4]
◆ DifFourVector() [3/4]
DifFourVector::DifFourVector |
( |
const double & | mass, |
|
|
const DifVector & | p ) |
◆ DifFourVector() [4/4]
Definition at line 40 of file DifFourVector.cxx.
42{}
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
◆ ~DifFourVector()
DifFourVector::~DifFourVector |
( |
| ) |
|
|
inline |
◆ boostFrom()
Definition at line 166 of file DifFourVector.cxx.
167{
168 const DifVector xHat(1,0,0);
169 const DifVector yHat(0,1,0);
170 const DifVector zHat(0,1,0);
172 DifVector
y=zHat-z*(zHat*z);
173 if(
y.length()<0.01)
y=xHat-z*(xHat*z);
176
180
181 DifNumber gamma=pFrom.
E/pFrom.
mass();
182 DifNumber beta=pFrom.
pMag()/pFrom.
E;
183
184 DifNumber pzP=gamma*(pz+beta*
E);
185 DifNumber eP=gamma*(
E+beta*pz);
186
189}
EvtVector3R cross(const EvtVector3R &p1, const EvtVector3R &p2)
DifVector direction() const
◆ boostFromMe()
void DifFourVector::boostFromMe |
( |
std::vector< DifFourVector * > & | listToBoost | ) |
const |
Definition at line 134 of file DifFourVector.cxx.
134 {
135 const DifVector xHat(1,0,0);
136 const DifVector yHat(0,1,0);
137 const DifVector zHat(0,0,1);
140 DifVector
y(zHat-z*(zHat*z));
141 if(
y.lengthSq()<0.0001)
y=xHat-z*(xHat*z);
144
145 DifNumber gamma=
E/
mass();
146 DifNumber beta=
pMag()/
E;
147
148 for(int i=0;i<(int)list.size();i++) {
150 DifNumber px=p4i.
P*
x;
151 DifNumber py=p4i.
P*
y;
152 DifNumber pz=p4i.
P*z;
154
155 DifNumber pzP=gamma*(pz+beta*e);
156 DifNumber eP=gamma*(e+beta*pz);
157
159 p4i.
P=px*
x+py*
y+pzP*z;
160
161 }
162
163}
◆ boostTo()
Definition at line 72 of file DifFourVector.cxx.
73{
74 const DifVector xHat(1,0,0);
75 const DifVector yHat(0,1,0);
76 const DifVector zHat(0,1,0);
78 DifVector
y=zHat-z*(zHat*z);
79 if(
y.length()<0.01)
y=xHat-z*(xHat*z);
82
86
87 DifNumber gamma=pTo.
E/pTo.
mass();
88 DifNumber beta=pTo.
pMag()/pTo.
E;
89
90 DifNumber pzP=gamma*(pz-beta*
E);
91 DifNumber eP=gamma*(
E-beta*pz);
92
95
96 return;
97
98}
◆ boostToMe()
void DifFourVector::boostToMe |
( |
std::vector< DifFourVector * > & | listToBoost | ) |
const |
Definition at line 101 of file DifFourVector.cxx.
101 {
102 const DifVector xHat(1,0,0);
103 const DifVector yHat(0,1,0);
104 const DifVector zHat(0,0,1);
107 DifVector
y(zHat-z*(zHat*z));
108 if(
y.lengthSq()<0.0001)
y=xHat-z*(xHat*z);
111
112 DifNumber gamma=
E/
mass();
113 DifNumber beta=
pMag()/
E;
114
115 for(int i=0;i<(int)list.size();i++) {
117 DifNumber px=p4i.
P*
x;
118 DifNumber py=p4i.
P*
y;
119 DifNumber pz=p4i.
P*z;
121
122 DifNumber pzP=gamma*(pz-beta*e);
123 DifNumber eP=gamma*(e-beta*pz);
124
126 p4i.
P=px*
x+py*
y+pzP*z;
127
128 }
129
130}
◆ direction()
◆ errorMatrix()
HepSymMatrix DifFourVector::errorMatrix |
( |
const HepSymMatrix & | e | ) |
const |
Definition at line 44 of file DifFourVector.cxx.
44 {
45 HepSymMatrix temp(4);
56 return temp;
57}
double correlation(const DifNumber &a, const DifNumber &b)
◆ jacobian()
HepMatrix DifFourVector::jacobian |
( |
| ) |
const |
Definition at line 59 of file DifFourVector.cxx.
59 {
61 HepMatrix temp(4,npar);
62 for(int i=1; i<=npar; i++){
63 temp(1,i)=
E.derivative(i);
64 temp(2,i)=
P.x.derivative(i);
65 temp(3,i)=
P.y.derivative(i);
66 temp(4,i)=
P.z.derivative(i);
67 }
68 return temp;
69}
◆ mass()
◆ massSq()
◆ nPar()
int DifFourVector::nPar |
( |
| ) |
const |
|
inline |
◆ operator+=()
◆ operator-()
◆ operator-=()
◆ operator=()
◆ pMag()
◆ print()
void DifFourVector::print |
( |
| ) |
const |
Definition at line 192 of file DifFourVector.cxx.
192 {
193
194
195 cout << "SKIP of DifFourVector::print()" <<endl;
196}
◆ zeroDerivatives()
◆ operator*
◆ operator+
◆ operator-
Definition at line 114 of file DifFourVector.h.
Referenced by boostFrom(), boostFromMe(), boostTo(), boostToMe(), DifFourVector(), DifFourVector(), DifFourVector(), DifFourVector(), errorMatrix(), jacobian(), and massSq().
Definition at line 115 of file DifFourVector.h.
Referenced by boostFrom(), boostFromMe(), boostTo(), boostToMe(), DifFourVector(), DifFourVector(), DifFourVector(), DifFourVector(), errorMatrix(), jacobian(), massSq(), and pMag().
The documentation for this class was generated from the following files: