CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Member Functions

TrajectoryStateClosestToPointBuilder Class Reference

#include <TrajectoryStateClosestToPointBuilder.h>

Inheritance diagram for TrajectoryStateClosestToPointBuilder:
TSCPBuilderNoMaterial

List of all members.

Public Types

typedef FreeTrajectoryState FTS
typedef TrajectoryStateOnSurface TSOS

Public Member Functions

virtual
TrajectoryStateClosestToPoint 
operator() (const FTS &originalFTS, const GlobalPoint &referencePoint) const =0
virtual
TrajectoryStateClosestToPoint 
operator() (const TSOS &originalTSOS, const GlobalPoint &referencePoint) const =0
bool positionEqual (const GlobalPoint &ptB, const GlobalPoint &ptA) const
virtual ~TrajectoryStateClosestToPointBuilder ()

Protected Member Functions

TrajectoryStateClosestToPoint constructTSCP (const FTS &originalFTS, const GlobalPoint &referencePoint) const

Detailed Description

This class builds a TrajectoryStateClosestToPoint given an original TrajectoryStateOnSurface or FreeTrajectoryState. This new state is then defined at the point of closest approach to the reference point. In case the propagation was not successful, this state can be invalid.

Definition at line 14 of file TrajectoryStateClosestToPointBuilder.h.


Member Typedef Documentation

Definition at line 18 of file TrajectoryStateClosestToPointBuilder.h.

Definition at line 17 of file TrajectoryStateClosestToPointBuilder.h.


Constructor & Destructor Documentation

virtual TrajectoryStateClosestToPointBuilder::~TrajectoryStateClosestToPointBuilder ( ) [inline, virtual]

Definition at line 20 of file TrajectoryStateClosestToPointBuilder.h.

{}

Member Function Documentation

TrajectoryStateClosestToPoint TrajectoryStateClosestToPointBuilder::constructTSCP ( const FTS originalFTS,
const GlobalPoint referencePoint 
) const [inline, protected]

Definition at line 37 of file TrajectoryStateClosestToPointBuilder.h.

Referenced by TSCPBuilderNoMaterial::operator()().

    {return TrajectoryStateClosestToPoint(originalFTS, referencePoint);}
virtual TrajectoryStateClosestToPoint TrajectoryStateClosestToPointBuilder::operator() ( const TSOS originalTSOS,
const GlobalPoint referencePoint 
) const [pure virtual]

Implemented in TSCPBuilderNoMaterial.

virtual TrajectoryStateClosestToPoint TrajectoryStateClosestToPointBuilder::operator() ( const FTS originalFTS,
const GlobalPoint referencePoint 
) const [pure virtual]

Implemented in TSCPBuilderNoMaterial.

bool TrajectoryStateClosestToPointBuilder::positionEqual ( const GlobalPoint ptB,
const GlobalPoint ptA 
) const [inline]

Definition at line 28 of file TrajectoryStateClosestToPointBuilder.h.

References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by TSCPBuilderNoMaterial::operator()().

  {
    if ((ptA.x() == ptB.x()) && (ptA.y() == ptB.y()) && (ptA.z() == ptB.z()))
      return true;
    else return false;
  }