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>

Inheritance diagram for TrackProducerBase< T >:
AlgoProductTraits< T >

Public Types

using AlgoProductCollection = typename Base::AlgoProductCollection
 
using Base = AlgoProductTraits< T >
 
using TrackCollection = typename Base::TrackCollection
 
- Public Types inherited from AlgoProductTraits< T >
using AlgoProductCollection = std::vector< AlgoProduct >
 
using TrackCollection = std::vector< T >
 

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, 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 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 40 of file TrackProducerBase.h.

Member Typedef Documentation

template<class T>
using TrackProducerBase< T >::AlgoProductCollection = typename Base::AlgoProductCollection

Definition at line 44 of file TrackProducerBase.h.

template<class T>
using TrackProducerBase< T >::Base = AlgoProductTraits<T>

Definition at line 42 of file TrackProducerBase.h.

template<class T>
using TrackProducerBase< T >::TrackCollection = typename Base::TrackCollection

Definition at line 43 of file TrackProducerBase.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 48 of file TrackProducerBase.h.

48  :
49  trajectoryInEvent_(trajectoryInEvent),
50  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 96 of file TrackProducerBase.h.

96 {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 TrackProducerWithSCAssociation, DAFTrackProducer, TrackProducer, GsfTrackRefitter, TrackRefitter, and GsfTrackProducer.

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

set the aliases of produced collections

Definition at line 81 of file TrackProducerBase.h.

81  {
82  alias.erase(alias.size()-6,alias.size());
83  alias_=alias;
84  }
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 87 of file TrackProducerBase.h.

87  {
88  rekeyClusterRefs_ = true;
90  }
edm::InputTag clusterRemovalInfo_
tuple clusterRemovalInfo
template<class T>
void TrackProducerBase< T >::setConf ( const edm::ParameterSet conf)
inline

Set parameter set.

Definition at line 73 of file TrackProducerBase.h.

73 {conf_=conf;}
edm::ParameterSet conf_
template<class T>
void TrackProducerBase< T >::setSecondHitPattern ( Trajectory traj,
T track,
const Propagator prop,
const MeasurementTrackerEvent measTk,
const TrackerTopology ttopo 
)
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 76 of file TrackProducerBase.h.

76  {
77  src_ = src; bsSrc_ = bsSrc; mteSrc_ = mteSrc;
78  }
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 101 of file TrackProducerBase.h.

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

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

Definition at line 104 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 105 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 103 of file TrackProducerBase.h.

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

Definition at line 99 of file TrackProducerBase.h.

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

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

Definition at line 110 of file TrackProducerBase.h.

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

Definition at line 102 of file TrackProducerBase.h.