Main Page
Namespaces
Classes
Package Documentation
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
*
TransverseBoundPlaneFactory::operator()
(
const
Surface::GlobalPoint
& origin,
6
const
Surface::GlobalVector
&
dir
)
const
{
7
// z axis perpendicular to transverse momentum
8
GlobalVector
zAxis
=
GlobalVector
(dir.
x
(), dir.
y
(), 0.).
unit
();
9
10
// y axis coincides with global z
11
GlobalVector
yAxis
(0., 0., 1.);
12
13
// x axis obtained by cross product
14
GlobalVector
xAxis
= (yAxis.
cross
(zAxis)).
unit
();
15
16
Surface::RotationType
rot
(
17
xAxis.
x
(), xAxis.
y
(), xAxis.
z
(), yAxis.
x
(), yAxis.
y
(), yAxis.
z
(), zAxis.
x
(), zAxis.
y
(), zAxis.
z
());
18
19
// Surface::RotationType rot(yAxis, zAxis);
20
21
return
new
BoundPlane
(origin,
rot
);
22
}
BoundPlane
TransverseBoundPlaneFactory::operator()
BoundPlane * operator()(const Surface::GlobalPoint &origin, const Surface::GlobalVector &perp) const
Definition:
TransverseBoundPlaneFactory.cc:5
Vector3DBase
Definition:
Vector3DBase.h:9
MuonErrorMatrixValues_cff.xAxis
xAxis
Definition:
MuonErrorMatrixValues_cff.py:24
BoundPlane
Plane BoundPlane
Definition:
Plane.h:95
PV3DBase::y
T y() const
Definition:
PV3DBase.h:63
MuonErrorMatrixValues_cff.yAxis
yAxis
Definition:
MuonErrorMatrixValues_cff.py:25
csvLumiCalc.unit
unit
Definition:
csvLumiCalc.py:47
TransverseBoundPlaneFactory.h
MetAnalyzer.zAxis
zAxis
Definition:
MetAnalyzer.py:57
TkRotation< float >
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:64
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:62
makeMuonMisalignmentScenario.rot
rot
Definition:
makeMuonMisalignmentScenario.py:322
GlobalVector
Global3DVector GlobalVector
Definition:
GlobalVector.h:10
Generated for CMSSW Reference Manual by
1.8.11