CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
TrajectoryMeasurement Class Reference

#include <TrajectoryMeasurement.h>

Public Types

using ConstRecHitPointer = TrackingRecHit::ConstRecHitPointer
 
using RecHitPointer = TrackingRecHit::RecHitPointer
 

Public Member Functions

TrajectoryStateOnSurface const & backwardPredictedState () const
 Access to backward predicted state (from smoother) More...
 
float estimate () const
 
TrajectoryStateOnSurface const & forwardPredictedState () const
 Access to forward predicted state (from fitter or builder) More...
 
const DetLayerlayer () const
 
TrajectoryMeasurementoperator= (TrajectoryMeasurement const &rh)
 
TrajectoryMeasurementoperator= (TrajectoryMeasurement &&rh) noexcept
 
TrajectoryStateOnSurface const & predictedState () const
 
ConstRecHitPointer const & recHit () const
 
ConstRecHitPointer const & recHitP () const
 
ConstRecHitPointer::element_type const & recHitR () const
 
 TrajectoryMeasurement ()
 
 TrajectoryMeasurement (TrajectoryStateOnSurface fwdTrajectoryStateOnSurface, ConstRecHitPointer aRecHit)
 Constructor with forward predicted state, const TrackingRecHit*. More...
 
 TrajectoryMeasurement (TrajectoryStateOnSurface fwdTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate)
 Constructor with forward predicted state, RecHit, estimate. More...
 
 TrajectoryMeasurement (TrajectoryStateOnSurface fwdTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate, const DetLayer *layer)
 
 TrajectoryMeasurement (TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit)
 Constructor with forward predicted & updated state, RecHit. More...
 
 TrajectoryMeasurement (TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate)
 Constructor with forward predicted & updated state, RecHit, estimate. More...
 
 TrajectoryMeasurement (TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate, const DetLayer *layer)
 
 TrajectoryMeasurement (TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface bwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit)
 
 TrajectoryMeasurement (TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface bwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate)
 
 TrajectoryMeasurement (TrajectoryStateOnSurface fwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface bwdPredTrajectoryStateOnSurface, TrajectoryStateOnSurface uTrajectoryStateOnSurface, ConstRecHitPointer aRecHit, float aEstimate, const DetLayer *layer)
 
 TrajectoryMeasurement (TrajectoryMeasurement const &rh)
 
 TrajectoryMeasurement (TrajectoryMeasurement &&rh) noexcept
 
TrajectoryStateOnSurface const & updatedState () const
 

Private Attributes

TrajectoryStateOnSurface theBwdPredictedState
 
float theEstimate
 
TrajectoryStateOnSurface theFwdPredictedState
 
DetLayer const * theLayer
 
ConstRecHitPointer theRecHit
 
TrajectoryStateOnSurface theUpdatedState
 

Detailed Description

The TrajectoryMeasurement contains the full information about the measurement of a trajectory by a Det, namely

A container of TrajectoryMeasurements is the result of querying a Det for measurements compatible with a TrajectoryState. A reconstructed track also consists of an ordered collection of TrajectoryMeasurements.

Definition at line 25 of file TrajectoryMeasurement.h.

Member Typedef Documentation

◆ ConstRecHitPointer

Definition at line 28 of file TrajectoryMeasurement.h.

◆ RecHitPointer

Definition at line 27 of file TrajectoryMeasurement.h.

Constructor & Destructor Documentation

◆ TrajectoryMeasurement() [1/12]

TrajectoryMeasurement::TrajectoryMeasurement ( )
inline

Definition at line 30 of file TrajectoryMeasurement.h.

30 {}

◆ TrajectoryMeasurement() [2/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit 
)
inline

Constructor with forward predicted state, const TrackingRecHit*.

Definition at line 33 of file TrajectoryMeasurement.h.

34  : theFwdPredictedState(fwdTrajectoryStateOnSurface),
35  theUpdatedState(fwdTrajectoryStateOnSurface),
36  theRecHit(aRecHit),
37  theLayer(nullptr),
38  theEstimate(0) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit

◆ TrajectoryMeasurement() [3/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate 
)
inline

Constructor with forward predicted state, RecHit, estimate.

Definition at line 41 of file TrajectoryMeasurement.h.

44  : theFwdPredictedState(fwdTrajectoryStateOnSurface),
45  theUpdatedState(fwdTrajectoryStateOnSurface),
46  theRecHit(aRecHit),
47  theLayer(nullptr),
48  theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit

◆ TrajectoryMeasurement() [4/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate,
const DetLayer layer 
)
inline

Definition at line 50 of file TrajectoryMeasurement.h.

54  : theFwdPredictedState(std::move(fwdTrajectoryStateOnSurface)),
56  theRecHit(std::move(aRecHit)),
57  theLayer(layer),
58  theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
const DetLayer * layer() const
def move(src, dest)
Definition: eostools.py:511

◆ TrajectoryMeasurement() [5/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit 
)
inline

Constructor with forward predicted & updated state, RecHit.

Definition at line 61 of file TrajectoryMeasurement.h.

64  : theFwdPredictedState(std::move(fwdPredTrajectoryStateOnSurface)),
65  theUpdatedState(std::move(uTrajectoryStateOnSurface)),
66  theRecHit(std::move(aRecHit)),
67  theLayer(nullptr),
68  theEstimate(0) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
def move(src, dest)
Definition: eostools.py:511

◆ TrajectoryMeasurement() [6/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate 
)
inline

Constructor with forward predicted & updated state, RecHit, estimate.

Definition at line 71 of file TrajectoryMeasurement.h.

75  : theFwdPredictedState(std::move(fwdPredTrajectoryStateOnSurface)),
76  theUpdatedState(std::move(uTrajectoryStateOnSurface)),
77  theRecHit(std::move(aRecHit)),
78  theLayer(nullptr),
79  theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
def move(src, dest)
Definition: eostools.py:511

◆ TrajectoryMeasurement() [7/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate,
const DetLayer layer 
)
inline

Definition at line 80 of file TrajectoryMeasurement.h.

85  : theFwdPredictedState(std::move(fwdPredTrajectoryStateOnSurface)),
86  theUpdatedState(std::move(uTrajectoryStateOnSurface)),
87  theRecHit(std::move(aRecHit)),
88  theLayer(layer),
89  theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
const DetLayer * layer() const
def move(src, dest)
Definition: eostools.py:511

◆ TrajectoryMeasurement() [8/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  bwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit 
)
inline

Constructor with forward predicted, backward predicted & updated state, RecHit

Definition at line 93 of file TrajectoryMeasurement.h.

97  : theFwdPredictedState(fwdPredTrajectoryStateOnSurface),
98  theBwdPredictedState(bwdPredTrajectoryStateOnSurface),
99  theUpdatedState(uTrajectoryStateOnSurface),
100  theRecHit(aRecHit),
101  theLayer(nullptr),
102  theEstimate(0) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit

◆ TrajectoryMeasurement() [9/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  bwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate 
)
inline

Constructor with forward predicted, backward predicted & updated state, RecHit, estimate

Definition at line 107 of file TrajectoryMeasurement.h.

112  : theFwdPredictedState(fwdPredTrajectoryStateOnSurface),
113  theBwdPredictedState(bwdPredTrajectoryStateOnSurface),
114  theUpdatedState(uTrajectoryStateOnSurface),
115  theRecHit(aRecHit),
116  theLayer(nullptr),
117  theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit

◆ TrajectoryMeasurement() [10/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  bwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate,
const DetLayer layer 
)
inline

Definition at line 119 of file TrajectoryMeasurement.h.

125  : theFwdPredictedState(fwdPredTrajectoryStateOnSurface),
126  theBwdPredictedState(bwdPredTrajectoryStateOnSurface),
127  theUpdatedState(uTrajectoryStateOnSurface),
128  theRecHit(aRecHit),
129  theLayer(layer),
130  theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit
const DetLayer * layer() const

◆ TrajectoryMeasurement() [11/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryMeasurement const &  rh)
inline

Definition at line 132 of file TrajectoryMeasurement.h.

133  : theFwdPredictedState(rh.theFwdPredictedState),
134  theBwdPredictedState(rh.theBwdPredictedState),
135  theUpdatedState(rh.theUpdatedState),
136  theRecHit(rh.theRecHit),
137  theLayer(rh.theLayer),
138  theEstimate(rh.theEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit

◆ TrajectoryMeasurement() [12/12]

TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryMeasurement &&  rh)
inlinenoexcept

Definition at line 151 of file TrajectoryMeasurement.h.

Member Function Documentation

◆ backwardPredictedState()

TrajectoryStateOnSurface const& TrajectoryMeasurement::backwardPredictedState ( ) const
inline

◆ estimate()

float TrajectoryMeasurement::estimate ( ) const
inline

◆ forwardPredictedState()

TrajectoryStateOnSurface const& TrajectoryMeasurement::forwardPredictedState ( ) const
inline

◆ layer()

const DetLayer* TrajectoryMeasurement::layer ( ) const
inline

◆ operator=() [1/2]

TrajectoryMeasurement& TrajectoryMeasurement::operator= ( TrajectoryMeasurement const &  rh)
inline

Definition at line 140 of file TrajectoryMeasurement.h.

References theBwdPredictedState, theEstimate, theFwdPredictedState, theLayer, theRecHit, and theUpdatedState.

140  {
141  theFwdPredictedState = rh.theFwdPredictedState;
142  theBwdPredictedState = rh.theBwdPredictedState;
143  theUpdatedState = rh.theUpdatedState;
144  theRecHit = rh.theRecHit;
145  theEstimate = rh.theEstimate;
146  theLayer = rh.theLayer;
147 
148  return *this;
149  }
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit

◆ operator=() [2/2]

TrajectoryMeasurement& TrajectoryMeasurement::operator= ( TrajectoryMeasurement &&  rh)
inlinenoexcept

Definition at line 159 of file TrajectoryMeasurement.h.

References edm::swap(), std::swap(), theBwdPredictedState, theEstimate, theFwdPredictedState, theLayer, theRecHit, and theUpdatedState.

159  {
160  using std::swap;
164  swap(theRecHit, rh.theRecHit);
166  theLayer = rh.theLayer;
167 
168  return *this;
169  }
TrajectoryStateOnSurface theUpdatedState
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit

◆ predictedState()

TrajectoryStateOnSurface const& TrajectoryMeasurement::predictedState ( ) const
inline

◆ recHit()

ConstRecHitPointer const& TrajectoryMeasurement::recHit ( ) const
inline

Definition at line 190 of file TrajectoryMeasurement.h.

References recHitP().

Referenced by BaseCkfTrajectoryBuilder::addToResult(), CkfDebugger::analyseCompatibleMeasurements(), SiPixelHitEfficiencySource::analyze(), HitEff::analyze(), MkFitOutputConverter::backwardFit(), TempTrajectory::badForCCC(), Trajectory::badForCCC(), CosmicMuonTrajectoryBuilder::buildSecondHalf(), MuonTrackLoader::buildTrackExtra(), TrackExtenderWithMTDT< TrackCollection >::buildTrackExtra(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), DAFTrackProducerAlgorithm::checkHits(), reco::modules::TrackerTrackHitFilter::checkPXLCorrClustCharge(), CollinearFitAtTM2::CollinearFitAtTM2(), GsfTrackProducerBase::computeModeAtTM(), CkfDebugger::correctMeas(), PrintoutHelper::dumpMeasurement(), AlignmentMonitorTemplate::event(), AlignmentMonitorGeneric::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorTracksFromTrajectories::event(), InOutConversionSeedFinder::fillClusterSeeds(), ApeEstimator::fillHitVariables(), NuclearInteractionFinder::fillSeeds(), ApeEstimator::fillTrackVariables(), DynamicTruncation::filter(), MuonBestMeasurementFinder::findBestMeasurement(), MuonCkfTrajectoryBuilder::findCompatibleMeasurements(), NuclearInteractionFinder::findCompatibleMeasurements(), InOutConversionSeedFinder::findSeeds(), CollinearFitAtTM::fit(), MeasurementByLayerGrouper::getDetLayer(), NuclearTrackCorrector::getNewTrackExtra(), TransientInitialStateEstimator::innerState(), CRackTrajectoryBuilder::innerState(), TrajectorySegmentBuilder::lockMeasurement(), MuonBestMeasurementFinder::lookAtSubRecHits(), MuonResidualsFromTrack::MuonResidualsFromTrack(), CkfDebugger::nextCorrectHits(), SeedingOTEDProducer::isInvalid::operator()(), PFGsfHelper::PFGsfHelper(), TempTrajectory::pop(), TkAlCaOverlapTagger::produce(), MuonReSeeder::produce(), AlignmentMuonHIPTrajectorySelector::produce(), TrackerToMuonPropagator::produce(), MuonTrajectoryUpdator::propagateState(), TempTrajectory::pushAux(), Trajectory::pushAux(), GsfTrackProducerBase::putInEvt(), TrackProducerWithSCAssociation::putInEvt(), CosmicMuonTrajectoryBuilder::reverseTrajectory(), HIPAlignmentAlgorithm::run(), StandAloneMuonTrajectoryBuilder::trajectories(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), CosmicMuonTrajectoryBuilder::unusedHits(), MuonTrajectoryUpdator::update(), and TrajectorySegmentBuilder::updateTrajectory().

190 { return recHitP(); }
ConstRecHitPointer const & recHitP() const

◆ recHitP()

ConstRecHitPointer const& TrajectoryMeasurement::recHitP ( ) const
inline

Definition at line 188 of file TrajectoryMeasurement.h.

References theRecHit.

Referenced by recHit().

188 { return theRecHit; }
ConstRecHitPointer theRecHit

◆ recHitR()

ConstRecHitPointer::element_type const& TrajectoryMeasurement::recHitR ( ) const
inline

Definition at line 186 of file TrajectoryMeasurement.h.

References theRecHit.

186 { return *theRecHit; }
ConstRecHitPointer theRecHit

◆ updatedState()

TrajectoryStateOnSurface const& TrajectoryMeasurement::updatedState ( ) const
inline

Access to updated state (combination of forward predicted state and hit for fitter, + backward predicted state for smoother)

Definition at line 184 of file TrajectoryMeasurement.h.

References theUpdatedState.

Referenced by CosmicTrajectoryBuilder::AddHit(), CRackTrajectoryBuilder::AddHit(), GroupedCkfTrajectoryBuilder::advanceOneLayer(), CkfDebugger::analyseCompatibleMeasurements(), CkfDebugger::analyseRecHitNotFound(), MkFitOutputConverter::backwardFit(), GroupedCkfTrajectoryBuilder::backwardFit(), TempTrajectory::badForCCC(), Trajectory::badForCCC(), CosmicMuonTrajectoryBuilder::build(), CosmicMuonTrajectoryBuilder::buildSecondHalf(), DAFTrackProducerAlgorithm::buildTrack(), MuonTrackLoader::buildTrackExtra(), TrackExtenderWithMTDT< TrackCollection >::buildTrackExtra(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), reco::modules::TrackerTrackHitFilter::checkPXLCorrClustCharge(), CollinearFitAtTM2::CollinearFitAtTM2(), GsfTrackProducerBase::computeModeAtTM(), GlobalTrackerMuonAlignment::debugTrajectory(), PrintoutHelper::dumpMeasurement(), CosmicMuonTrajectoryBuilder::estimateDirection(), InOutConversionSeedFinder::fillClusterSeeds(), NuclearInteractionFinder::fillSeeds(), MuonCkfTrajectoryBuilder::findCompatibleMeasurements(), NuclearInteractionFinder::findCompatibleMeasurements(), BaseCkfTrajectoryBuilder::findStateAndLayers(), CollinearFitAtTM::fit(), GsfTrajectoryFitter::fitOne(), KFTrajectoryFitter::fitOne(), CosmicMuonTrajectoryBuilder::flipTrajectory(), NuclearTrackCorrector::getNewTrackExtra(), ConversionSeedFilter::getTSOS(), TransientInitialStateEstimator::innerState(), CRackTrajectoryBuilder::innerState(), LowPtGsfElectronSeedProducer::lightGsfTracking(), MuonResidualsFromTrack::MuonResidualsFromTrack(), PFGsfHelper::PFGsfHelper(), MuonReSeeder::produce(), GoodSeedProducer::produce(), GsfTrackProducerBase::putInEvt(), TrackProducerWithSCAssociation::putInEvt(), TrajectorySegmentBuilder::redoMeasurements(), CRackTrajectoryBuilder::run(), StandAloneMuonRefitter::singleRefit(), CRackTrajectoryBuilder::SortHits(), Traj2TrackHits::split(), ThresholdPtTrajectoryFilter::test(), MinPtTrajectoryFilter::test(), and CosmicMuonTrajectoryBuilder::trajectories().

184 { return theUpdatedState; }
TrajectoryStateOnSurface theUpdatedState

Member Data Documentation

◆ theBwdPredictedState

TrajectoryStateOnSurface TrajectoryMeasurement::theBwdPredictedState
private

Definition at line 200 of file TrajectoryMeasurement.h.

Referenced by backwardPredictedState(), and operator=().

◆ theEstimate

float TrajectoryMeasurement::theEstimate
private

Definition at line 204 of file TrajectoryMeasurement.h.

Referenced by estimate(), and operator=().

◆ theFwdPredictedState

TrajectoryStateOnSurface TrajectoryMeasurement::theFwdPredictedState
private

Definition at line 199 of file TrajectoryMeasurement.h.

Referenced by forwardPredictedState(), operator=(), and predictedState().

◆ theLayer

DetLayer const* TrajectoryMeasurement::theLayer
private

Definition at line 203 of file TrajectoryMeasurement.h.

Referenced by layer(), and operator=().

◆ theRecHit

ConstRecHitPointer TrajectoryMeasurement::theRecHit
private

Definition at line 202 of file TrajectoryMeasurement.h.

Referenced by operator=(), recHitP(), and recHitR().

◆ theUpdatedState

TrajectoryStateOnSurface TrajectoryMeasurement::theUpdatedState
private

Definition at line 201 of file TrajectoryMeasurement.h.

Referenced by operator=(), and updatedState().