#include <Propagator.h>
Public Member Functions | |
virtual Propagator * | clone () const =0 |
virtual const MagneticField * | magneticField () const =0 |
template<typename STA , typename SUR > | |
TrajectoryStateOnSurface | propagate (STA const &state, SUR const &surface) const |
virtual FreeTrajectoryState | propagate (const FreeTrajectoryState &ftsStart, const GlobalPoint &pDest) const final |
virtual FreeTrajectoryState | propagate (const FreeTrajectoryState &ftsStart, const GlobalPoint &pDest1, const GlobalPoint &pDest2) const final |
virtual FreeTrajectoryState | propagate (const FreeTrajectoryState &ftsStart, const reco::BeamSpot &beamSpot) const final |
virtual std::pair < TrajectoryStateOnSurface, double > | propagateWithPath (const FreeTrajectoryState &, const Surface &) const final |
virtual std::pair < TrajectoryStateOnSurface, double > | propagateWithPath (const FreeTrajectoryState &, const Plane &) const =0 |
virtual std::pair < TrajectoryStateOnSurface, double > | propagateWithPath (const FreeTrajectoryState &, const Cylinder &) const =0 |
virtual std::pair < TrajectoryStateOnSurface, double > | propagateWithPath (const TrajectoryStateOnSurface &tsos, const Surface &sur) const final |
virtual std::pair < TrajectoryStateOnSurface, double > | propagateWithPath (const TrajectoryStateOnSurface &tsos, const Plane &sur) const |
virtual std::pair < TrajectoryStateOnSurface, double > | propagateWithPath (const TrajectoryStateOnSurface &tsos, const Cylinder &sur) const |
virtual std::pair < FreeTrajectoryState, double > | propagateWithPath (const FreeTrajectoryState &ftsStart, const GlobalPoint &pDest) const |
virtual std::pair < FreeTrajectoryState, double > | propagateWithPath (const FreeTrajectoryState &ftsStart, const GlobalPoint &pDest1, const GlobalPoint &pDest2) const |
Propagate to PCA to a line (given by 2 points) given a starting point. More... | |
virtual std::pair < FreeTrajectoryState, double > | propagateWithPath (const FreeTrajectoryState &ftsStart, const reco::BeamSpot &beamSpot) const |
Propagate to PCA to a line (given by beamSpot position and slope) given a starting point. More... | |
virtual PropagationDirection | propagationDirection () const final |
Propagator (PropagationDirection dir=alongMomentum) | |
virtual bool | setMaxDirectionChange (float phiMax) |
virtual void | setPropagationDirection (PropagationDirection dir) |
virtual | ~Propagator () |
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.
derived classes have to implement the PropagateWithPath for Plane and Cylinder
Definition at line 44 of file Propagator.h.
|
inlineexplicit |
Definition at line 46 of file Propagator.h.
|
virtual |
Definition at line 8 of file Propagator.cc.
|
pure virtual |
Implemented in PropagatorWithMaterial, GsfPropagatorWithMaterial, Geant4ePropagator, SteppingHelixPropagator, AnalyticalPropagator, SmartPropagator, GsfPropagatorAdapter, BeamHaloPropagator, RKPropagatorInS, StraightLinePropagator, RKPropagatorInR, and RKPropagatorInZ.
Referenced by BeamHaloPropagator::BeamHaloPropagator(), MuonSimHitProducer::beginRun(), TrackEfficiencyMonitor::compatibleLayers(), TrajectoryExtrapolatorToLine::extrapolate(), TrackEfficiencyMonitor::findNextLayer(), KFTrajectorySmoother::KFTrajectorySmoother(), SeedingOTEDProducer::run(), SetPropagationDirection(), SmartPropagator::SmartPropagator(), TrackEfficiencyMonitor::trackerAcceptance(), PerigeeRefittedTrackState::trajectoryStateOnSurface(), and KinematicRefittedTrackState::trajectoryStateOnSurface().
|
pure virtual |
Implemented in AnalyticalPropagator, SmartPropagator, PropagatorWithMaterial, GsfPropagatorWithMaterial, SteppingHelixPropagator, Geant4ePropagator, BeamHaloPropagator, GsfPropagatorAdapter, RKPropagatorInS, StraightLinePropagator, RKPropagatorInR, and RKPropagatorInZ.
Referenced by MkFitOutputConverter::backwardFit(), AnalyticalTrajectoryExtrapolatorToLine::extrapolateSingleState(), TransientInitialStateEstimator::innerState(), GsfPropagatorAdapter::magneticField(), and BaseCkfTrajectoryBuilder::seedMeasurements().
|
inline |
Definition at line 50 of file Propagator.h.
References propagateWithPath().
Referenced by CosmicTrajectoryBuilder::AddHit(), CRackTrajectoryBuilder::AddHit(), CkfDebugger::analyseCompatibleMeasurements(), CkfDebugger::analyseRecHitExistance(), MuonAlignmentAnalyzer::analyze(), ElectronSeedAnalyzer::analyze(), TestTrackHits::analyze(), OverlapValidation::analyzeTrajectory(), CosmicMuonTrajectoryBuilder::build(), SeedFromConsecutiveHitsCreator::buildSeed(), SeedFromGenericPairOrTriplet::buildSeed(), SeedForPhotonConversion1Leg::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeedBool(), ConversionProducer::checkPhi(), MTDSectorForwardDoubleLayer::compatible(), MTDDetRing::compatible(), MuDetRing::compatible(), BarrelDetLayer::compatible(), ForwardDetLayer::compatible(), MTDDetTray::compatible(), MuDetRod::compatible(), MTDDetSector::compatible(), MTDRingForwardDoubleLayer::compatible(), MuRingForwardDoubleLayer::compatible(), PixelRod::compatibleDetsV(), TrackEfficiencyMonitor::compatibleLayers(), CkfDebugger::computePulls(), SeedFromNuclearInteraction::construct(), OutInConversionSeedFinder::createSeed(), InOutConversionSeedFinder::createSeed(), MultipleScatteringGeometry::detLayers(), TransverseImpactPointExtrapolator::doExtrapolation(), CSCPairResidualsConstraint::dphidzFromTrack(), PropagateToMuon::extrapolate(), hltriggeroffline::PropagateToMuon::extrapolate(), AnalyticalImpactPointExtrapolator::extrapolateFullState(), AnalyticalTrajectoryExtrapolatorToLine::extrapolateFullState(), InOutConversionSeedFinder::fillClusterSeeds(), GsfTrackProducerBase::fillMode(), ConversionTrackEcalImpactPoint::find(), SETFilter::findChi2(), TrackEfficiencyMonitor::findNextLayer(), CosmicMuonSmoother::fit(), GsfTrajectoryFitter::fitOne(), ConversionProducer::getTrackImpactPosition(), HDetIdAssociator::getTrajectory(), TrajSeedMatcher::getTrajStateFromPoint(), TrajSeedMatcher::getTrajStateFromVtx(), SeedFromProtoTrack::init(), CosmicMuonTrajectoryBuilder::intermediateState(), GeomDetCompatibilityChecker::isCompatible(), ticl::SeedingRegionByTracks::makeRegions(), SeedMatcher::matchSimTrack(), HGCalGeometry::neighborZ(), StateOnTrackerBound::operator()(), SeedProducerFromSoA::produce(), ConvBremSeedProducer::produce(), TrackerToMuonPropagator::produce(), TrackingRecHitPropagator::project(), RecHitPropagator::propagate(), HGCal_helpers::SimpleTrackPropagator::propagate(), CachedTrajectory::propagate(), SeedingOTEDProducer::propagateAndUpdate(), spr::propagateCalo(), spr::propagateHCAL(), MuonTrajectoryUpdator::propagateState(), cms::MuonTCMETValueMapProducer::propagateTrack(), spr::propagateTrackerEnd(), TCMETAlgo::propagateTrackToCalorimeterFace(), TrackExtrapolator::propagateTrackToVolume(), TkConvValidator::recalculateMomentumAtFittedVertex(), KFBasedPixelFitter::run(), CRackTrajectoryBuilder::run(), BaseCkfTrajectoryBuilder::seedMeasurements(), SeedGeneratorForCRack::seeds(), SeedGeneratorForCosmics::seeds(), SimpleCosmicBONSeeder::seeds(), CosmicMuonSmoother::smooth(), CRackTrajectoryBuilder::SortHits(), CosmicMuonUtilities::stepPropagate(), TrackEfficiencyMonitor::testSTATracks(), TrackEfficiencyMonitor::testTrackerTracks(), TracktoRPC::thePoints(), TrackEfficiencyMonitor::trackerAcceptance(), KFTrajectorySmoother::trajectory(), TrajectoryAtInvalidHit::TrajectoryAtInvalidHit(), PerigeeRefittedTrackState::trajectoryStateOnSurface(), KinematicRefittedTrackState::trajectoryStateOnSurface(), and SETFilter::transform().
|
inlinefinalvirtual |
Definition at line 109 of file Propagator.h.
References propagateWithPath().
|
inlinefinalvirtual |
Definition at line 112 of file Propagator.h.
References propagateWithPath().
|
inlinefinalvirtual |
Definition at line 117 of file Propagator.h.
References beam_dqm_sourceclient-live_cfg::beamSpot, and propagateWithPath().
|
finalvirtual |
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.
Definition at line 10 of file Propagator.cc.
Referenced by OverlapValidation::analyzeTrajectory(), MkFitOutputConverter::backwardFit(), TrackExtenderWithMTDT< TrackCollection >::buildTrack(), MkFitOutputConverter::convertInnermostState(), CSCTimingExtractor::fillTiming(), DTTimingExtractor::fillTiming(), propagate(), ReferenceTrajectory::propagate(), CosmicGenFilterHelix::propagateToCutCylinder(), GsfPropagatorAdapter::propagateWithPath(), PropagatorWithMaterial::propagateWithPath(), BeamHaloPropagator::propagateWithPath(), SmartPropagator::propagateWithPath(), and propagateWithPath().
|
pure virtual |
|
pure virtual |
|
finalvirtual |
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.
Definition at line 26 of file Propagator.cc.
References propagateWithPath().
|
inlinevirtual |
Reimplemented in SmartPropagator, Geant4ePropagator, PropagatorWithMaterial, GsfPropagatorWithMaterial, and GsfPropagatorAdapter.
Definition at line 86 of file Propagator.h.
References propagateWithPath().
|
inlinevirtual |
Reimplemented in SmartPropagator, Geant4ePropagator, PropagatorWithMaterial, GsfPropagatorWithMaterial, and GsfPropagatorAdapter.
Definition at line 91 of file Propagator.h.
References TrajectoryStateOnSurface::freeState(), and propagateWithPath().
|
virtual |
implemented by Stepping Helix Propagate to PCA to point given a starting point
Reimplemented in SteppingHelixPropagator.
Definition at line 42 of file Propagator.cc.
References Exception.
|
virtual |
Propagate to PCA to a line (given by 2 points) given a starting point.
Reimplemented in SteppingHelixPropagator.
Definition at line 47 of file Propagator.cc.
References Exception.
|
virtual |
Propagate to PCA to a line (given by beamSpot position and slope) given a starting point.
Reimplemented in SteppingHelixPropagator.
Definition at line 53 of file Propagator.cc.
References Exception.
|
inlinefinalvirtual |
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".
Definition at line 139 of file Propagator.h.
References theDir.
Referenced by GroupedCkfTrajectoryBuilder::advanceOneLayer(), LayerCrossingSide::barrelSide(), BeamHaloPropagator::clone(), OutInConversionSeedFinder::completeSeed(), Geant4ePropagator::configurePropagation(), GsfPropagatorWithMaterial::convoluteWithMaterial(), SeedingOTEDProducer::createSeed(), BeamHaloPropagator::directionCheck(), LayerCrossingSide::endcapSide(), PixelForwardLayer::groupedCompatibleDetsV(), PixelForwardLayerPhase1::groupedCompatibleDetsV(), TECLayer::groupedCompatibleDetsV(), TBLayer::groupedCompatibleDetsV(), CompositeTECWedge::groupedCompatibleDetsV(), TIBRing::groupedCompatibleDetsV(), TIDRing::groupedCompatibleDetsV(), Phase2EndcapLayer::groupedCompatibleDetsV(), Phase2EndcapRing::groupedCompatibleDetsV(), TOBRod::groupedCompatibleDetsV(), PixelBlade::groupedCompatibleDetsV(), Phase1PixelBlade::groupedCompatibleDetsV(), Phase2OTBarrelRod::groupedCompatibleDetsV(), CompositeTECPetal::groupedCompatibleDetsV(), GeomDetCompatibilityChecker::isCompatible(), StraightLinePropagator::jacobian(), PropagatorWithMaterial::materialAtSource(), GsfPropagatorWithMaterial::materialAtSource(), SteppingHelixPropagator::propagate(), Geant4ePropagator::propagateGeneric(), StraightLinePropagator::propagateParametersOnCylinder(), RKPropagatorInS::propagateParametersOnCylinder(), RKPropagatorInS::propagateParametersOnPlane(), RKPropagatorInS::propagateWithPath(), GsfPropagatorWithMaterial::propagateWithPath(), PropagatorWithMaterial::propagateWithPath(), TIDLayer::ringIndicesByCrossingProximity(), Phase2EndcapLayer::ringIndicesByCrossingProximity(), SeedingOTEDProducer::run(), SteppingHelixPropagator::setIState(), OutInConversionSeedFinder::startSeed(), and KFTrajectorySmoother::trajectory().
|
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 PropagatorWithMaterial, GsfPropagatorWithMaterial, AnalyticalPropagator, and GsfPropagatorAdapter.
Definition at line 151 of file Propagator.h.
Referenced by GsfPropagatorAdapter::setMaxDirectionChange(), and PropagatorWithMaterial::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 PropagatorWithMaterial, SmartPropagator, GsfPropagatorWithMaterial, BeamHaloPropagator, and GsfPropagatorAdapter.
Definition at line 130 of file Propagator.h.
References DeadROC_duringRun::dir, and theDir.
Referenced by AnalyticalImpactPointExtrapolator::AnalyticalImpactPointExtrapolator(), AnalyticalTrajectoryExtrapolatorToLine::AnalyticalTrajectoryExtrapolatorToLine(), SiPixelHitEfficiencySource::analyze(), TrackEfficiencyMonitor::compatibleLayers(), BeamHaloPropagator::directionCheck(), TrackEfficiencyMonitor::findNextLayer(), SimpleNavigableLayer::propagator(), SeedingOTEDProducer::run(), GsfPropagatorAdapter::setPropagationDirection(), BeamHaloPropagator::setPropagationDirection(), GsfPropagatorWithMaterial::setPropagationDirection(), SmartPropagator::setPropagationDirection(), PropagatorWithMaterial::setPropagationDirection(), TrackEfficiencyMonitor::trackerAcceptance(), TransverseImpactPointExtrapolator::TransverseImpactPointExtrapolator(), and TSCBLBuilderWithPropagator::TSCBLBuilderWithPropagator().
|
private |
Definition at line 158 of file Propagator.h.
Referenced by propagationDirection(), and setPropagationDirection().