CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 6 of file TransverseBoundPlaneFactory.cc.

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

7  {
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 }
Plane BoundPlane
Definition: Plane.h:104
T y() const
Definition: PV3DBase.h:63
string unit
Definition: csvLumiCalc.py:46
T z() const
Definition: PV3DBase.h:64
Vector3DBase unit() const
Definition: Vector3DBase.h:57
dbl *** dir
Definition: mlp_gen.cc:35
T x() const
Definition: PV3DBase.h:62
Global3DVector GlobalVector
Definition: GlobalVector.h:10