Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DataFormats
GeometryCommonDetAlgo
src
TransverseBoundPlaneFactory.cc
Go to the documentation of this file.
1
//#include "Utilities/Configuration/interface/Architecture.h"
2
3
#include "
DataFormats/GeometryCommonDetAlgo/interface/TransverseBoundPlaneFactory.h
"
4
5
BoundPlane
*
6
TransverseBoundPlaneFactory::operator()
(
const
Surface::GlobalPoint
& origin,
7
const
Surface::GlobalVector
&
dir
)
const
{
8
9
// z axis perpendicular to transverse momentum
10
GlobalVector
zAxis =
GlobalVector
(dir.
x
(), dir.
y
(), 0.).
unit
();
11
12
// y axis coincides with global z
13
GlobalVector
yAxis(0., 0., 1.);
14
15
// x axis obtained by cross product
16
GlobalVector
xAxis = (yAxis.
cross
(zAxis)).
unit
();
17
18
Surface::RotationType
rot
( xAxis.
x
(), xAxis.
y
(), xAxis.
z
(),
19
yAxis.
x
(), yAxis.
y
(), yAxis.
z
(),
20
zAxis.
x
(), zAxis.
y
(), zAxis.
z
());
21
22
// Surface::RotationType rot(yAxis, zAxis);
23
24
return
new
BoundPlane
( origin,
rot
);
25
}
BoundPlane
Definition:
BoundPlane.h:19
TransverseBoundPlaneFactory::operator()
BoundPlane * operator()(const Surface::GlobalPoint &origin, const Surface::GlobalVector &perp) const
Definition:
TransverseBoundPlaneFactory.cc:6
Vector3DBase
Definition:
Vector3DBase.h:9
PV3DBase::y
T y() const
Definition:
PV3DBase.h:62
TransverseBoundPlaneFactory.h
TkRotation< float >
csvLumiCalc.unit
string unit
Definition:
csvLumiCalc.py:46
Vector3DBase::cross
Vector3DBase< typename PreciseFloatType< T, U >::Type, FrameTag > cross(const Vector3DBase< U, FrameTag > &v) const
Definition:
Vector3DBase.h:119
PV3DBase::z
T z() const
Definition:
PV3DBase.h:63
Vector3DBase::unit
Vector3DBase unit() const
Definition:
Vector3DBase.h:57
Point3DBase< float, GlobalTag >
dir
dbl *** dir
Definition:
mlp_gen.cc:35
PV3DBase::x
T x() const
Definition:
PV3DBase.h:61
GlobalVector
Global3DVector GlobalVector
Definition:
GlobalVector.h:10
makeMuonMisalignmentScenario.rot
list rot
Definition:
makeMuonMisalignmentScenario.py:320
Generated for CMSSW Reference Manual by
1.8.5