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
RotationL.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RotationL.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, which might cause
8
// pulling in of LorentzTransformation related code units.
9
//
10
11
#ifdef GNUPRAGMA
12
#pragma implementation
13
#endif
14
15
#include "
CLHEP/Vector/Rotation.h
"
16
#include "
CLHEP/Vector/LorentzRotation.h
"
17
18
#include <cmath>
19
20
namespace
CLHEP {
21
22
// ---------- distance2 and related member functions:
23
//
24
// WHy do we have forms for HepLorentzRotation and HepBoost but not for
25
// HepBoostX, HepBoostY, HepBoostZ? Because the latter can be gotten by
26
// implicit conversion to HepBoost; but if we just had HepLorentzRotation
27
// then this would involve double conversion when HepBoostX was used.
28
29
double
HepRotation::distance2
(
const
HepLorentzRotation
& lt )
const
{
30
HepAxisAngle
a
;
31
Hep3Vector
b
;
32
lt.
decompose
(b, a);
33
double
bet = b.
beta
();
34
double
bet2 = bet*bet;
35
HepRotation
r
(a);
36
return
bet2/(1-bet2) +
distance2
(r);
37
}
38
39
double
HepRotation::distance2
(
const
HepBoost
& lt )
const
{
40
return
distance2
(
HepLorentzRotation
(lt));
41
}
42
43
double
HepRotation::howNear
(
const
HepLorentzRotation
& lt )
const
{
44
return
std::sqrt(
distance2
( lt ) );
45
}
46
47
double
HepRotation::howNear
(
const
HepBoost
& lt )
const
{
48
return
std::sqrt(
distance2
( lt ) );
49
}
50
51
bool
HepRotation::isNear
(
const
HepLorentzRotation
& lt,
52
double
epsilon
)
const
{
53
return
distance2
( lt ) <= epsilon*
epsilon
;
54
}
55
56
bool
HepRotation::isNear
(
const
HepBoost
& lt,
57
double
epsilon
)
const
{
58
return
distance2
( lt ) <= epsilon*
epsilon
;
59
}
60
61
}
// namespace CLHEP
62
geant4
tree
geant4-10.6-release
source
externals
clhep
src
RotationL.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:15
using
1.8.2 with
ECCE GitHub integration