CMS 3D CMS Logo

Public Member Functions

TransverseBoundPlaneFactory Class Reference

#include <TransverseBoundPlaneFactory.h>

List of all members.

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().

                                                                              {

  // z axis perpendicular to transverse momentum
  GlobalVector zAxis = GlobalVector(dir.x(), dir.y(), 0.).unit();

  // y axis coincides with global z
  GlobalVector yAxis(0., 0., 1.);

  // x axis obtained by cross product
  GlobalVector xAxis = (yAxis.cross(zAxis)).unit();

  Surface::RotationType rot( xAxis.x(), xAxis.y(), xAxis.z(),
                             yAxis.x(), yAxis.y(), yAxis.z(),
                             zAxis.x(), zAxis.y(), zAxis.z());

  //  Surface::RotationType rot(yAxis, zAxis);

  return new BoundPlane( origin, rot);
}