CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

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
18namespace CLHEP {
19
21 pp.rotate(a,v1);
22 return *this;
23}
24
26 double ddelta ) {
27 pp.rotate (aaxis, ddelta);
28 return *this;
29}
30
32 pp.rotate (ax);
33 return *this;
34}
35
37 pp.rotate (e1);
38 return *this;
39}
40
42 double theta1,
43 double psi1 ) {
44 pp.rotate (phi1, theta1, psi1);
45 return *this;
46}
47
49 const Hep3Vector & aaxis,
50 double ddelta) {
51 HepLorentzVector vv (vec);
52 return vv.rotate (aaxis, ddelta);
53}
54
56 (const HepLorentzVector & vec, const HepAxisAngle &ax ) {
57 HepLorentzVector vv (vec);
58 return vv.rotate (ax);
59}
60
62 (const HepLorentzVector & vec, const HepEulerAngles &e1 ) {
63 HepLorentzVector vv (vec);
64 return vv.rotate (e1);
65}
66
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
Hep3Vector & rotate(double, const Hep3Vector &)
HepLorentzVector & rotate(double, const Hep3Vector &)
HepLorentzVector rotationOf(const HepLorentzVector &vec, const Hep3Vector &axis, double delta)