#include <TrackRefitter.h>
Public Member Functions | |
void | produce (edm::Event &, const edm::EventSetup &) override |
Implementation of produce method. More... | |
TrackRefitter (const edm::ParameterSet &iConfig) | |
Constructor. More... | |
Public Member Functions inherited from KfTrackProducerBase | |
KfTrackProducerBase (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::TrackCollection > &, std::unique_ptr< reco::TrackExtraCollection > &, std::unique_ptr< std::vector< Trajectory > > &, std::unique_ptr< std::vector< int > > &, AlgoProductCollection &, TransientTrackingRecHitBuilder const *, const TrackerTopology *ttopo, int BeforeOrAfter=0) |
Put produced collections in the event. More... | |
Public Member Functions inherited from TrackProducerBase< reco::Track > | |
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< TrackView > &, reco::BeamSpot &) |
Get TrackCollection from the Event (needed by TrackRefitter) More... | |
void | initTrackProducerBase (const edm::ParameterSet &conf, edm::ConsumesCollector cc, const edm::EDGetToken &src) |
Call this method in inheriting class' constructor. More... | |
void | setAlias (std::string alias) |
set the aliases of produced collections More... | |
void | setSecondHitPattern (Trajectory *traj, reco::Track &track, const Propagator *prop, const MeasurementTrackerEvent *measTk, const TrackerTopology *ttopo) |
TrackProducerBase (bool trajectoryInEvent=false) | |
Constructor. More... | |
virtual | ~TrackProducerBase () noexcept(false) |
Destructor. More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Private Types | |
enum | Constraint { none, momentum, vertex, trackParameters } |
Private Attributes | |
Constraint | constraint_ |
TrackProducerAlgorithm< reco::Track > | theAlgo |
edm::EDGetToken | trkconstrcoll_ |
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > | ttopoToken_ |
Refit Tracks: Produce Tracks from TrackCollection. It performs a new final fit on a TrackCollection.
Definition at line 14 of file TrackRefitter.h.
|
private |
Enumerator | |
---|---|
none | |
momentum | |
vertex | |
trackParameters |
Definition at line 24 of file TrackRefitter.h.
|
explicit |
Constructor.
Definition at line 16 of file TrackRefitter.cc.
References TrackProducerBase< reco::Track >::alias_, constraint_, Exception, edm::ParameterSet::getParameter(), TrackProducerBase< reco::Track >::initTrackProducerBase(), momentum, none, TrackProducerBase< reco::Track >::setAlias(), AlCaHLTBitMon_QueryRunRegistry::string, trackParameters, trkconstrcoll_, and vertex.
|
overridevirtual |
Implementation of produce method.
Implements TrackProducerBase< reco::Track >.
Definition at line 55 of file TrackRefitter.cc.
References cms::cuda::bs, TrackProducerBase< reco::Track >::bsSrc_, constraint_, MillePedeFileConverter_cfg::e, edm::HandleBase::failedToGet(), edm::Event::getByToken(), TrackProducerBase< reco::Track >::getFromES(), TrackProducerBase< reco::Track >::getFromEvt(), edm::EventBase::id(), edm::HandleBase::isValid(), SummaryClient_cfi::labels, LogDebug, momentum, none, edm::ESHandle< T >::product(), KfTrackProducerBase::putInEvt(), TrackProducerAlgorithm< T >::runWithMomentum(), TrackProducerAlgorithm< T >::runWithTrack(), TrackProducerAlgorithm< T >::runWithTrackParameters(), TrackProducerAlgorithm< T >::runWithVertex(), singleTopDQM_cfi::setup, TrackProducerBase< reco::Track >::src_, theAlgo, trackParameters, trkconstrcoll_, ttopoToken_, reco::BeamSpot::Unknown, and vertex.
|
private |
Definition at line 25 of file TrackRefitter.h.
Referenced by produce(), and TrackRefitter().
|
private |
Definition at line 23 of file TrackRefitter.h.
Referenced by produce().
|
private |
Definition at line 26 of file TrackRefitter.h.
Referenced by produce(), and TrackRefitter().
|
private |
Definition at line 28 of file TrackRefitter.h.
Referenced by produce().