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 | Private Attributes
TrajectoryStateClosestToBeamLine Class Reference

#include <TrajectoryStateClosestToBeamLine.h>

Public Types

typedef FreeTrajectoryState FTS
 

Public Member Functions

GlobalPoint const & beamLinePCA () const
 
reco::BeamSpot const & beamSpot ()
 
bool isValid () const
 
FTS const & trackStateAtPCA () const
 
 TrajectoryStateClosestToBeamLine ()
 
 TrajectoryStateClosestToBeamLine (const FTS &stateAtPCA, const GlobalPoint &pointOnBeamLine, const reco::BeamSpot &beamSpot)
 
Measurement1D transverseImpactParameter () const
 
 ~TrajectoryStateClosestToBeamLine ()
 

Private Attributes

reco::BeamSpot theBeamSpot
 
FTS theFTS
 
GlobalPoint thePointOnBeamLine
 
bool valid
 

Detailed Description

Trajectory state defined at the point of closest approach (PCA) of the track to the beamline. It gives also access to the point on the beamline which is the closest to the track.

Definition at line 15 of file TrajectoryStateClosestToBeamLine.h.

Member Typedef Documentation

Definition at line 19 of file TrajectoryStateClosestToBeamLine.h.

Constructor & Destructor Documentation

TrajectoryStateClosestToBeamLine::TrajectoryStateClosestToBeamLine ( )
inline
TrajectoryStateClosestToBeamLine::TrajectoryStateClosestToBeamLine ( const FTS stateAtPCA,
const GlobalPoint pointOnBeamLine,
const reco::BeamSpot beamSpot 
)
inline
TrajectoryStateClosestToBeamLine::~TrajectoryStateClosestToBeamLine ( )
inline

Definition at line 30 of file TrajectoryStateClosestToBeamLine.h.

30 {}

Member Function Documentation

GlobalPoint const& TrajectoryStateClosestToBeamLine::beamLinePCA ( ) const
inline

Point on the beamline which is the closest to the track

Definition at line 43 of file TrajectoryStateClosestToBeamLine.h.

References thePointOnBeamLine.

43  {
44  return thePointOnBeamLine;
45  }
reco::BeamSpot const& TrajectoryStateClosestToBeamLine::beamSpot ( void  )
inline

The beamline

Definition at line 56 of file TrajectoryStateClosestToBeamLine.h.

References theBeamSpot.

56  {
57  return theBeamSpot;
58  }
bool TrajectoryStateClosestToBeamLine::isValid ( void  ) const
inline
FTS const& TrajectoryStateClosestToBeamLine::trackStateAtPCA ( ) const
inline
Measurement1D TrajectoryStateClosestToBeamLine::transverseImpactParameter ( ) const

Transverse impact parameter of the track to the beamline. It is the transverse distance of the two PCAs.

Definition at line 4 of file TrajectoryStateClosestToBeamLine.cc.

References FreeTrajectoryState::cartesianError(), relativeConstraints::error, CartesianTrajectoryError::matrix(), FreeTrajectoryState::position(), reco::BeamSpot::rotatedCovariance3D(), mathSSE::sqrt(), theBeamSpot, theFTS, thePointOnBeamLine, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().

Referenced by HLTmmkkFilter::hltFilter(), HLTmmkFilter::hltFilter(), TrackFilterForPVFinding::operator()(), HLTmumutktkVtxProducer::produce(), and HLTmumutkVtxProducer::produce().

5 {
8 
9  GlobalPoint impactPoint=theFTS.position();
10  AlgebraicVector3 transverseFlightPath(
11  impactPoint.x()-thePointOnBeamLine.x(),impactPoint.y()-thePointOnBeamLine.y(),0.);
12  double length = ROOT::Math::Mag(transverseFlightPath);
13  // Warning: after the transverseFlightPath.Unit() statement, the
14  // transverseFlightPath vector is CHANGED to a UNIT vector.
15  double ipError = sqrt( ROOT::Math::Similarity(transverseFlightPath.Unit(),error) );
16  return Measurement1D (length, ipError);
17 }
CartesianTrajectoryError cartesianError() const
T y() const
Definition: PV3DBase.h:63
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
T sqrt(T t)
Definition: SSEVec.h:18
ROOT::Math::SVector< double, 3 > AlgebraicVector3
const AlgebraicSymMatrix66 & matrix() const
GlobalPoint position() const
Covariance3DMatrix rotatedCovariance3D() const
Definition: BeamSpot.cc:78
T x() const
Definition: PV3DBase.h:62

Member Data Documentation

reco::BeamSpot TrajectoryStateClosestToBeamLine::theBeamSpot
private

Definition at line 66 of file TrajectoryStateClosestToBeamLine.h.

Referenced by beamSpot(), and transverseImpactParameter().

FTS TrajectoryStateClosestToBeamLine::theFTS
private
GlobalPoint TrajectoryStateClosestToBeamLine::thePointOnBeamLine
private

Definition at line 65 of file TrajectoryStateClosestToBeamLine.h.

Referenced by beamLinePCA(), and transverseImpactParameter().

bool TrajectoryStateClosestToBeamLine::valid
private

Definition at line 67 of file TrajectoryStateClosestToBeamLine.h.

Referenced by isValid().