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)
 
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)
 
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 26 of file TrajectoryMeasurement.h.

Member Typedef Documentation

Definition at line 30 of file TrajectoryMeasurement.h.

Definition at line 29 of file TrajectoryMeasurement.h.

Constructor & Destructor Documentation

TrajectoryMeasurement::TrajectoryMeasurement ( )
inline

Definition at line 32 of file TrajectoryMeasurement.h.

32 {}
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit 
)
inline

Constructor with forward predicted state, const TrackingRecHit*.

Definition at line 35 of file TrajectoryMeasurement.h.

36  :
37  theFwdPredictedState(fwdTrajectoryStateOnSurface),
38  theUpdatedState(fwdTrajectoryStateOnSurface),
39  theRecHit(aRecHit),
40  theLayer(nullptr), theEstimate(0) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate 
)
inline

Constructor with forward predicted state, RecHit, estimate.

Definition at line 43 of file TrajectoryMeasurement.h.

44  :
45  theFwdPredictedState(fwdTrajectoryStateOnSurface),
46  theUpdatedState(fwdTrajectoryStateOnSurface),
47  theRecHit(aRecHit),
48  theLayer(nullptr),
49  theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate,
const DetLayer layer 
)
inline

Definition at line 51 of file TrajectoryMeasurement.h.

53  :
54  theFwdPredictedState(std::move(fwdTrajectoryStateOnSurface)),
56  theRecHit(std::move(aRecHit)), theLayer(layer) ,
57  theEstimate(aEstimate){}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
def move(src, dest)
Definition: eostools.py:510
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit 
)
inline

Constructor with forward predicted & updated state, RecHit.

Definition at line 60 of file TrajectoryMeasurement.h.

62  :
63  theFwdPredictedState(std::move(fwdPredTrajectoryStateOnSurface)),
64  theUpdatedState(std::move(uTrajectoryStateOnSurface)),
65  theRecHit(std::move(aRecHit)), theLayer(nullptr),
66  theEstimate(0) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
def move(src, dest)
Definition: eostools.py:510
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate 
)
inline

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

Definition at line 69 of file TrajectoryMeasurement.h.

71  :
72  theFwdPredictedState(std::move(fwdPredTrajectoryStateOnSurface)),
73  theUpdatedState(std::move(uTrajectoryStateOnSurface)),
74  theRecHit(std::move(aRecHit)), theLayer(nullptr),
75  theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
def move(src, dest)
Definition: eostools.py:510
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate,
const DetLayer layer 
)
inline

Definition at line 76 of file TrajectoryMeasurement.h.

79  :
80  theFwdPredictedState(std::move(fwdPredTrajectoryStateOnSurface)),
81  theUpdatedState(std::move(uTrajectoryStateOnSurface)),
82  theRecHit(std::move(aRecHit)), theLayer(layer),
83  theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
ConstRecHitPointer theRecHit
def move(src, dest)
Definition: eostools.py:510
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  bwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit 
)
inline

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

Definition at line 87 of file TrajectoryMeasurement.h.

90  :
91  theFwdPredictedState(fwdPredTrajectoryStateOnSurface),
92  theBwdPredictedState(bwdPredTrajectoryStateOnSurface),
93  theUpdatedState(uTrajectoryStateOnSurface),
94  theRecHit(aRecHit),
95  theLayer(nullptr), theEstimate(0) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit
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 100 of file TrajectoryMeasurement.h.

103  :
104  theFwdPredictedState(fwdPredTrajectoryStateOnSurface),
105  theBwdPredictedState(bwdPredTrajectoryStateOnSurface),
106  theUpdatedState(uTrajectoryStateOnSurface),
107  theRecHit(aRecHit),
108  theLayer(nullptr), theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryStateOnSurface  fwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  bwdPredTrajectoryStateOnSurface,
TrajectoryStateOnSurface  uTrajectoryStateOnSurface,
ConstRecHitPointer  aRecHit,
float  aEstimate,
const DetLayer layer 
)
inline

Definition at line 110 of file TrajectoryMeasurement.h.

114  :
115  theFwdPredictedState(fwdPredTrajectoryStateOnSurface),
116  theBwdPredictedState(bwdPredTrajectoryStateOnSurface),
117  theUpdatedState(uTrajectoryStateOnSurface),
118  theRecHit(aRecHit),
119  theLayer(layer), theEstimate(aEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryMeasurement const &  rh)
inline

Definition at line 122 of file TrajectoryMeasurement.h.

122  :
123  theFwdPredictedState(rh.theFwdPredictedState),
124  theBwdPredictedState(rh.theBwdPredictedState),
125  theUpdatedState(rh.theUpdatedState),
126  theRecHit(rh.theRecHit), theLayer(rh.theLayer),
127  theEstimate(rh.theEstimate) {}
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit
TrajectoryMeasurement::TrajectoryMeasurement ( TrajectoryMeasurement &&  rh)
inline

Definition at line 141 of file TrajectoryMeasurement.h.

Member Function Documentation

TrajectoryStateOnSurface const& TrajectoryMeasurement::backwardPredictedState ( ) const
inline
float TrajectoryMeasurement::estimate ( ) const
inline
TrajectoryStateOnSurface const& TrajectoryMeasurement::forwardPredictedState ( ) const
inline
const DetLayer* TrajectoryMeasurement::layer ( ) const
inline
TrajectoryMeasurement& TrajectoryMeasurement::operator= ( TrajectoryMeasurement const &  rh)
inline

Definition at line 129 of file TrajectoryMeasurement.h.

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

129  {
130  theFwdPredictedState = rh.theFwdPredictedState;
131  theBwdPredictedState = rh.theBwdPredictedState;
132  theUpdatedState = rh.theUpdatedState;
133  theRecHit = rh.theRecHit;
134  theEstimate=rh.theEstimate;
135  theLayer=rh.theLayer;
136 
137  return *this;
138 
139  }
TrajectoryStateOnSurface theUpdatedState
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit
TrajectoryMeasurement& TrajectoryMeasurement::operator= ( TrajectoryMeasurement &&  rh)
inline

Definition at line 148 of file TrajectoryMeasurement.h.

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

148  {
149  using std::swap;
155  theLayer=rh.theLayer;
156 
157  return *this;
158 
159  }
TrajectoryStateOnSurface theUpdatedState
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:116
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
TrajectoryStateOnSurface theFwdPredictedState
TrajectoryStateOnSurface theBwdPredictedState
ConstRecHitPointer theRecHit
TrajectoryStateOnSurface const& TrajectoryMeasurement::predictedState ( ) const
inline
ConstRecHitPointer const& TrajectoryMeasurement::recHit ( ) const
inline

Definition at line 192 of file TrajectoryMeasurement.h.

References recHitP().

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

192  {
193  return recHitP();
194  }
ConstRecHitPointer const & recHitP() const
ConstRecHitPointer const& TrajectoryMeasurement::recHitP ( ) const
inline

Definition at line 188 of file TrajectoryMeasurement.h.

References theRecHit.

Referenced by recHit().

188  {
189  return theRecHit;
190  }
ConstRecHitPointer theRecHit
ConstRecHitPointer::element_type const& TrajectoryMeasurement::recHitR ( ) const
inline

Definition at line 184 of file TrajectoryMeasurement.h.

References theRecHit.

184  {
185  return *theRecHit;
186  }
ConstRecHitPointer theRecHit
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 180 of file TrajectoryMeasurement.h.

References theUpdatedState.

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

180  {
181  return theUpdatedState;
182  }
TrajectoryStateOnSurface theUpdatedState

Member Data Documentation

TrajectoryStateOnSurface TrajectoryMeasurement::theBwdPredictedState
private

Definition at line 204 of file TrajectoryMeasurement.h.

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

float TrajectoryMeasurement::theEstimate
private

Definition at line 208 of file TrajectoryMeasurement.h.

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

TrajectoryStateOnSurface TrajectoryMeasurement::theFwdPredictedState
private

Definition at line 203 of file TrajectoryMeasurement.h.

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

DetLayer const* TrajectoryMeasurement::theLayer
private

Definition at line 207 of file TrajectoryMeasurement.h.

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

ConstRecHitPointer TrajectoryMeasurement::theRecHit
private

Definition at line 206 of file TrajectoryMeasurement.h.

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

TrajectoryStateOnSurface TrajectoryMeasurement::theUpdatedState
private

Definition at line 205 of file TrajectoryMeasurement.h.

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