#include <GsfTrackProducerBase.h>
Public Member Functions | |
GsfTrackProducerBase (bool trajectoryInEvent, bool split) | |
Constructor. More... | |
virtual void | putInEvt (edm::Event &, const Propagator *prop, const MeasurementTracker *measTk, std::unique_ptr< TrackingRecHitCollection > &, std::unique_ptr< reco::GsfTrackCollection > &, std::unique_ptr< reco::TrackExtraCollection > &, std::unique_ptr< reco::GsfTrackExtraCollection > &, std::unique_ptr< std::vector< Trajectory > > &, AlgoProductCollection &, TransientTrackingRecHitBuilder const *, const reco::BeamSpot &, const TrackerTopology *ttopo) |
Put produced collections in the event. More... | |
Public Member Functions inherited from TrackProducerBase< reco::GsfTrack > | |
const edm::ParameterSet & | getConf () const |
virtual void | getFromES (const edm::EventSetup &, edm::ESHandle< TrackerGeometry > &, edm::ESHandle< MagneticField > &, edm::ESHandle< TrajectoryFitter > &, edm::ESHandle< Propagator > &, edm::ESHandle< MeasurementTracker > &, edm::ESHandle< TransientTrackingRecHitBuilder > &) |
Get needed services from the Event Setup. More... | |
virtual void | getFromEvt (edm::Event &, edm::Handle< TrackCandidateCollection > &, reco::BeamSpot &) |
Get TrackCandidateCollection from the Event (needed by TrackProducer) More... | |
virtual void | getFromEvt (edm::Event &, edm::Handle< TrackCollection > &, reco::BeamSpot &) |
Get TrackCollection from the Event (needed by TrackRefitter) More... | |
virtual void | produce (edm::Event &, const edm::EventSetup &)=0 |
Method where the procduction take place. To be implemented in concrete classes. More... | |
void | setAlias (std::string alias) |
set the aliases of produced collections More... | |
void | setClusterRemovalInfo (const edm::InputTag &clusterRemovalInfo) |
Sets the information on cluster removal, and turns it on. More... | |
void | setConf (const edm::ParameterSet &conf) |
Set parameter set. More... | |
void | setSecondHitPattern (Trajectory *traj, reco::GsfTrack &track, const Propagator *prop, const MeasurementTrackerEvent *measTk, const TrackerTopology *ttopo) |
void | setSrc (const edm::EDGetToken &src, const edm::EDGetTokenT< reco::BeamSpot > &bsSrc, const edm::EDGetTokenT< MeasurementTrackerEvent > &mteSrc) |
set label of source collection More... | |
TrackProducerBase (bool trajectoryInEvent=false) | |
Constructor. More... | |
virtual | ~TrackProducerBase () |
Destructor. More... | |
Protected Member Functions | |
void | fillMode (reco::GsfTrack &track, const TrajectoryStateOnSurface innertsos, const Propagator &gsfProp, const TransverseImpactPointExtrapolator &tipExtrapolator, TrajectoryStateClosestToBeamLineBuilder &tscblBuilder, const reco::BeamSpot &bs) const |
void | fillStates (TrajectoryStateOnSurface tsos, std::vector< reco::GsfComponent5D > &states) const |
Private Member Functions | |
bool | computeModeAtTM (const TrajectoryMeasurement &tm, reco::GsfTrackExtra::Point &position, reco::GsfTrackExtra::Vector &momentum, Measurement1D &deltaP) const |
position, momentum and estimated deltaP at an intermediate measurement (true if successful) More... | |
void | localParametersFromQpMode (const TrajectoryStateOnSurface tsos, AlgebraicVector5 ¶meters, AlgebraicSymMatrix55 &covariance) const |
local parameters rescaled with q/p from mode More... | |
Private Attributes | |
bool | useSplitting |
Additional Inherited Members | |
Public Types inherited from TrackProducerBase< reco::GsfTrack > | |
using | AlgoProductCollection = typename Base::AlgoProductCollection |
using | Base = AlgoProductTraits< reco::GsfTrack > |
using | TrackCollection = typename Base::TrackCollection |
Public Types inherited from AlgoProductTraits< reco::GsfTrack > | |
using | AlgoProductCollection = std::vector< AlgoProduct > |
using | TrackCollection = std::vector< reco::GsfTrack > |
Protected Attributes inherited from TrackProducerBase< reco::GsfTrack > | |
std::string | alias_ |
edm::EDGetTokenT< reco::BeamSpot > | bsSrc_ |
edm::InputTag | clusterRemovalInfo_ |
edm::EDGetTokenT < MeasurementTrackerEvent > | mteSrc_ |
bool | rekeyClusterRefs_ |
edm::OrphanHandle < TrackCollection > | rTracks_ |
edm::ESHandle< NavigationSchool > | theSchool |
bool | trajectoryInEvent_ |
Produce Tracks from TrackCandidates
Definition at line 26 of file GsfTrackProducerBase.h.
|
inlineexplicit |
|
private |
position, momentum and estimated deltaP at an intermediate measurement (true if successful)
Definition at line 379 of file GsfTrackProducerBase.cc.
References TrajectoryMeasurement::backwardPredictedState(), CollinearFitAtTM2::deltaP(), TrajectoryMeasurement::forwardPredictedState(), TrajectoryStateOnSurface::globalPosition(), TrajectoryStateOnSurface::isValid(), TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), localParametersFromQpMode(), LocalTrajectoryError::matrix(), TrajectoryMeasurement::recHit(), query::result, TrajectoryMeasurement::updatedState(), LocalTrajectoryParameters::vector(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by putInEvt().
|
protected |
Definition at line 282 of file GsfTrackProducerBase.cc.
References FreeTrajectoryState::charge(), FreeTrajectoryState::curvilinearError(), reco::GsfTrack::dimensionMode, reco::BeamSpot::dxdz(), reco::BeamSpot::dydz(), TransverseImpactPointExtrapolator::extrapolate(), CurvilinearTrajectoryError::matrix(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mean(), GaussianSumUtilities1D::mode(), GaussianSumUtilities1D::modeIsValid(), FreeTrajectoryState::momentum(), MultiGaussianStateTransform::multiState1D(), reco::BeamSpot::position(), Propagator::propagate(), reco::GsfTrack::setMode(), mathSSE::sqrt(), TrajectoryStateOnSurface::surface(), SingleGaussianState1D::variance(), GaussianSumUtilities1D::variance(), reco::TrackBase::vz(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by putInEvt().
|
protected |
Definition at line 269 of file GsfTrackProducerBase.cc.
References makeMuonMisalignmentScenario::components, TrajectoryStateOnSurface::components(), and i.
Referenced by putInEvt().
|
private |
local parameters rescaled with q/p from mode
Definition at line 351 of file GsfTrackProducerBase.cc.
References i, TrajectoryStateOnSurface::localError(), TrajectoryStateOnSurface::localParameters(), LocalTrajectoryError::matrix(), SingleGaussianState1D::mean(), GaussianSumUtilities1D::mode(), GaussianSumUtilities1D::modeIsValid(), MultiGaussianStateTransform::multiState1D(), HLT_FULL_cff::parameters, mathSSE::sqrt(), SingleGaussianState1D::variance(), and LocalTrajectoryParameters::vector().
Referenced by computeModeAtTM().
|
virtual |
Put produced collections in the event.
Definition at line 29 of file GsfTrackProducerBase.cc.
References alongMomentum, AnalyticalPropagator_cfi::AnalyticalPropagator, anyDirection, reco::TrackBase::appendHitPattern(), assert(), TrajectoryStateOnSurface::components(), computeModeAtTM(), TrajectoryStateOnSurface::curvilinearError(), Trajectory::direction(), fillMode(), fillStates(), Trajectory::firstMeasurement(), edm::Event::getByToken(), edm::Event::getRefBeforePut(), TrajectoryStateOnSurface::globalParameters(), i, customizeTrackingMonitorSeedNumber::idx, edm::ESHandleBase::isValid(), TrajectoryStateOnSurface::isValid(), Trajectory::lastMeasurement(), TrajectoryStateOnSurface::localParameters(), LogDebug, LogTrace, TrajectoryStateOnSurface::magneticField(), Trajectory::measurements(), GlobalTrajectoryParameters::momentum(), eostools::move(), TrackProducerBase< reco::GsfTrack >::mteSrc_, AlCaHLTBitMon_ParallelJobs::p, GlobalTrajectoryParameters::position(), position, edm::Event::put(), LocalTrajectoryParameters::pzSign(), TrajectoryMeasurement::recHit(), TrackProducerBase< reco::GsfTrack >::rTracks_, Trajectory::seedRef(), reco::Track::setExtra(), reco::GsfTrack::setGsfExtra(), reco::TrackExtraBase::setHits(), TrackProducerBase< reco::GsfTrack >::setSecondHitPattern(), DetId::subdetId(), lumiQTWidget::t, SiStripDetId::TEC, TrackProducerBase< reco::GsfTrack >::theSchool, SiStripDetId::TIB, SiStripDetId::TID, SiStripDetId::TOB, DetId::Tracker, TrackProducerBase< reco::GsfTrack >::trajectoryInEvent_, TrajectoryMeasurement::updatedState(), useSplitting, findQualityFiles::v, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by GsfTrackProducer::produce(), and GsfTrackRefitter::produce().
|
private |
Definition at line 68 of file GsfTrackProducerBase.h.
Referenced by putInEvt().