CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Attributes | Private Attributes
TrackProducerBase< T > Class Template Referenceabstract

#include <TrackProducerBase.h>

Public Types

typedef std::pair< Trajectory
*, std::pair< T
*, PropagationDirection > > 
AlgoProduct
 
typedef std::vector< AlgoProductAlgoProductCollection
 
typedef std::vector< TTrackCollection
 

Public Member Functions

const edm::ParameterSetgetConf () 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, T &track, const Propagator *prop, const MeasurementTrackerEvent *measTk)
 
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 Attributes

std::string alias_
 
edm::EDGetTokenT< reco::BeamSpotbsSrc_
 
edm::InputTag clusterRemovalInfo_
 
edm::EDGetTokenT
< MeasurementTrackerEvent
mteSrc_
 
bool rekeyClusterRefs_
 
edm::OrphanHandle
< TrackCollection
rTracks_
 
edm::ESHandle< NavigationSchooltheSchool
 
bool trajectoryInEvent_
 

Private Attributes

edm::ParameterSet conf_
 
edm::EDGetToken src_
 

Detailed Description

template<class T>
class TrackProducerBase< T >

Base Class To Produce Tracks

Author
cerati

Definition at line 35 of file TrackProducerBase.h.

Member Typedef Documentation

template<class T>
typedef std::pair<Trajectory*, std::pair<T*,PropagationDirection> > TrackProducerBase< T >::AlgoProduct

Definition at line 38 of file TrackProducerBase.h.

template<class T>
typedef std::vector< AlgoProduct > TrackProducerBase< T >::AlgoProductCollection

Definition at line 39 of file TrackProducerBase.h.

template<class T>
typedef std::vector<T> TrackProducerBase< T >::TrackCollection

Definition at line 37 of file TrackProducerBase.h.

Constructor & Destructor Documentation

template<class T>
TrackProducerBase< T >::TrackProducerBase ( bool  trajectoryInEvent = false)
inline

Constructor.

Definition at line 42 of file TrackProducerBase.h.

42  :
43  trajectoryInEvent_(trajectoryInEvent),
44  rekeyClusterRefs_(false) {}
template<class T>
virtual TrackProducerBase< T >::~TrackProducerBase ( )
virtual

Destructor.

Member Function Documentation

template<class T>
const edm::ParameterSet& TrackProducerBase< T >::getConf ( ) const
inline

Definition at line 89 of file TrackProducerBase.h.

89 {return conf_;}
edm::ParameterSet conf_

Get needed services from the Event Setup.

template<class T>
virtual void TrackProducerBase< T >::getFromEvt ( edm::Event ,
edm::Handle< TrackCandidateCollection > &  ,
reco::BeamSpot  
)
virtual

Get TrackCandidateCollection from the Event (needed by TrackProducer)

template<class T>
virtual void TrackProducerBase< T >::getFromEvt ( edm::Event ,
edm::Handle< TrackCollection > &  ,
reco::BeamSpot  
)
virtual

Get TrackCollection from the Event (needed by TrackRefitter)

template<class T>
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, TrackProducer, GsfTrackProducer, GsfTrackRefitter, and TrackRefitter.

template<class T>
void TrackProducerBase< T >::setAlias ( std::string  alias)
inline

set the aliases of produced collections

Definition at line 75 of file TrackProducerBase.h.

75  {
76  alias.erase(alias.size()-6,alias.size());
77  alias_=alias;
78  }
template<class T>
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.

template<class T>
void TrackProducerBase< T >::setConf ( const edm::ParameterSet conf)
inline

Set parameter set.

Definition at line 67 of file TrackProducerBase.h.

Referenced by KalmanAlignmentTrackRefitter::KalmanAlignmentTrackRefitter().

67 {conf_=conf;}
edm::ParameterSet conf_
tuple conf
Definition: dbtoconf.py:185
template<class T>
void TrackProducerBase< T >::setSecondHitPattern ( Trajectory traj,
T track,
const Propagator prop,
const MeasurementTrackerEvent measTk 
)
template<class T>
void TrackProducerBase< T >::setSrc ( const edm::EDGetToken src,
const edm::EDGetTokenT< reco::BeamSpot > &  bsSrc,
const edm::EDGetTokenT< MeasurementTrackerEvent > &  mteSrc 
)
inline

set label of source collection

Definition at line 70 of file TrackProducerBase.h.

70  {
71  src_ = src; bsSrc_ = bsSrc; mteSrc_ = mteSrc;
72  }
edm::EDGetTokenT< MeasurementTrackerEvent > mteSrc_
edm::EDGetToken src_
edm::EDGetTokenT< reco::BeamSpot > bsSrc_

Member Data Documentation

template<class T>
std::string TrackProducerBase< T >::alias_
protected

Definition at line 94 of file TrackProducerBase.h.

Referenced by TrackProducerBase< reco::GsfTrack >::setAlias().

template<class T>
edm::EDGetTokenT<reco::BeamSpot> TrackProducerBase< T >::bsSrc_
protected

Definition at line 97 of file TrackProducerBase.h.

Referenced by TrackProducerBase< reco::GsfTrack >::setSrc().

template<class T>
edm::InputTag TrackProducerBase< T >::clusterRemovalInfo_
protected
template<class T>
edm::ParameterSet TrackProducerBase< T >::conf_
private
template<class T>
edm::EDGetTokenT<MeasurementTrackerEvent> TrackProducerBase< T >::mteSrc_
protected

Definition at line 98 of file TrackProducerBase.h.

Referenced by TrackProducerBase< reco::GsfTrack >::setSrc().

template<class T>
bool TrackProducerBase< T >::rekeyClusterRefs_
protected
template<class T>
edm::OrphanHandle<TrackCollection> TrackProducerBase< T >::rTracks_
protected

Definition at line 96 of file TrackProducerBase.h.

template<class T>
edm::EDGetToken TrackProducerBase< T >::src_
private

Definition at line 92 of file TrackProducerBase.h.

Referenced by TrackProducerBase< reco::GsfTrack >::setSrc().

template<class T>
edm::ESHandle<NavigationSchool> TrackProducerBase< T >::theSchool
protected

Definition at line 103 of file TrackProducerBase.h.

template<class T>
bool TrackProducerBase< T >::trajectoryInEvent_
protected

Definition at line 95 of file TrackProducerBase.h.