#include <Propagator.h>
Private Attributes | |
PropagationDirection | theDir |
Basic tool for "propagation" of trajectory states to surfaces. If the starting state has an error matrix the errors will be also propagated. If you want to propagate just the parameters, construct a starting state that does not have errors. In case of propagation failure (e.g. when the trajectory does not cross the destination surface) and invalid state is returned. Always check the returned state with isValid() before using it!
The propagation can be "alongMomentum" or "oppositeToMomentum" (see setPropagationDirection() below). The difference between the two is the sign of energy loss: the trajectory momentum decreases "alongMomentum" and increases "oppositeToMomentum". In both directions extrapolation errors and multiple scattering errors increase. Propagation "oppositeToMomentum" is convenient for fitting a track "backwards", sterting from the last measurement.
The propagator interface promises to take you to "any surface" but you should check the concrete propagator you are using for additional limitations.
Definition at line 38 of file Propagator.h.
|
inline |
Definition at line 41 of file Propagator.h.
|
inlinevirtual |
Definition at line 43 of file Propagator.h.
|
pure virtual |
Implemented in GsfPropagatorWithMaterial, GsfPropagatorAdapter, PropagatorWithMaterial, RKTestPropagator, SteppingHelixPropagator, Geant4ePropagator, AnalyticalPropagator, NavPropagator, StraightLinePropagator, SmartPropagator, RKPropagatorInS, BeamHaloPropagator, cms::FastMuPropagator, RKPropagatorInR, RKPropagatorInZ, and cms::HICMuonPropagator.
Referenced by BeamHaloPropagator::BeamHaloPropagator(), MuonSimHitProducer::beginRun(), TrajectoryExtrapolatorToLine::extrapolate(), SmartPropagator::SmartPropagator(), PerigeeRefittedTrackState::trajectoryStateOnSurface(), and KinematicRefittedTrackState::trajectoryStateOnSurface().
|
pure virtual |
Implemented in GsfPropagatorWithMaterial, SmartPropagator, GsfPropagatorAdapter, BeamHaloPropagator, AnalyticalPropagator, PropagatorWithMaterial, RKTestPropagator, SteppingHelixPropagator, Geant4ePropagator, NavPropagator, StraightLinePropagator, cms::FastMuPropagator, RKPropagatorInS, cms::HICMuonPropagator, RKPropagatorInR, and RKPropagatorInZ.
Referenced by AnalyticalTrajectoryExtrapolatorToLine::extrapolateSingleState(), MuonCkfTrajectoryBuilder::findCompatibleMeasurements(), BaseCkfTrajectoryBuilder::findStateAndLayers(), KalmanAlignmentAlgorithm::initializeAlignmentSetups(), GsfPropagatorAdapter::magneticField(), SimpleTrackRefitter::refitTrack(), and BaseCkfTrajectoryBuilder::seedMeasurements().
|
virtual |
Propagate from a free state (e.g. position and momentum in in global cartesian coordinates) to a surface.Only use the generic method if the surface type (plane or cylinder) is not known at the calling point.
Reimplemented in GsfPropagatorWithMaterial, SmartPropagator, GsfPropagatorAdapter, BeamHaloPropagator, cms::FastMuPropagator, StraightLinePropagator, and cms::HICMuonPropagator.
Definition at line 9 of file Propagator.cc.
Referenced by CRackTrajectoryBuilder::AddHit(), CkfDebugger::analyseCompatibleMeasurements(), CkfDebugger::analyseRecHitExistance(), MuonAlignmentAnalyzer::analyze(), TestTrackHits::analyze(), MuonAlignment::analyze(), CosmicMuonTrajectoryBuilder::build(), SeedFromConsecutiveHitsCreator::buildSeed(), SeedFromGenericPairOrTriplet::buildSeed(), ForwardDetLayer::compatible(), MuDetRing::compatible(), BarrelDetLayer::compatible(), MuDetRod::compatible(), MuRingForwardDoubleLayer::compatible(), PixelRod::compatibleDetsV(), TrackEfficiencyMonitor::compatibleLayers(), CkfDebugger::computePulls(), SeedFromNuclearInteraction::construct(), OutInConversionSeedFinder::createSeed(), InOutConversionSeedFinder::createSeed(), TransverseImpactPointExtrapolator::doExtrapolation(), CSCPairResidualsConstraint::dphidzFromTrack(), PropagateToMuon::extrapolate(), AnalyticalImpactPointExtrapolator::extrapolateFullState(), AnalyticalTrajectoryExtrapolatorToLine::extrapolateFullState(), InOutConversionSeedFinder::fillClusterSeeds(), GsfTrackProducerBase::fillMode(), HLTMuonPointingFilter::filter(), SETFilter::findChi2(), TrackEfficiencyMonitor::findNextLayer(), GsfTrajectoryFitter::fit(), CosmicMuonSmoother::fit(), KFTrajectoryFitter::fit(), MuonRoadTrajectoryBuilder::GatherHits(), HDetIdAssociator::getTrajectory(), SeedFromProtoTrack::init(), CosmicMuonTrajectoryBuilder::intermediateState(), GeomDetCompatibilityChecker::isCompatible(), MuonRoadTrajectoryBuilder::makeTrajectories_0(), StateOnTrackerBound::operator()(), GsfPropagatorAdapter::propagate(), cms::HICMuonPropagator::propagate(), NavCylinder::propagate(), NavCone::propagate(), StraightLinePropagator::propagate(), NavPlane::propagate(), GsfPropagatorWithMaterial::propagate(), cms::FastMuPropagator::propagate(), CachedTrajectory::propagate(), BeamHaloPropagator::propagate(), propagate(), SmartPropagator::propagate(), RKTestPropagator::propagate(), MuonTrajectoryUpdator::propagateState(), TrackExtrapolator::propagateTrackToVolume(), SimpleTrackRefitter::refitTrack(), BaseCkfTrajectoryBuilder::seedMeasurements(), SimpleCosmicBONSeeder::seeds(), CosmicMuonSmoother::smooth(), CosmicMuonUtilities::stepPropagate(), TrackEfficiencyMonitor::trackerAcceptance(), GsfTrajectorySmoother::trajectories(), KFTrajectorySmoother::trajectories(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), and SETFilter::transform().
|
pure virtual |
Implemented in SteppingHelixPropagator, GsfPropagatorWithMaterial, SmartPropagator, RKTestPropagator, GsfPropagatorAdapter, BeamHaloPropagator, PropagatorWithMaterial, AnalyticalPropagator, NavPropagator, Geant4ePropagator, StraightLinePropagator, RKPropagatorInS, cms::FastMuPropagator, cms::HICMuonPropagator, RKPropagatorInR, and RKPropagatorInZ.
|
pure virtual |
Implemented in GsfPropagatorWithMaterial, SteppingHelixPropagator, SmartPropagator, GsfPropagatorAdapter, RKTestPropagator, PropagatorWithMaterial, BeamHaloPropagator, AnalyticalPropagator, NavPropagator, Geant4ePropagator, StraightLinePropagator, RKPropagatorInS, cms::FastMuPropagator, RKPropagatorInR, RKPropagatorInZ, and cms::HICMuonPropagator.
|
virtual |
The following three methods are equivalent to the corresponding methods above, but if the starting state is a TrajectoryStateOnSurface, it's better to use it as such rather than use just the FreeTrajectoryState part. It may help some concrete propagators.Only use the generic method if the surface type (plane or cylinder) is not known at the calling point.
Reimplemented in SmartPropagator, BeamHaloPropagator, GsfPropagatorWithMaterial, and GsfPropagatorAdapter.
Definition at line 25 of file Propagator.cc.
References propagate().
|
virtual |
Reimplemented in RKTestPropagator, SmartPropagator, BeamHaloPropagator, PropagatorWithMaterial, Geant4ePropagator, GsfPropagatorWithMaterial, RKPropagatorInS, NavPropagator, and GsfPropagatorAdapter.
Definition at line 46 of file Propagator.cc.
References TrajectoryStateOnSurface::freeState(), TrajectoryStateOnSurface::globalPosition(), propagate(), GloballyPositioned< T >::toLocal(), and detailsBasic3DVector::z.
|
virtual |
Reimplemented in SmartPropagator, BeamHaloPropagator, PropagatorWithMaterial, GsfPropagatorWithMaterial, Geant4ePropagator, and GsfPropagatorAdapter.
Definition at line 60 of file Propagator.cc.
References TrajectoryStateOnSurface::freeState(), and propagate().
|
virtual |
Reimplemented in SteppingHelixPropagator.
Definition at line 67 of file Propagator.cc.
References edm::hlt::Exception.
|
virtual |
The methods propagateWithPath() are identical to the corresponding methods propagate() in what concerns the resulting TrajectoryStateOnSurface, but they provide in addition the exact path length along the trajectory.Only use the generic method if the surface type (plane or cylinder) is not known at the calling point.
Reimplemented in GsfPropagatorWithMaterial, GsfPropagatorAdapter, SmartPropagator, BeamHaloPropagator, and StraightLinePropagator.
Definition at line 74 of file Propagator.cc.
Referenced by CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), MuonSimHitProducer::produce(), ReferenceTrajectory::propagate(), CosmicGenFilterHelix::propagateToCutCylinder(), NavCylinder::propagateWithPath(), NavCone::propagateWithPath(), NavPlane::propagateWithPath(), StraightLinePropagator::propagateWithPath(), GsfPropagatorAdapter::propagateWithPath(), GsfPropagatorWithMaterial::propagateWithPath(), PropagatorWithMaterial::propagateWithPath(), BeamHaloPropagator::propagateWithPath(), RKTestPropagator::propagateWithPath(), SmartPropagator::propagateWithPath(), and propagateWithPath().
|
pure virtual |
Implemented in GsfPropagatorWithMaterial, SteppingHelixPropagator, SmartPropagator, GsfPropagatorAdapter, BeamHaloPropagator, RKTestPropagator, PropagatorWithMaterial, Geant4ePropagator, AnalyticalPropagator, StraightLinePropagator, NavPropagator, cms::FastMuPropagator, RKPropagatorInS, cms::HICMuonPropagator, RKPropagatorInR, and RKPropagatorInZ.
|
pure virtual |
Implemented in GsfPropagatorWithMaterial, SteppingHelixPropagator, SmartPropagator, GsfPropagatorAdapter, BeamHaloPropagator, PropagatorWithMaterial, RKTestPropagator, Geant4ePropagator, AnalyticalPropagator, NavPropagator, cms::FastMuPropagator, StraightLinePropagator, RKPropagatorInS, cms::HICMuonPropagator, RKPropagatorInR, and RKPropagatorInZ.
|
virtual |
The following three methods are equivalent to the corresponding methods above, but if the starting state is a TrajectoryStateOnSurface, it's better to use it as such rather than use just the FreeTrajectoryState part. It may help some concrete propagators.Only use the generic method if the surface type (plane or cylinder) is not known at the calling point.
Reimplemented in SmartPropagator, BeamHaloPropagator, GsfPropagatorWithMaterial, and GsfPropagatorAdapter.
Definition at line 92 of file Propagator.cc.
References propagateWithPath().
|
virtual |
Reimplemented in SmartPropagator, BeamHaloPropagator, GsfPropagatorWithMaterial, Geant4ePropagator, PropagatorWithMaterial, GsfPropagatorAdapter, and NavPropagator.
Definition at line 112 of file Propagator.cc.
References TrajectoryStateOnSurface::freeState(), and propagateWithPath().
|
virtual |
Reimplemented in SmartPropagator, BeamHaloPropagator, PropagatorWithMaterial, GsfPropagatorWithMaterial, Geant4ePropagator, and GsfPropagatorAdapter.
Definition at line 121 of file Propagator.cc.
References TrajectoryStateOnSurface::freeState(), and propagateWithPath().
|
virtual |
Reimplemented in SteppingHelixPropagator.
Definition at line 128 of file Propagator.cc.
References edm::hlt::Exception.
|
inlinevirtual |
Returns the current value of the propagation direction. If you need to know the actual direction used for a given propagation in case "propagationDirection() == anyDirection", you should use propagateWithPath. A positive sign of path lengt means "alongMomentum", an egeative sign means "oppositeToMomentum".
Reimplemented in RKTestPropagator.
Definition at line 143 of file Propagator.h.
References theDir.
Referenced by LayerCrossingSide::barrelSide(), BeamHaloPropagator::clone(), OutInConversionSeedFinder::completeSeed(), GsfPropagatorWithMaterial::convoluteWithMaterial(), RoadSearchTrackCandidateMakerAlgorithm::createSeedTrajectory(), BeamHaloPropagator::directionCheck(), LayerCrossingSide::endcapSide(), KFTrajectoryFitter::fit(), PixelForwardLayer::groupedCompatibleDetsV(), TECLayer::groupedCompatibleDetsV(), TIBLayer::groupedCompatibleDetsV(), TOBLayer::groupedCompatibleDetsV(), TIDRing::groupedCompatibleDetsV(), CompositeTECWedge::groupedCompatibleDetsV(), TIBRing::groupedCompatibleDetsV(), CompositeTECPetal::groupedCompatibleDetsV(), PixelBarrelLayer::groupedCompatibleDetsV(), TOBRod::groupedCompatibleDetsV(), PixelBlade::groupedCompatibleDetsV(), StraightLinePropagator::jacobian(), PropagatorWithMaterial::materialAtSource(), GsfPropagatorWithMaterial::materialAtSource(), TIDLayer::orderAndMergeLevels(), Geant4ePropagator::propagate(), SteppingHelixPropagator::propagate(), RKPropagatorInS::propagateParametersOnCylinder(), StraightLinePropagator::propagateParametersOnCylinder(), RKPropagatorInS::propagateParametersOnPlane(), RKPropagatorInS::propagateWithPath(), PropagatorWithMaterial::propagateWithPath(), GsfPropagatorWithMaterial::propagateWithPath(), RKTestPropagator::propagationDirection(), KalmanAlignmentTrackRefitter::refitSingleTracklet(), TIDLayer::ringIndicesByCrossingProximity(), SteppingHelixPropagator::setIState(), OutInConversionSeedFinder::startSeed(), GsfTrajectorySmoother::trajectories(), and KFTrajectorySmoother::trajectories().
|
inlinevirtual |
Set the maximal change of direction (integrated along the path) for any single propagation. If reaching of the destination surface requires change of direction that exceeds this value the Propagator returns an invalid state. For example, a track may reach a forward plane after many spirals, which may be undesirable for a track reconstructor. Setting this value to pi will force the propagation to fail. The default value is "no limit". The method returnd true if the concrete propagator respects the limit, false otherwise.
Reimplemented in GsfPropagatorWithMaterial, GsfPropagatorAdapter, PropagatorWithMaterial, and AnalyticalPropagator.
Definition at line 157 of file Propagator.h.
Referenced by PropagatorWithMaterial::setMaxDirectionChange(), and GsfPropagatorAdapter::setMaxDirectionChange().
|
inlinevirtual |
The propagation direction can now be set for every propagator. There is no more distinction between unidirectional and bidirectional at class level. The value "anyDiriction" for PropagationDirection provides the functionality of the ex-BidirectionalPropagator. The values "alongMomentum" and "oppositeToMomentum" provide the functionality of the ex-UnidirectionalPropagator.
Reimplemented in GsfPropagatorWithMaterial, GsfPropagatorAdapter, PropagatorWithMaterial, RKTestPropagator, SmartPropagator, and BeamHaloPropagator.
Definition at line 132 of file Propagator.h.
Referenced by AnalyticalImpactPointExtrapolator::AnalyticalImpactPointExtrapolator(), TrackEfficiencyMonitor::compatibleLayers(), BeamHaloPropagator::directionCheck(), HLTMuonPointingFilter::filter(), TrackEfficiencyMonitor::findNextLayer(), SimpleNavigableLayer::propagator(), BeamHaloPropagator::setPropagationDirection(), SmartPropagator::setPropagationDirection(), RKTestPropagator::setPropagationDirection(), PropagatorWithMaterial::setPropagationDirection(), GsfPropagatorAdapter::setPropagationDirection(), GsfPropagatorWithMaterial::setPropagationDirection(), SetPropagationDirection::SetPropagationDirection(), TrackEfficiencyMonitor::trackerAcceptance(), KFTrajectorySmoother::trajectories(), TransverseImpactPointExtrapolator::TransverseImpactPointExtrapolator(), TSCBLBuilderWithPropagator::TSCBLBuilderWithPropagator(), and SetPropagationDirection::~SetPropagationDirection().
|
mutableprivate |
Definition at line 165 of file Propagator.h.
Referenced by propagationDirection(), and setPropagationDirection().