#include <TrackProducerBase.h>
Public Types | |
typedef std::pair< Trajectory *, std::pair< T *, PropagationDirection > > | AlgoProduct |
typedef std::vector< AlgoProduct > | AlgoProductCollection |
typedef std::vector< T > | TrackCollection |
Public Member Functions | |
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. | |
virtual void | getFromEvt (edm::Event &, edm::Handle< TrackCandidateCollection > &, reco::BeamSpot &) |
Get TrackCandidateCollection from the Event (needed by TrackProducer) | |
virtual void | getFromEvt (edm::Event &, edm::Handle< TrackCollection > &, reco::BeamSpot &) |
Get TrackCollection from the Event (needed by TrackRefitter) | |
virtual void | produce (edm::Event &, const edm::EventSetup &)=0 |
Method where the procduction take place. To be implemented in concrete classes. | |
void | setAlias (std::string alias) |
set the aliases of produced collections | |
void | setClusterRemovalInfo (const edm::InputTag &clusterRemovalInfo) |
Sets the information on cluster removal, and turns it on. | |
void | setConf (edm::ParameterSet conf) |
Set parameter set. | |
void | setSecondHitPattern (Trajectory *traj, T &track, const Propagator *prop, const MeasurementTracker *measTk) |
void | setSrc (edm::InputTag src, edm::InputTag bsSrc) |
set label of source collection | |
TrackProducerBase (bool trajectoryInEvent=false) | |
Constructor. | |
virtual | ~TrackProducerBase () |
Destructor. | |
Protected Attributes | |
std::string | alias_ |
edm::InputTag | bsSrc_ |
edm::InputTag | clusterRemovalInfo_ |
bool | rekeyClusterRefs_ |
edm::OrphanHandle < TrackCollection > | rTracks_ |
edm::ESHandle< NavigationSchool > | theSchool |
bool | trajectoryInEvent_ |
Private Attributes | |
edm::ParameterSet | conf_ |
edm::InputTag | src_ |
Base Class To Produce Tracks
Definition at line 37 of file TrackProducerBase.h.
typedef std::pair<Trajectory*, std::pair<T*,PropagationDirection> > TrackProducerBase< T >::AlgoProduct |
Definition at line 40 of file TrackProducerBase.h.
typedef std::vector< AlgoProduct > TrackProducerBase< T >::AlgoProductCollection |
Definition at line 41 of file TrackProducerBase.h.
typedef std::vector<T> TrackProducerBase< T >::TrackCollection |
Definition at line 39 of file TrackProducerBase.h.
TrackProducerBase< T >::TrackProducerBase | ( | bool | trajectoryInEvent = false | ) | [inline] |
Constructor.
Definition at line 44 of file TrackProducerBase.h.
: trajectoryInEvent_(trajectoryInEvent), rekeyClusterRefs_(false) {}
virtual TrackProducerBase< T >::~TrackProducerBase | ( | ) | [virtual] |
Destructor.
const edm::ParameterSet& TrackProducerBase< T >::getConf | ( | ) | const [inline] |
Definition at line 89 of file TrackProducerBase.h.
{return conf_;}
virtual void TrackProducerBase< T >::getFromES | ( | const edm::EventSetup & | , |
edm::ESHandle< TrackerGeometry > & | , | ||
edm::ESHandle< MagneticField > & | , | ||
edm::ESHandle< TrajectoryFitter > & | , | ||
edm::ESHandle< Propagator > & | , | ||
edm::ESHandle< MeasurementTracker > & | , | ||
edm::ESHandle< TransientTrackingRecHitBuilder > & | |||
) | [virtual] |
Get needed services from the Event Setup.
virtual void TrackProducerBase< T >::getFromEvt | ( | edm::Event & | , |
edm::Handle< TrackCandidateCollection > & | , | ||
reco::BeamSpot & | |||
) | [virtual] |
Get TrackCandidateCollection from the Event (needed by TrackProducer)
virtual void TrackProducerBase< T >::getFromEvt | ( | edm::Event & | , |
edm::Handle< TrackCollection > & | , | ||
reco::BeamSpot & | |||
) | [virtual] |
Get TrackCollection from the Event (needed by TrackRefitter)
virtual void TrackProducerBase< T >::produce | ( | edm::Event & | , |
const edm::EventSetup & | |||
) | [pure virtual] |
Method where the procduction take place. To be implemented in concrete classes.
Implemented in KalmanAlignmentTrackRefitter, TrackProducerWithSCAssociation, DAFTrackProducer, GsfTrackProducer, GsfTrackRefitter, MTFTrackProducer, TrackProducer, and TrackRefitter.
void TrackProducerBase< T >::setAlias | ( | std::string | alias | ) | [inline] |
void TrackProducerBase< T >::setClusterRemovalInfo | ( | const edm::InputTag & | clusterRemovalInfo | ) | [inline] |
Sets the information on cluster removal, and turns it on.
Definition at line 81 of file TrackProducerBase.h.
{ rekeyClusterRefs_ = true; clusterRemovalInfo_ = clusterRemovalInfo; }
void TrackProducerBase< T >::setConf | ( | edm::ParameterSet | conf | ) | [inline] |
void TrackProducerBase< T >::setSecondHitPattern | ( | Trajectory * | traj, |
T & | track, | ||
const Propagator * | prop, | ||
const MeasurementTracker * | measTk | ||
) |
void TrackProducerBase< T >::setSrc | ( | edm::InputTag | src, |
edm::InputTag | bsSrc | ||
) | [inline] |
set label of source collection
Definition at line 72 of file TrackProducerBase.h.
std::string TrackProducerBase< T >::alias_ [protected] |
Definition at line 94 of file TrackProducerBase.h.
Referenced by TrackProducerBase< reco::GsfTrack >::setAlias().
edm::InputTag TrackProducerBase< T >::bsSrc_ [protected] |
Definition at line 97 of file TrackProducerBase.h.
Referenced by TrackProducerBase< reco::GsfTrack >::setSrc().
edm::InputTag TrackProducerBase< T >::clusterRemovalInfo_ [protected] |
Definition at line 100 of file TrackProducerBase.h.
Referenced by TrackProducerBase< reco::GsfTrack >::setClusterRemovalInfo().
edm::ParameterSet TrackProducerBase< T >::conf_ [private] |
Definition at line 91 of file TrackProducerBase.h.
Referenced by TrackProducerBase< reco::GsfTrack >::getConf(), and TrackProducerBase< reco::GsfTrack >::setConf().
bool TrackProducerBase< T >::rekeyClusterRefs_ [protected] |
Definition at line 99 of file TrackProducerBase.h.
Referenced by TrackProducerBase< reco::GsfTrack >::setClusterRemovalInfo().
edm::OrphanHandle<TrackCollection> TrackProducerBase< T >::rTracks_ [protected] |
Reimplemented in TrackProducerWithSCAssociation.
Definition at line 96 of file TrackProducerBase.h.
edm::InputTag TrackProducerBase< T >::src_ [private] |
Definition at line 92 of file TrackProducerBase.h.
Referenced by TrackProducerBase< reco::GsfTrack >::setSrc().
edm::ESHandle<NavigationSchool> TrackProducerBase< T >::theSchool [protected] |
Definition at line 102 of file TrackProducerBase.h.
bool TrackProducerBase< T >::trajectoryInEvent_ [protected] |
Definition at line 95 of file TrackProducerBase.h.