ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
source
analysis
digits_hits
error_propagation
event
externals
clhep
include
src
AxisAngle.cc
BasicVector3D.cc
Boost.cc
BoostX.cc
BoostY.cc
BoostZ.cc
DoubConv.cc
DualRand.cc
EngineFactory.cc
engineIDulong.cc
erfQ.cc
EulerAngles.cc
Evaluator.cc
flatToGaussian.cc
gammln.cc
JamesRandom.cc
LorentzRotation.cc
LorentzRotationC.cc
LorentzRotationD.cc
LorentzVector.cc
LorentzVectorB.cc
LorentzVectorC.cc
LorentzVectorK.cc
LorentzVectorL.cc
LorentzVectorR.cc
MixMaxRng.cc
MTwistEngine.cc
NonRandomEngine.cc
Normal3D.cc
Plane3D.cc
Point3D.cc
RandBinomial.cc
RandBit.cc
RandBreitWigner.cc
RandChiSquare.cc
RandExponential.cc
RandExpZiggurat.cc
RandFlat.cc
RandGamma.cc
RandGauss.cc
RandGaussQ.cc
RandGaussZiggurat.cc
RandGeneral.cc
RandLandau.cc
Random.cc
RandomEngine.cc
RandPoisson.cc
RandPoissonQ.cc
RandStudentT.cc
RanecuEngine.cc
Ranlux64Engine.cc
RanluxEngine.cc
RanshiEngine.cc
Rotation.cc
RotationA.cc
RotationC.cc
RotationE.cc
RotationInterfaces.cc
RotationIO.cc
RotationL.cc
RotationP.cc
RotationX.cc
RotationY.cc
RotationZ.cc
setStdMath.cc
setSystemOfUnits.cc
SpaceVector.cc
SpaceVectorD.cc
SpaceVectorP.cc
SpaceVectorR.cc
StaticRandomStates.cc
ThreeVector.cc
ThreeVectorR.cc
Transform3D.cc
TwoVector.cc
Vector3D.cc
ZMinput.cc
expat
zlib
g3tog4
geometry
global
graphics_reps
intercoms
interfaces
materials
parameterisations
particles
persistency
physics_lists
processes
readout
run
track
tracking
visualization
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
RotationP.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RotationP.cc
1
// -*- C++ -*-
2
// ---------------------------------------------------------------------------
3
//
4
// This file is a part of the CLHEP - a Class Library for High Energy Physics.
5
//
6
// This is the implementation of methods of the HepRotation class which
7
// were introduced when ZOOM PhysicsVectors was merged in, other than those
8
// involving Euler or axis/angle representations, lengthy corrections of
9
// the rotation matrix, or I/O.
10
//
11
12
#ifdef GNUPRAGMA
13
#pragma implementation
14
#endif
15
16
#include "
CLHEP/Vector/Rotation.h
"
17
18
#include <cmath>
19
20
21
namespace
CLHEP {
22
23
void
HepRotation::decompose
(
HepAxisAngle
& rotation,
Hep3Vector
& boost)
const
{
24
boost.
set
(0,0,0);
25
rotation =
axisAngle
();
26
}
27
28
void
HepRotation::decompose
(
Hep3Vector
& boost,
HepAxisAngle
& rotation)
const
{
29
boost.
set
(0,0,0);
30
rotation =
axisAngle
();
31
}
32
33
double
HepRotation::distance2
(
const
HepRotation
&
r
)
const
{
34
double
sum
=
rxx
* r.
rxx
+
rxy
* r.
rxy
+
rxz
* r.
rxz
35
+
ryx
* r.
ryx
+
ryy
* r.
ryy
+
ryz
* r.
ryz
36
+
rzx
* r.
rzx
+
rzy
* r.
rzy
+
rzz
* r.
rzz
;
37
double
answer = 3.0 -
sum
;
38
return
(answer >= 0 ) ? answer : 0;
39
}
40
41
double
HepRotation::howNear
(
const
HepRotation
&
r
)
const
{
42
return
std::sqrt(
distance2
( r ) );
43
}
44
45
bool
HepRotation::isNear
(
const
HepRotation
&
r
,
46
double
epsilon
)
const
{
47
return
distance2
( r ) <= epsilon*
epsilon
;
48
}
49
50
double
HepRotation::norm2
()
const
{
51
double
answer = 3.0 -
rxx
-
ryy
-
rzz
;
52
return
(answer >= 0 ) ? answer : 0;
53
}
54
55
}
// namespace CLHEP
geant4
tree
geant4-10.6-release
source
externals
clhep
src
RotationP.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:15
using
1.8.2 with
ECCE GitHub integration