CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Vector
src
LorentzVectorR.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
// ---------------------------------------------------------------------------
3
//
4
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
5
//
6
// This is part of the implementation of the HepLorentzVector class:
7
// Those methods which might, if coded in LorentzVector.cc, force loading
8
// of the Rotation.cc code module.
9
//
10
11
#ifdef GNUPRAGMA
12
#pragma implementation
13
#endif
14
15
#include "CLHEP/Vector/defs.h"
16
#include "CLHEP/Vector/LorentzVector.h"
17
18
namespace
CLHEP
{
19
20
HepLorentzVector
&
HepLorentzVector::rotate
(
double
a
,
const
Hep3Vector
&v1) {
21
pp.
rotate
(
a
,v1);
22
return
*
this
;
23
}
24
25
HepLorentzVector
&
HepLorentzVector::rotate
(
const
Hep3Vector
& aaxis,
26
double
ddelta ) {
27
pp.
rotate
(aaxis, ddelta);
28
return
*
this
;
29
}
30
31
HepLorentzVector
&
HepLorentzVector::rotate
(
const
HepAxisAngle
& ax ) {
32
pp.
rotate
(ax);
33
return
*
this
;
34
}
35
36
HepLorentzVector
&
HepLorentzVector::rotate
(
const
HepEulerAngles
& e1 ) {
37
pp.
rotate
(e1);
38
return
*
this
;
39
}
40
41
HepLorentzVector
&
HepLorentzVector::rotate
(
double
phi1,
42
double
theta1,
43
double
psi1 ) {
44
pp.
rotate
(phi1, theta1, psi1);
45
return
*
this
;
46
}
47
48
HepLorentzVector
rotationOf
(
const
HepLorentzVector
& vec,
49
const
Hep3Vector
& aaxis,
50
double
ddelta) {
51
HepLorentzVector
vv (vec);
52
return
vv.
rotate
(aaxis, ddelta);
53
}
54
55
HepLorentzVector
rotationOf
56
(
const
HepLorentzVector
& vec,
const
HepAxisAngle
&ax ) {
57
HepLorentzVector
vv (vec);
58
return
vv.
rotate
(ax);
59
}
60
61
HepLorentzVector
rotationOf
62
(
const
HepLorentzVector
& vec,
const
HepEulerAngles
&e1 ) {
63
HepLorentzVector
vv (vec);
64
return
vv.
rotate
(e1);
65
}
66
67
HepLorentzVector
rotationOf
(
const
HepLorentzVector
& vec,
68
double
phi1,
69
double
theta1,
70
double
psi1) {
71
HepLorentzVector
vv (vec);
72
return
vv.
rotate
(phi1, theta1, psi1);
73
}
74
75
}
// namespace CLHEP
CLHEP::Hep3Vector
Definition:
Geometry/CLHEP/Vector/ThreeVector.h:41
CLHEP::Hep3Vector::rotate
Hep3Vector & rotate(double, const Hep3Vector &)
Definition:
ThreeVectorR.cc:29
CLHEP::HepAxisAngle
Definition:
Geometry/CLHEP/Vector/AxisAngle.h:37
CLHEP::HepEulerAngles
Definition:
Geometry/CLHEP/Vector/EulerAngles.h:32
CLHEP::HepLorentzVector
Definition:
Geometry/CLHEP/Vector/LorentzVector.h:72
CLHEP::HepLorentzVector::rotate
HepLorentzVector & rotate(double, const Hep3Vector &)
Definition:
LorentzVectorR.cc:20
CLHEP
Definition:
ClhepVersion.h:13
CLHEP::rotationOf
HepLorentzVector rotationOf(const HepLorentzVector &vec, const Hep3Vector &axis, double delta)
Definition:
LorentzVectorR.cc:48
a
@ a
Definition:
testCategories.cc:125
Generated by
1.9.1