#include <TrackTransformer.h>
Public Member Functions | |
TransientTrackingRecHit::ConstRecHitContainer | getTransientRecHits (const reco::TransientTrack &track) const |
const MagneticField * | magneticField () const |
the magnetic field More... | |
std::unique_ptr< TrajectoryFitter > const & | refitter () const |
the refitter used to refit the reco::Track More... | |
void | setServices (const edm::EventSetup &) override |
set the services needed by the TrackTransformer More... | |
std::unique_ptr< TrajectorySmoother > const & | smoother () const |
the smoother used to smooth the trajectory which came from the refitting step More... | |
edm::ESHandle< GlobalTrackingGeometry > | trackingGeometry () const |
the tracking geometry More... | |
TrackTransformer (const edm::ParameterSet &) | |
Constructor (for modules not yet migrated to ES-consumes) More... | |
TrackTransformer (const edm::ParameterSet &, edm::ConsumesCollector &) | |
Constructor (for modules migrated to ES-consumes) More... | |
TrackTransformer (const edm::ParameterSet ¶meterSet, edm::ConsumesCollector &&iC) | |
std::vector< Trajectory > | transform (const reco::Track &) const override |
Convert a reco::Track into Trajectory. More... | |
std::vector< Trajectory > | transform (const reco::TrackRef &) const |
Convert a reco::TrackRef into Trajectory. More... | |
std::vector< Trajectory > | transform (const reco::TransientTrack &, TransientTrackingRecHit::ConstRecHitContainer &) const |
Convert a reco::TrackRef into Trajectory, refit with a new set of hits. More... | |
~TrackTransformer () override | |
Destructor. More... | |
Public Member Functions inherited from TrackTransformerBase | |
TrackTransformerBase () | |
Constructor. More... | |
virtual | ~TrackTransformerBase () |
Destructor. More... | |
Static Public Member Functions | |
static void | fillPSetDescription (edm::ParameterSetDescription &descriptions, bool DoPredictionsOnly=false, const std::string &Fitter="KFFitterForRefitInsideOut", const std::string &Smoother="KFSmootherForRefitInsideOut", const std::string &Propagator="SmartPropagatorAnyRK", const std::string &RefitDirection="alongMomentum", bool RefitRPCHits=true, const std::string &TrackerRecHitBuilder="WithTrackAngle", const std::string &MuonRecHitBuilder="MuonRecHitBuilder", const std::string &MTDRecHitBuilder="MTDRecHitBuilder") |
fillDescriptions More... | |
Private Member Functions | |
RefitDirection::GeometricalDirection | checkRecHitsOrdering (TransientTrackingRecHit::ConstRecHitContainer const &) const |
edm::ESHandle< Propagator > const & | propagator () const |
This class takes a reco::Track and refits the rechits inside it. The final result is a Trajectory refitted and smoothed. To make the refitting (and the smoothing) the usual KF tools are used.
CAVEAT: till now (it will be changed in the near future) the class stores the pointers to the services, therefore EACH event the setServices(const edm::EventSetup&) method MUST be called in the code in which the TrackTransformer is used.
This class takes a reco::Track and refits the rechits inside it. The final result is a Trajectory refitted and smoothed. To make the refitting (and the smoothing) the usual KF tools are used.
CAVEAT: till now (it will be changed in the near future) the class stores the pointers to the services, therefore EACH event the setServices(const edm::EventSetup&) method MUST be called in the code in which the TrackTransformer is used.
Rec hits are ordered in rank of increasing |z| assuing muons are coming from the top of the detector.
$Date: 2009/01/15 \original author R. Bellan - CERN ricca modified for zed ordering by N. Kypreos - UF rdo. bella n@ce rn.chnicho las. theod ore. kypre os@c ern.c h
This class takes a reco::Track and refits the rechits inside it. The final result is a Trajectory refitted and smoothed. To make the refitting (and the smoothing) the usual KF tools are used.
CAVEAT: till now (it will be changed in the near future) the class stores the pointers to the services, therefore EACH event the setServices(const edm::EventSetup&) method MUST be called in the code in which the TrackTransformer is used.
Definition at line 46 of file TrackTransformer.h.
|
explicit |
Constructor (for modules not yet migrated to ES-consumes)
Constructor.
Definition at line 32 of file TrackTransformer.cc.
|
explicit |
Constructor (for modules migrated to ES-consumes)
Definition at line 43 of file TrackTransformer.cc.
References edm::ConsumesCollector::esConsumes(), theFitterName, theFitterToken, theMGFieldToken, theMTDRecHitBuilderName, theMTDRecHitBuilderToken, theMuonRecHitBuilderName, theMuonRecHitBuilderToken, thePropagatorName, thePropagatorToken, theSmootherName, theSmootherToken, theTrackerRecHitBuilderName, theTrackerRecHitBuilderToken, and theTrackingGeometryToken.
|
inlineexplicit |
Definition at line 53 of file TrackTransformer.h.
|
override |
|
private |
Definition at line 163 of file TrackTransformer.cc.
References first, GlobalTrackingGeometry::idToDet(), RefitDirection::insideOut, dqmdumpme::last, LogDebug, RefitDirection::outsideIn, position, FastTrackerRecHitMaskProducer_cfi::recHits, trackingGeometry(), and RefitDirection::undetermined.
Referenced by transform().
|
static |
fillDescriptions
Definition at line 58 of file TrackTransformer.cc.
References submitPVResolutionJobs::desc, trackingRecoMaterialAnalyzer_cfi::DoPredictionsOnly, HLTSiStripMonitoring_cff::Fitter, trackingRecoMaterialAnalyzer_cfi::MTDRecHitBuilder, trackingRecoMaterialAnalyzer_cfi::MuonRecHitBuilder, LaserSeedGenerator_cfi::Propagator, trackingRecoMaterialAnalyzer_cfi::RefitDirection, MuonAlignmentFromReference_cff::RefitRPCHits, HLTSiStripMonitoring_cff::Smoother, AlCaHLTBitMon_QueryRunRegistry::string, and trackingRecoMaterialAnalyzer_cfi::TrackerRecHitBuilder.
Referenced by L3MuonProducer::fillDescriptions(), and TrackExtenderWithMTDT< TrackCollection >::fillDescriptions().
TransientTrackingRecHit::ConstRecHitContainer TrackTransformer::getTransientRecHits | ( | const reco::TransientTrack & | track | ) | const |
Definition at line 135 of file TrackTransformer.cc.
References TransientTrackingRecHitBuilder::build(), Exception, FastTime, DetId::Forward, LogTrace, DetId::Muon, mps_fire::result, theMtdAvailable, theMTDRecHitBuilder, theMuonRecHitBuilder, theRPCInTheFit, theTrackerRecHitBuilder, HLT_FULL_cff::track, and DetId::Tracker.
Referenced by transform().
|
inline |
the magnetic field
Definition at line 83 of file TrackTransformer.h.
References theMGField.
Referenced by transform().
|
inlineprivate |
Definition at line 124 of file TrackTransformer.h.
References thePropagator.
Referenced by transform().
|
inline |
the refitter used to refit the reco::Track
Definition at line 92 of file TrackTransformer.h.
References theFitter.
|
overridevirtual |
set the services needed by the TrackTransformer
Implements TrackTransformerBase.
Definition at line 79 of file TrackTransformer.cc.
References TrajectorySmoother::clone(), TrajectoryFitter::clone(), get, hitCloner, edm::ESGetToken< ESProduct, ESRecord >::isInitialized(), edm::ESHandleBase::isValid(), LogTrace, metname, edm::ESHandle< T >::product(), singleTopDQM_cfi::setup, AlCaHLTBitMon_QueryRunRegistry::string, theCacheId_TRH, theFitter, theFitterName, theFitterToken, theMGField, theMGFieldToken, theMtdAvailable, theMTDRecHitBuilder, theMTDRecHitBuilderName, theMTDRecHitBuilderToken, theMuonRecHitBuilder, theMuonRecHitBuilderName, theMuonRecHitBuilderToken, thePropagator, thePropagatorName, thePropagatorToken, theSmoother, theSmootherName, theSmootherToken, theTrackerRecHitBuilder, theTrackerRecHitBuilderName, theTrackerRecHitBuilderToken, theTrackingGeometry, and theTrackingGeometryToken.
Referenced by TrackingRecoMaterialAnalyser::analyze(), MuonKinkFinder::init(), MuonReSeeder::produce(), TrackerToMuonPropagator::produce(), CSCOverlapsAlignmentAlgorithm::run(), and GlobalTrajectoryBuilderBase::setEvent().
|
inline |
the smoother used to smooth the trajectory which came from the refitting step
Definition at line 95 of file TrackTransformer.h.
References theSmoother.
|
inline |
the tracking geometry
Definition at line 86 of file TrackTransformer.h.
References theTrackingGeometry.
Referenced by checkRecHitsOrdering(), and transform().
|
overridevirtual |
Convert a reco::Track into Trajectory.
Convert Tracks into Trajectories.
Implements TrackTransformerBase.
Definition at line 182 of file TrackTransformer.cc.
References getTransientRecHits(), magneticField(), metname, AlCaHLTBitMon_QueryRunRegistry::string, HLT_FULL_cff::track, and trackingGeometry().
Referenced by TrackingRecoMaterialAnalyser::analyze(), GlobalTrajectoryBuilderBase::build(), CSCPairResidualsConstraint::dphidzFromTrack(), MuonKinkFinder::fillTrkKink(), MuonReSeeder::produce(), TrackerToMuonPropagator::produce(), and transform().
vector< Trajectory > TrackTransformer::transform | ( | const reco::TrackRef & | track | ) | const |
Convert a reco::TrackRef into Trajectory.
Definition at line 133 of file TrackTransformer.cc.
References HLT_FULL_cff::track, and transform().
vector< Trajectory > TrackTransformer::transform | ( | const reco::TransientTrack & | track, |
TransientTrackingRecHit::ConstRecHitContainer & | recHitsForReFit | ||
) | const |
Convert a reco::TrackRef into Trajectory, refit with a new set of hits.
Convert Tracks into Trajectories with a given set of hits.
Definition at line 192 of file TrackTransformer.cc.
References alongMomentum, anyDirection, checkRecHitsOrdering(), RefitDirection::geometricalDirection(), RefitDirection::insideOut, TrajectoryStateOnSurface::isValid(), LogTrace, metname, oppositeToMomentum, RefitDirection::outsideIn, AlCaHLTBitMon_ParallelJobs::p, position, Propagator::propagate(), RefitDirection::propagationDirection(), propagator(), Trajectory::push(), groupFilesInBlocks::reverse, fileCollector::seed, AlCaHLTBitMon_QueryRunRegistry::string, TrajectoryStateOnSurface::surface(), theDoPredictionsOnly, theFitter, theRefitDirection, theSmoother, HLT_FULL_cff::track, FastTrackerRecHitMaskProducer_cfi::trajectories, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
|
private |
Definition at line 130 of file TrackTransformer.h.
Referenced by setServices().
|
private |
Definition at line 102 of file TrackTransformer.h.
Referenced by setServices().
|
private |
Definition at line 106 of file TrackTransformer.h.
Referenced by transform().
|
private |
Definition at line 116 of file TrackTransformer.h.
Referenced by refitter(), setServices(), and transform().
|
private |
Definition at line 114 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 115 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 112 of file TrackTransformer.h.
Referenced by magneticField(), and setServices().
|
private |
Definition at line 110 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 138 of file TrackTransformer.h.
Referenced by getTransientRecHits(), and setServices().
|
private |
Definition at line 139 of file TrackTransformer.h.
Referenced by getTransientRecHits(), and setServices().
|
private |
Definition at line 136 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 137 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 134 of file TrackTransformer.h.
Referenced by getTransientRecHits(), and setServices().
|
private |
Definition at line 132 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 133 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 125 of file TrackTransformer.h.
Referenced by propagator(), and setServices().
|
private |
Definition at line 122 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 123 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 107 of file TrackTransformer.h.
Referenced by transform().
|
private |
Definition at line 104 of file TrackTransformer.h.
Referenced by getTransientRecHits().
|
private |
Definition at line 120 of file TrackTransformer.h.
Referenced by setServices(), smoother(), and transform().
|
private |
Definition at line 118 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 119 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 129 of file TrackTransformer.h.
Referenced by getTransientRecHits(), and setServices().
|
private |
Definition at line 127 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 128 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().
|
private |
Definition at line 111 of file TrackTransformer.h.
Referenced by setServices(), and trackingGeometry().
|
private |
Definition at line 109 of file TrackTransformer.h.
Referenced by setServices(), and TrackTransformer().