Go to the documentation of this file. 1 #ifndef RecoMuon_TrackingTools_MuonTrajectoryUpdator_H
2 #define RecoMuon_TrackingTools_MuonTrajectoryUpdator_H
97 return a->det()->surface().position().perp() <
b->det()->surface().position().perp();
105 return a->det()->surface().position().perp() >
b->det()->surface().position().perp();
113 return fabs(
a->globalPosition().z()) < fabs(
b->globalPosition().z());
121 return fabs(
a->globalPosition().z()) > fabs(
b->globalPosition().z());
virtual std::pair< bool, TrajectoryStateOnSurface > update(const TrajectoryMeasurement *measurement, Trajectory &trajectory, const Propagator *propagator)
update the Trajectory with the TrajectoryMeasurement
Ordering along increasing radius (for DT rechits)
void makeFirstTime()
reset the theFirstTSOSFlag
Ordering along decreasing zed (for CSC rechits)
TrajectoryStateOnSurface propagateState(const TrajectoryStateOnSurface &state, const TrajectoryMeasurement *measurement, const TransientTrackingRecHit::ConstRecHitPointer ¤t, const Propagator *propagator) const
bool operator()(const TransientTrackingRecHit::ConstRecHitPointer &a, const TransientTrackingRecHit::ConstRecHitPointer &b) const
double theMaxChi2
the max chi2 allowed
Ordering along increasing zed (for CSC rechits)
NavigationDirection theFitDirection
void setMaxChi2(double chi2)
set max chi2
MeasurementEstimator * theEstimator
void sort(TransientTrackingRecHit::ConstRecHitContainer &, const DetLayer *)
NavigationDirection fitDirection()
get the fit direction
std::vector< ConstRecHitPointer > ConstRecHitContainer
Ordering along decreasing radius (for DT rechits)
void setFitDirection(NavigationDirection fitDirection)
set fit direction
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
bool operator()(const TransientTrackingRecHit::ConstRecHitPointer &a, const TransientTrackingRecHit::ConstRecHitPointer &b) const
TrajectoryStateUpdator * theUpdator
bool operator()(const TransientTrackingRecHit::ConstRecHitPointer &a, const TransientTrackingRecHit::ConstRecHitPointer &b) const
const MeasurementEstimator * estimator() const
accasso at the propagator
virtual ~MuonTrajectoryUpdator()
Destructor.
const TrajectoryStateUpdator * measurementUpdator() const
MuonTrajectoryUpdator(const edm::ParameterSet &par, NavigationDirection fitDirection)
Constructor from Propagator and Parameter set.
bool operator()(const TransientTrackingRecHit::ConstRecHitPointer &a, const TransientTrackingRecHit::ConstRecHitPointer &b) const
TrajectoryMeasurement updateMeasurement(const TrajectoryStateOnSurface &propagatedTSOS, const TrajectoryStateOnSurface &lastUpdatedTSOS, const TransientTrackingRecHit::ConstRecHitPointer &recHit, const double &chi2, const DetLayer *detLayer, const TrajectoryMeasurement *initialMeasurement)
Return the trajectory measurement. It handles both the fw and the bw propagation.
double maxChi2() const
get the max chi2 allowed