#include <EvtVector3R.hh>
|
EvtVector3R | rotateEuler (const EvtVector3R &v, double phi, double theta, double ksi) |
|
EvtVector3R | operator* (double c, const EvtVector3R &v2) |
|
double | operator* (const EvtVector3R &v1, const EvtVector3R &v2) |
|
EvtVector3R | operator+ (const EvtVector3R &v1, const EvtVector3R &v2) |
|
EvtVector3R | operator- (const EvtVector3R &v1, const EvtVector3R &v2) |
|
EvtVector3R | operator* (const EvtVector3R &v1, double c) |
|
EvtVector3R | operator/ (const EvtVector3R &v1, double c) |
|
EvtVector3R | cross (const EvtVector3R &v1, const EvtVector3R &v2) |
|
std::ostream & | operator<< (std::ostream &s, const EvtVector3R &v) |
|
Definition at line 28 of file EvtVector3R.hh.
◆ EvtVector3R() [1/2]
EvtVector3R::EvtVector3R |
( |
| ) |
|
Definition at line 32 of file EvtVector3R.cc.
32 {
33
34 v[0]=v[1]=v[2]=0.0;
35}
◆ EvtVector3R() [2/2]
EvtVector3R::EvtVector3R |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
◆ ~EvtVector3R()
EvtVector3R::~EvtVector3R |
( |
| ) |
|
|
virtual |
◆ applyRotateEuler()
void EvtVector3R::applyRotateEuler |
( |
double |
phi, |
|
|
double |
theta, |
|
|
double |
ksi |
|
) |
| |
Definition at line 53 of file EvtVector3R.cc.
53 {
54
55 double temp[3];
56 double sp,st,sk,cp,ct,ck;
57
64
65 temp[0]=( ck*ct*cp-sk*sp)*v[0]+( -sk*ct*cp-ck*sp)*v[1]+st*cp*v[2];
66 temp[1]=( ck*ct*sp+sk*cp)*v[0]+(-sk*ct*sp+ck*cp)*
v[1]+st*sp*
v[2];
67 temp[2]=-ck*st*
v[0]+sk*st*
v[1]+ct*
v[2];
68
69
73}
double sin(const BesAngle a)
double cos(const BesAngle a)
**********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
◆ d3mag()
double EvtVector3R::d3mag |
( |
| ) |
const |
◆ dot()
Definition at line 107 of file EvtVector3R.cc.
107 {
108
109 double temp;
110
111 temp = v[0]*p2.v[0];
112 temp += v[1]*p2.v[1];
113 temp += v[2]*p2.v[2];
114
115 return temp;
116}
◆ get()
double EvtVector3R::get |
( |
int |
i | ) |
const |
|
inline |
◆ operator*=()
EvtVector3R & EvtVector3R::operator*= |
( |
const double |
c | ) |
|
|
inline |
Definition at line 63 of file EvtVector3R.hh.
63 {
64
65 v[0]*=c;
66 v[1]*=c;
67 v[2]*=c;
68 return *this;
69}
◆ operator+=()
Definition at line 79 of file EvtVector3R.hh.
79 {
80
81 v[0]+=v2.v[0];
82 v[1]+=v2.v[1];
83 v[2]+=v2.v[2];
84 return *this;
85}
◆ operator-=()
Definition at line 87 of file EvtVector3R.hh.
87 {
88
89 v[0]-=v2.v[0];
90 v[1]-=v2.v[1];
91 v[2]-=v2.v[2];
92 return *this;
93}
◆ operator/=()
EvtVector3R & EvtVector3R::operator/= |
( |
const double |
c | ) |
|
|
inline |
Definition at line 71 of file EvtVector3R.hh.
71 {
72
73 v[0]/=c;
74 v[1]/=c;
75 v[2]/=c;
76 return *this;
77}
◆ set() [1/2]
void EvtVector3R::set |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
|
inline |
◆ set() [2/2]
void EvtVector3R::set |
( |
int |
i, |
|
|
double |
d |
|
) |
| |
|
inline |
◆ cross
Definition at line 84 of file EvtVector3R.cc.
84 {
85
86
87
88
89 return EvtVector3R(p1.v[1]*p2.v[2] - p1.v[2]*p2.v[1],
90 p1.v[2]*p2.v[0] - p1.v[0]*p2.v[2],
91 p1.v[0]*p2.v[1] - p1.v[1]*p2.v[0]);
92
93}
◆ operator* [1/3]
Definition at line 110 of file EvtVector3R.hh.
110 {
111
112 return v1.v[0]*v2.v[0]+v1.v[1]*v2.v[1]+v1.v[2]*v2.v[2];
113}
◆ operator* [2/3]
◆ operator* [3/3]
◆ operator+
◆ operator-
◆ operator/
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
s, |
|
|
const EvtVector3R & |
v |
|
) |
| |
|
friend |
◆ rotateEuler
Definition at line 43 of file EvtVector3R.cc.
44 {
45
47 tmp.applyRotateEuler(
alpha,beta,gamma);
48 return tmp;
49
50}
The documentation for this class was generated from the following files: