#include <SimpleTrackRefitter.h>
Public Member Functions | |
std::vector< Trajectory > | refitTrack (const reco::Track &newTrack, const uint32_t ExcludedDetId=0) |
The main methods. More... | |
std::vector< Trajectory > | refitTrack (const TrajectorySeed &seed, const TrackingRecHitCollection &hits, const uint32_t ExcludedDetid=0) |
std::vector< Trajectory > | refitTrack (const TrajectorySeed &seed, const reco::Track &theT, const uint32_t ExcludedDetid=0) |
void | setServices (const edm::EventSetup &es) |
SimpleTrackRefitter (const edm::ParameterSet &) | |
Constructor. More... | |
virtual | ~SimpleTrackRefitter () |
Destructor. More... | |
Private Member Functions | |
Trajectory | createStartingTrajectory (const TrajectorySeed &seed) const |
void | destroyServices () |
void | initServices (const bool &seedAlongMomentum) |
std::vector < TrajectoryMeasurement > | seedMeasurements (const TrajectorySeed &seed) const |
TrajectoryStateOnSurface | startingTSOS (const TrajectorySeed &seed) const |
Private Attributes | |
edm::ParameterSet | conf_ |
bool | isCosmics_ |
const MagneticField * | magfield |
const TransientTrackingRecHitBuilder * | RHBuilder |
const Chi2MeasurementEstimator * | theEstimator |
const TrajectoryFitter * | theFitter |
const Propagator * | thePropagator |
const Propagator * | thePropagatorOp |
const TrajectorySmoother * | theSmoother |
const KFUpdator * | theUpdator |
const TrackerGeometry * | tracker |
const TrajectoryStateTransform | tsTransform |
This class refits a track (from cosmic or standard tracking). The final result is a Trajectory refitted and smoothed. To make the refitting (and the smoothing) the usual KF tools are used. An arbitrary DetUnit can be ignored during the fit, so that the resulting trajectory can be used for unbiased residual studies on that Det.
Definition at line 46 of file SimpleTrackRefitter.h.
SimpleTrackRefitter::SimpleTrackRefitter | ( | const edm::ParameterSet & | iConfig | ) |
Constructor.
Definition at line 25 of file SimpleTrackRefitter.cc.
References conf_, edm::ParameterSet::getParameter(), and isCosmics_.
|
virtual |
|
private |
Definition at line 251 of file SimpleTrackRefitter.cc.
References TrajectorySeed::direction(), i, query::result, and seedMeasurements().
Referenced by refitTrack().
|
private |
Definition at line 88 of file SimpleTrackRefitter.cc.
References theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, and theUpdator.
Referenced by refitTrack().
|
private |
Definition at line 36 of file SimpleTrackRefitter.cc.
References alongMomentum, Chi2MeasurementEstimatorESProducer_cfi::Chi2MeasurementEstimator, KFTrajectoryFitterESProducer_cfi::KFTrajectoryFitter, KFTrajectorySmootherESProducer_cfi::KFTrajectorySmoother, magfield, oppositeToMomentum, theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, and theUpdator.
Referenced by refitTrack().
std::vector< Trajectory > SimpleTrackRefitter::refitTrack | ( | const reco::Track & | newTrack, |
const uint32_t | ExcludedDetId = 0 |
||
) |
The main methods.
Definition at line 98 of file SimpleTrackRefitter.cc.
References TransientTrackingRecHitBuilder::build(), funct::C, TrajectoryFitter::fit(), i, TrackingRecHit::inactive, LogDebug, Propagator::magneticField(), NULL, Propagator::propagate(), reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), RHBuilder, theFitter, thePropagator, tmp, and DetId::Tracker.
Referenced by SiStripFineDelayTLA::findtrackangle().
std::vector< Trajectory > SimpleTrackRefitter::refitTrack | ( | const TrajectorySeed & | seed, |
const TrackingRecHitCollection & | hits, | ||
const uint32_t | ExcludedDetid = 0 |
||
) |
Definition at line 157 of file SimpleTrackRefitter.cc.
References alongMomentum, TransientTrackingRecHitBuilder::build(), createStartingTrajectory(), destroyServices(), TrajectorySeed::direction(), Chi2MeasurementEstimator::estimate(), TrajectoryFitter::fit(), TrackingRecHit::geographicalId(), TrackerGeometry::idToDet(), TrackingRecHit::inactive, initServices(), TrajectoryStateOnSurface::isValid(), Propagator::propagate(), DetId::rawId(), RHBuilder, edm::OwnVector< T, P >::size(), GeomDet::surface(), theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, tracker, TrajectorySmoother::trajectories(), and KFUpdator::update().
std::vector< Trajectory > SimpleTrackRefitter::refitTrack | ( | const TrajectorySeed & | seed, |
const reco::Track & | theT, | ||
const uint32_t | ExcludedDetid = 0 |
||
) |
Definition at line 200 of file SimpleTrackRefitter.cc.
References alongMomentum, TransientTrackingRecHitBuilder::build(), createStartingTrajectory(), destroyServices(), TrajectorySeed::direction(), Chi2MeasurementEstimator::estimate(), TrajectoryFitter::fit(), i, TrackerGeometry::idToDet(), TrackingRecHit::inactive, initServices(), TrajectoryStateOnSurface::isValid(), Propagator::propagate(), reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), RHBuilder, theEstimator, theFitter, thePropagator, thePropagatorOp, theSmoother, theUpdator, tracker, TrajectorySmoother::trajectories(), and KFUpdator::update().
|
private |
Definition at line 263 of file SimpleTrackRefitter.cc.
References TransientTrackingRecHitBuilder::build(), TrackerGeometry::idToDet(), TrajectorySeed::recHits(), query::result, RHBuilder, startingTSOS(), GeomDet::surface(), and tracker.
Referenced by createStartingTrajectory().
void SimpleTrackRefitter::setServices | ( | const edm::EventSetup & | es | ) |
Definition at line 57 of file SimpleTrackRefitter.cc.
References conf_, edm::EventSetup::get(), edm::ParameterSet::getParameter(), isCosmics_, LogDebug, magfield, LargeD0_PixelPairStep_cff::propagator, RHBuilder, theFitter, thePropagator, and tracker.
Referenced by SiStripFineDelayTLA::init().
|
private |
Definition at line 242 of file SimpleTrackRefitter.cc.
References TrackerGeometry::idToDet(), magfield, TrajectorySeed::startingState(), tracker, TrajectoryStateTransform::transientState(), and tsTransform.
Referenced by seedMeasurements().
|
private |
Definition at line 86 of file SimpleTrackRefitter.h.
Referenced by setServices(), and SimpleTrackRefitter().
|
private |
Definition at line 87 of file SimpleTrackRefitter.h.
Referenced by setServices(), and SimpleTrackRefitter().
|
private |
Definition at line 85 of file SimpleTrackRefitter.h.
Referenced by initServices(), setServices(), and startingTSOS().
|
private |
Definition at line 80 of file SimpleTrackRefitter.h.
Referenced by refitTrack(), seedMeasurements(), and setServices().
|
private |
Definition at line 79 of file SimpleTrackRefitter.h.
Referenced by destroyServices(), initServices(), and refitTrack().
|
private |
Definition at line 82 of file SimpleTrackRefitter.h.
Referenced by destroyServices(), initServices(), refitTrack(), and setServices().
|
private |
Definition at line 76 of file SimpleTrackRefitter.h.
Referenced by destroyServices(), initServices(), refitTrack(), and setServices().
|
private |
Definition at line 77 of file SimpleTrackRefitter.h.
Referenced by destroyServices(), initServices(), and refitTrack().
|
private |
Definition at line 81 of file SimpleTrackRefitter.h.
Referenced by destroyServices(), initServices(), and refitTrack().
|
private |
Definition at line 78 of file SimpleTrackRefitter.h.
Referenced by destroyServices(), initServices(), and refitTrack().
|
private |
Definition at line 84 of file SimpleTrackRefitter.h.
Referenced by refitTrack(), seedMeasurements(), setServices(), and startingTSOS().
|
private |
Definition at line 83 of file SimpleTrackRefitter.h.
Referenced by startingTSOS().