source: trunk/CLHEP/src/LorentzVectorR.cc@ 13

Last change on this file since 13 was 4, checked in by Pavel Demin, 17 years ago

first commit

File size: 1.8 KB
Line 
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
18namespace CLHEP {
19
20HepLorentzVector & HepLorentzVector::rotate(double a, const Hep3Vector &v) {
21 pp.rotate(a,v);
22 return *this;
23}
24
25HepLorentzVector & HepLorentzVector::rotate ( const Hep3Vector & axis,
26 double delta ) {
27 pp.rotate (axis, delta);
28 return *this;
29}
30
31HepLorentzVector & HepLorentzVector::rotate ( const HepAxisAngle & ax ) {
32 pp.rotate (ax);
33 return *this;
34}
35
36HepLorentzVector & HepLorentzVector::rotate ( const HepEulerAngles & e ) {
37 pp.rotate (e);
38 return *this;
39}
40
41HepLorentzVector & HepLorentzVector::rotate ( double phi,
42 double theta,
43 double psi ) {
44 pp.rotate (phi, theta, psi);
45 return *this;
46}
47
48HepLorentzVector rotationOf (const HepLorentzVector & vec,
49 const Hep3Vector & axis,
50 double delta) {
51 HepLorentzVector vv (vec);
52 return vv.rotate (axis, delta);
53}
54
55HepLorentzVector rotationOf
56 (const HepLorentzVector & vec, const HepAxisAngle &ax ) {
57 HepLorentzVector vv (vec);
58 return vv.rotate (ax);
59}
60
61HepLorentzVector rotationOf
62 (const HepLorentzVector & vec, const HepEulerAngles &e ) {
63 HepLorentzVector vv (vec);
64 return vv.rotate (e);
65}
66
67HepLorentzVector rotationOf (const HepLorentzVector & vec,
68 double phi,
69 double theta,
70 double psi) {
71 HepLorentzVector vv (vec);
72 return vv.rotate (phi, theta, psi);
73}
74
75} // namespace CLHEP
Note: See TracBrowser for help on using the repository browser.