Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
16 
17 namespace CLHEP {
18 
20  pp.rotate(a,v1);
21  return *this;
22 }
23 
25  double ddelta ) {
26  pp.rotate (aaxis, ddelta);
27  return *this;
28 }
29 
31  pp.rotate (ax);
32  return *this;
33 }
34 
36  pp.rotate (e1);
37  return *this;
38 }
39 
41  double theta1,
42  double psi1 ) {
43  pp.rotate (phi1, theta1, psi1);
44  return *this;
45 }
46 
48  const Hep3Vector & aaxis,
49  double ddelta) {
50  HepLorentzVector vv (vec);
51  return vv.rotate (aaxis, ddelta);
52 }
53 
54 HepLorentzVector rotationOf
55  (const HepLorentzVector & vec, const HepAxisAngle &ax ) {
56  HepLorentzVector vv (vec);
57  return vv.rotate (ax);
58 }
59 
60 HepLorentzVector rotationOf
61  (const HepLorentzVector & vec, const HepEulerAngles &e1 ) {
62  HepLorentzVector vv (vec);
63  return vv.rotate (e1);
64 }
65 
67  double phi1,
68  double theta1,
69  double psi1) {
70  HepLorentzVector vv (vec);
71  return vv.rotate (phi1, theta1, psi1);
72 }
73 
74 } // namespace CLHEP
HepLorentzVector rotationOf(const HepLorentzVector &vec, const Hep3Vector &axis, double delta)
std::vector< ExP01TrackerHit * > a
Definition: ExP01Classes.hh:33
HepLorentzVector & rotate(double, const Hep3Vector &)
Hep3Vector & rotate(double, const Hep3Vector &)
Definition: ThreeVectorR.cc:28