CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions
TrajectoryStateClosestToPointBuilder Class Referenceabstract

#include <TrajectoryStateClosestToPointBuilder.h>

Inheritance diagram for TrajectoryStateClosestToPointBuilder:
TSCPBuilderNoMaterial

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

Definition at line 20 of file TrajectoryStateClosestToPointBuilder.h.

20 {}

Member Function Documentation

TrajectoryStateClosestToPoint TrajectoryStateClosestToPointBuilder::constructTSCP ( const FTS originalFTS,
const GlobalPoint referencePoint 
) const
inlineprotected
virtual TrajectoryStateClosestToPoint TrajectoryStateClosestToPointBuilder::operator() ( const FTS originalFTS,
const GlobalPoint referencePoint 
) const
pure virtual

Implemented in TSCPBuilderNoMaterial.

virtual TrajectoryStateClosestToPoint TrajectoryStateClosestToPointBuilder::operator() ( const TSOS originalTSOS,
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()().

29  {
30  if ((ptA.x() == ptB.x()) && (ptA.y() == ptB.y()) && (ptA.z() == ptB.z()))
31  return true;
32  else return false;
33  }
T y() const
Definition: PV3DBase.h:62
T z() const
Definition: PV3DBase.h:63
T x() const
Definition: PV3DBase.h:61