CMS 3D CMS Logo

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

◆ FTS

Definition at line 17 of file TrajectoryStateClosestToBeamLine.h.

Constructor & Destructor Documentation

◆ TrajectoryStateClosestToBeamLine() [1/2]

TrajectoryStateClosestToBeamLine::TrajectoryStateClosestToBeamLine ( )
inline

◆ TrajectoryStateClosestToBeamLine() [2/2]

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

◆ ~TrajectoryStateClosestToBeamLine()

TrajectoryStateClosestToBeamLine::~TrajectoryStateClosestToBeamLine ( )
inline

Definition at line 26 of file TrajectoryStateClosestToBeamLine.h.

26 {}

Member Function Documentation

◆ beamLinePCA()

GlobalPoint const& TrajectoryStateClosestToBeamLine::beamLinePCA ( ) const
inline

Point on the beamline which is the closest to the track

Definition at line 37 of file TrajectoryStateClosestToBeamLine.h.

References thePointOnBeamLine.

◆ beamSpot()

reco::BeamSpot const& TrajectoryStateClosestToBeamLine::beamSpot ( void  )
inline

The beamline

Definition at line 48 of file TrajectoryStateClosestToBeamLine.h.

References theBeamSpot.

◆ isValid()

bool TrajectoryStateClosestToBeamLine::isValid ( void  ) const
inline

◆ trackStateAtPCA()

FTS const& TrajectoryStateClosestToBeamLine::trackStateAtPCA ( ) const
inline

◆ transverseImpactParameter()

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 3 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 HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), TrackFilterForPVFinding::operator()(), HLTmumutktkVtxProducer::produce(), and HLTmumutkVtxProducer::produce().

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

Member Data Documentation

◆ theBeamSpot

reco::BeamSpot TrajectoryStateClosestToBeamLine::theBeamSpot
private

Definition at line 55 of file TrajectoryStateClosestToBeamLine.h.

Referenced by beamSpot(), and transverseImpactParameter().

◆ theFTS

FTS TrajectoryStateClosestToBeamLine::theFTS
private

◆ thePointOnBeamLine

GlobalPoint TrajectoryStateClosestToBeamLine::thePointOnBeamLine
private

Definition at line 54 of file TrajectoryStateClosestToBeamLine.h.

Referenced by beamLinePCA(), and transverseImpactParameter().

◆ valid

bool TrajectoryStateClosestToBeamLine::valid
private

Definition at line 56 of file TrajectoryStateClosestToBeamLine.h.

Referenced by isValid().