CMS 3D CMS Logo

TransverseBoundPlaneFactory.cc
Go to the documentation of this file.
1 //#include "Utilities/Configuration/interface/Architecture.h"
2 
4 
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 
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 }
Vector3DBase
Definition: Vector3DBase.h:8
TkRotation< float >
GloballyPositioned< float >::GlobalPoint
Point3DBase< float, GlobalTag > GlobalPoint
Definition: GloballyPositioned.h:23
GlobalVector
Global3DVector GlobalVector
Definition: GlobalVector.h:10
GloballyPositioned< float >::GlobalVector
Vector3DBase< float, GlobalTag > GlobalVector
Definition: GloballyPositioned.h:25
Vector3DBase::unit
Vector3DBase unit() const
Definition: Vector3DBase.h:54
TransverseBoundPlaneFactory::operator()
BoundPlane * operator()(const Surface::GlobalPoint &origin, const Surface::GlobalVector &perp) const
Definition: TransverseBoundPlaneFactory.cc:5
unit
Basic3DVector unit() const
Definition: Basic3DVectorLD.h:162
BoundPlane
Plane BoundPlane
Definition: Plane.h:94
HLT_2018_cff.xAxis
xAxis
Definition: HLT_2018_cff.py:44410
BoundPlane
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
TransverseBoundPlaneFactory.h
HLT_2018_cff.yAxis
yAxis
Definition: HLT_2018_cff.py:44412
HLT_2018_cff.zAxis
zAxis
Definition: HLT_2018_cff.py:44411
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23