Geant4  10.00.p02
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/LorentzVector.h"
16 
17 namespace CLHEP {
18 
19 HepLorentzVector & HepLorentzVector::rotate(double a, const Hep3Vector &v1) {
20  pp.rotate(a,v1);
21  return *this;
22 }
23 
24 HepLorentzVector & HepLorentzVector::rotate ( const Hep3Vector & aaxis,
25  double ddelta ) {
26  pp.rotate (aaxis, ddelta);
27  return *this;
28 }
29 
30 HepLorentzVector & HepLorentzVector::rotate ( const HepAxisAngle & ax ) {
31  pp.rotate (ax);
32  return *this;
33 }
34 
35 HepLorentzVector & HepLorentzVector::rotate ( const HepEulerAngles & e1 ) {
36  pp.rotate (e1);
37  return *this;
38 }
39 
40 HepLorentzVector & HepLorentzVector::rotate ( double phi1,
41  double theta1,
42  double psi1 ) {
43  pp.rotate (phi1, theta1, psi1);
44  return *this;
45 }
46 
47 HepLorentzVector rotationOf (const HepLorentzVector & vec,
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 
66 HepLorentzVector rotationOf (const HepLorentzVector & vec,
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 &aaxis, double ddelta)
G4double a
Definition: TRTMaterials.hh:39
static const G4double e1