CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackProducerBase.h
Go to the documentation of this file.
1 #ifndef TrackProducerBase_h
2 #define TrackProducerBase_h
3 
11 #include "AlgoProductTraits.h"
12 
17 
20 
22 
28 
29 #include<tuple>
30 
31 class Propagator;
34 class TrackerGeometry;
35 class TrajectoryFitter;
37 class NavigationSchool;
38 
39 template <class T>
41 public:
45 public:
46 
48  TrackProducerBase(bool trajectoryInEvent = false):
49  trajectoryInEvent_(trajectoryInEvent),
51 
53  virtual ~TrackProducerBase();
54 
56  virtual void getFromES(const edm::EventSetup&,
63 
68 
70  virtual void produce(edm::Event&, const edm::EventSetup&) = 0;
71 
73  void setConf(const edm::ParameterSet& conf){conf_=conf;}
74 
77  src_ = src; bsSrc_ = bsSrc; mteSrc_ = mteSrc;
78  }
79 
82  alias.erase(alias.size()-6,alias.size());
83  alias_=alias;
84  }
85 
88  rekeyClusterRefs_ = true;
90  }
91 
92  void setSecondHitPattern(Trajectory* traj, T& track,
93  const Propagator* prop, const MeasurementTrackerEvent* measTk,
94  const TrackerTopology* ttopo);
95 
96  const edm::ParameterSet& getConf() const {return conf_;}
97  private:
100  protected:
106 
109 
111 
112 };
113 
114 #include "RecoTracker/TrackProducer/interface/TrackProducerBase.icc"
115 
116 #endif
virtual void getFromEvt(edm::Event &, edm::Handle< TrackCandidateCollection > &, reco::BeamSpot &)
Get TrackCandidateCollection from the Event (needed by TrackProducer)
edm::ParameterSet conf_
edm::InputTag clusterRemovalInfo_
void setSecondHitPattern(Trajectory *traj, T &track, const Propagator *prop, const MeasurementTrackerEvent *measTk, const TrackerTopology *ttopo)
void setClusterRemovalInfo(const edm::InputTag &clusterRemovalInfo)
Sets the information on cluster removal, and turns it on.
void setAlias(std::string alias)
set the aliases of produced collections
void setConf(const edm::ParameterSet &conf)
Set parameter set.
tuple clusterRemovalInfo
std::vector< reco::GsfTrack > TrackCollection
virtual void produce(edm::Event &, const edm::EventSetup &)=0
Method where the procduction take place. To be implemented in concrete classes.
TrackProducerBase(bool trajectoryInEvent=false)
Constructor.
edm::EDGetTokenT< MeasurementTrackerEvent > mteSrc_
void setSrc(const edm::EDGetToken &src, const edm::EDGetTokenT< reco::BeamSpot > &bsSrc, const edm::EDGetTokenT< MeasurementTrackerEvent > &mteSrc)
set label of source collection
virtual ~TrackProducerBase()
Destructor.
edm::EDGetToken src_
std::vector< AlgoProduct > AlgoProductCollection
edm::EDGetTokenT< reco::BeamSpot > bsSrc_
edm::ESHandle< NavigationSchool > theSchool
volatile std::atomic< bool > shutdown_flag false
edm::OrphanHandle< TrackCollection > rTracks_
long double T
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.