CMS 3D CMS Logo

List of all members | Public Member Functions
TransverseBoundPlaneFactory Class Reference

#include <TransverseBoundPlaneFactory.h>

Public Member Functions

BoundPlaneoperator() (const Surface::GlobalPoint &origin, const Surface::GlobalVector &perp) const
 

Detailed Description

Obsolete.

Definition at line 9 of file TransverseBoundPlaneFactory.h.

Member Function Documentation

BoundPlane * TransverseBoundPlaneFactory::operator() ( const Surface::GlobalPoint origin,
const Surface::GlobalVector perp 
) const

Definition at line 5 of file TransverseBoundPlaneFactory.cc.

References Vector3DBase< T, FrameTag >::cross(), makeMuonMisalignmentScenario::rot, Vector3DBase< T, FrameTag >::unit(), unit(), PV3DBase< T, PVType, FrameType >::x(), HLT_2018_cff::xAxis, PV3DBase< T, PVType, FrameType >::y(), HLT_2018_cff::yAxis, PV3DBase< T, PVType, FrameType >::z(), and HLT_2018_cff::zAxis.

6  {
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 }
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
T x() const
Definition: PV3DBase.h:59
Global3DVector GlobalVector
Definition: GlobalVector.h:10
Basic3DVector unit() const