1 #ifndef RecoAlgos_TrackSelector_h 2 #define RecoAlgos_TrackSelector_h 73 std::unique_ptr<TrackingRecHitCollection>
selHits_;
105 using namespace reco;
107 rTracks_ = evt.template getRefBeforePut<TrackCollection>();
108 rTrackExtras_ = evt.template getRefBeforePut<TrackExtraCollection>();
109 rHits_ = evt.template getRefBeforePut<TrackingRecHitCollection>();
112 = evt.template getRefBeforePut<edmNew::DetSetVector<SiPixelCluster> >();
114 = evt.template getRefBeforePut<edmNew::DetSetVector<SiStripCluster> >();
122 for(
I i = begin;
i !=
end; ++
i ) {
139 produces<reco::TrackCollection>().setBranchAlias( alias +
"Tracks" );
140 produces<reco::TrackExtraCollection>().setBranchAlias( alias +
"TrackExtras" );
141 produces<TrackingRecHitCollection>().setBranchAlias( alias +
"RecHits" );
143 produces< edmNew::DetSetVector<SiPixelCluster> >().setBranchAlias( alias +
"PixelClusters" );
144 produces< edmNew::DetSetVector<SiStripCluster> >().setBranchAlias( alias +
"StripClusters" );
T getParameter(std::string const &) const
Class to manage copying of RecHits and Clusters from Tracks.
ClusterStorer clusterStorer_
std::vector< Track > TrackCollection
collection of Tracks
std::unique_ptr< reco::TrackCollection > selTracks_
reco::TrackRefProd rTracks_
bool cloneClusters_
Clone clusters, or not? Default: true.
std::unique_ptr< reco::TrackExtraCollection > selTrackExtras_
void cloneAndStore(const I &begin, const I &end, edm::Event &evt)
Method to clone tracks, track extras and their hits and clusters. typename I = this is an interator o...
TrackCollectionStoreManager type
size_t size() const
Get the size.
TrackingRecHitRefProd rHits_
void processTrack(const reco::Track &trk)
Process a single track.
const std::complex< double > I
std::unique_ptr< TrackingRecHitCollection > selHits_
TrackCollectionStoreManager(const edm::Handle< reco::TrackCollection > &)
size_t hidx_
index to tracking rec hits
void setCloneClusters(bool w)
reco::TrackExtraRefProd rTrackExtras_
std::unique_ptr< edmNew::DetSetVector< SiPixelCluster > > selPixelClusters_
void clear()
clear records
TrackSelectorBase(const edm::ParameterSet &cfg)
edm::OrphanHandle< reco::TrackCollection > put(edm::Event &evt)
Put tracks, track extras and hits+clusters into the event.
void processAllClusters(edmNew::DetSetVector< SiPixelCluster > &pixelDsvToFill, edm::RefProd< edmNew::DetSetVector< SiPixelCluster > > refPixelClusters, edmNew::DetSetVector< SiStripCluster > &stripDsvToFill, edm::RefProd< edmNew::DetSetVector< SiStripCluster > > refStripClusters)
reco::TrackCollection collection
size_t idx_
index to track extra coll
std::unique_ptr< edmNew::DetSetVector< SiStripCluster > > selStripClusters_