#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 |
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.
Definition at line 19 of file TrajectoryStateClosestToBeamLine.h.
TrajectoryStateClosestToBeamLine::TrajectoryStateClosestToBeamLine | ( | ) | [inline] |
Definition at line 21 of file TrajectoryStateClosestToBeamLine.h.
: valid(false) {}
TrajectoryStateClosestToBeamLine::TrajectoryStateClosestToBeamLine | ( | const FTS & | stateAtPCA, |
const GlobalPoint & | pointOnBeamLine, | ||
const reco::BeamSpot & | beamSpot | ||
) | [inline] |
Definition at line 24 of file TrajectoryStateClosestToBeamLine.h.
: theFTS(stateAtPCA) , thePointOnBeamLine(pointOnBeamLine), theBeamSpot(beamSpot), valid(true) {}
TrajectoryStateClosestToBeamLine::~TrajectoryStateClosestToBeamLine | ( | ) | [inline] |
Definition at line 30 of file TrajectoryStateClosestToBeamLine.h.
{}
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.
{ return thePointOnBeamLine; }
reco::BeamSpot const& TrajectoryStateClosestToBeamLine::beamSpot | ( | void | ) | [inline] |
The beamline
Definition at line 56 of file TrajectoryStateClosestToBeamLine.h.
References theBeamSpot.
{ return theBeamSpot; }
bool TrajectoryStateClosestToBeamLine::isValid | ( | void | ) | const [inline] |
Definition at line 60 of file TrajectoryStateClosestToBeamLine.h.
References valid.
Referenced by SeedForPhotonConversionFromQuadruplets::buildSeedBool(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), V0Fitter::fitAll(), CosmicParametersDefinerForTP::momentum(), CosmicTrackingParticleSelector::operator()(), TrackFilterForPVFinding::operator()(), PrimaryVertexAnalyzer4PU::printRecTrks(), MuonUpdatorAtVertex::propagate(), MuonTrackingRegionBuilder::region(), TrackAlgoCompareUtil::SetTrackingParticleD0Dz(), and CosmicParametersDefinerForTP::vertex().
{return valid;}
FTS const& TrajectoryStateClosestToBeamLine::trackStateAtPCA | ( | ) | const [inline] |
State of the track at the PCA to the beamline
Definition at line 36 of file TrajectoryStateClosestToBeamLine.h.
References theFTS.
Referenced by SeedForPhotonConversionFromQuadruplets::buildSeedBool(), TrackProducerAlgorithm< reco::Track >::buildTrack(), TrackProducerAlgorithm< reco::GsfTrack >::buildTrack(), PrimaryVertexAnalyzer4PU::fillTrackHistos(), CosmicParametersDefinerForTP::momentum(), CosmicTrackingParticleSelector::operator()(), TrackAssociatorByChi2::parametersAtClosestApproach(), MuonUpdatorAtVertex::propagate(), MuonTrackingRegionBuilder::region(), TrackAlgoCompareUtil::SetTrackingParticleD0Dz(), and CosmicParametersDefinerForTP::vertex().
{ return theFTS; }
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(), 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 V0Fitter::fitAll(), HLTmmkFilter::hltFilter(), HLTmmkkFilter::hltFilter(), TrackFilterForPVFinding::operator()(), and PrimaryVertexAnalyzer4PU::printRecTrks().
{ AlgebraicSymMatrix33 error = theBeamSpot.rotatedCovariance3D() + theFTS.cartesianError().matrix().Sub<AlgebraicSymMatrix33>(0,0); GlobalPoint impactPoint=theFTS.position(); AlgebraicVector3 transverseFlightPath( impactPoint.x()-thePointOnBeamLine.x(),impactPoint.y()-thePointOnBeamLine.y(),0.); double length = ROOT::Math::Mag(transverseFlightPath); // Warning: after the transverseFlightPath.Unit() statement, the // transverseFlightPath vector is CHANGED to a UNIT vector. double ipError = sqrt( ROOT::Math::Similarity(transverseFlightPath.Unit(),error) ); return Measurement1D (length, ipError); }
Definition at line 66 of file TrajectoryStateClosestToBeamLine.h.
Referenced by beamSpot(), and transverseImpactParameter().
FTS TrajectoryStateClosestToBeamLine::theFTS [private] |
Definition at line 64 of file TrajectoryStateClosestToBeamLine.h.
Referenced by trackStateAtPCA(), and transverseImpactParameter().
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().