CMS 3D CMS Logo

Public Types | Public Member Functions | Protected Attributes | Private Attributes

TrackProducerBase< T > Class Template Reference

#include <TrackProducerBase.h>

List of all members.

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.
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< NavigationSchooltheSchool
bool trajectoryInEvent_

Private Attributes

edm::ParameterSet conf_
edm::InputTag src_

Detailed Description

template<class T>
class TrackProducerBase< T >

Base Class To Produce Tracks

Date:
2010/09/29 12:38:37
Revision:
1.19
Author:
cerati

Definition at line 37 of file TrackProducerBase.h.


Member Typedef Documentation

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

Definition at line 40 of file TrackProducerBase.h.

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

Definition at line 41 of file TrackProducerBase.h.

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

Definition at line 39 of file TrackProducerBase.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 44 of file TrackProducerBase.h.

                                                   :
     trajectoryInEvent_(trajectoryInEvent),
        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.

{return conf_;}
template<class T>
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.

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, GsfTrackProducer, GsfTrackRefitter, MTFTrackProducer, TrackProducer, 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.

                                {
    alias.erase(alias.size()-6,alias.size());
    alias_=alias;
  }
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.

                                                                    {
    rekeyClusterRefs_ = true;
    clusterRemovalInfo_ = clusterRemovalInfo;
  }
template<class T>
void TrackProducerBase< T >::setConf ( edm::ParameterSet  conf) [inline]

Set parameter set.

Definition at line 69 of file TrackProducerBase.h.

template<class T>
void TrackProducerBase< T >::setSecondHitPattern ( Trajectory traj,
T track,
const Propagator prop,
const MeasurementTracker measTk 
)
template<class T>
void TrackProducerBase< T >::setSrc ( edm::InputTag  src,
edm::InputTag  bsSrc 
) [inline]

set label of source collection

Definition at line 72 of file TrackProducerBase.h.

{src_=src;bsSrc_=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::InputTag 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>
bool TrackProducerBase< T >::rekeyClusterRefs_ [protected]
template<class T>
edm::OrphanHandle<TrackCollection> TrackProducerBase< T >::rTracks_ [protected]

Reimplemented in TrackProducerWithSCAssociation.

Definition at line 96 of file TrackProducerBase.h.

template<class T>
edm::InputTag 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 102 of file TrackProducerBase.h.

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

Definition at line 95 of file TrackProducerBase.h.