CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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< typename PreciseFloatType< T, U >::Type, FrameTag > cross(const Vector3DBase< U, FrameTag > &v) const
Definition: Vector3DBase.h:110
BoundPlane * operator()(const Surface::GlobalPoint &origin, const Surface::GlobalVector &perp) const
Plane BoundPlane
Definition: Plane.h:94
T y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
Vector3DBase unit() const
Definition: Vector3DBase.h:54
tuple zAxis
Definition: MetAnalyzer.py:57
T x() const
Definition: PV3DBase.h:59
Global3DVector GlobalVector
Definition: GlobalVector.h:10
Basic3DVector unit() const