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

◆ operator()()

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

Definition at line 5 of file TransverseBoundPlaneFactory.cc.

References DeadROC_duringRun::dir, makeMuonMisalignmentScenario::rot, Vector3DBase< T, FrameTag >::unit(), unit(), HLT_2022v15_cff::xAxis, HLT_2022v15_cff::yAxis, and HLT_2022v15_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
Basic3DVector unit() const
Vector3DBase unit() const
Definition: Vector3DBase.h:54
Global3DVector GlobalVector
Definition: GlobalVector.h:10