20 consumes<TrajTrackAssociationCollection>(
prod));
23 produces<reco::TrackCollection>();
24 produces<reco::TrackExtraCollection>();
25 produces<TrackingRecHitCollection>();
26 produces<vector<Trajectory> >();
27 produces<TrajTrackAssociationCollection>();
38 auto_ptr<reco::TrackCollection> recoTracks
40 auto_ptr<reco::TrackExtraCollection> recoTrackExtras
42 auto_ptr<TrackingRecHitCollection> recoHits
44 auto_ptr<vector<Trajectory> > recoTrajectories
45 (
new vector<Trajectory>);
46 auto_ptr<TrajTrackAssociationCollection> recoTrajTrackMap
50 <<
"[TrackListCombiner]";
78 <<
" [TrackListCombiner] " << labels.
module
79 <<
" : " << theAssoMap->size();
86 anAssociation = theAssoMap->begin();
87 lastAssociation = theAssoMap->end();
90 for ( ; anAssociation != lastAssociation; ++anAssociation )
101 recoTracks->push_back(aRecoTrack);
105 for(
unsigned ih=0; ih<nh; ++ih)
108 recoHits->push_back(hit);
112 recoTrajectories->push_back(*aTrajectoryRef);
118 <<
" [TrackListCombiner] allTracks : " << recoTracks->size()
119 <<
"|" << recoTrajectories->size();
127 unsigned nTracks = recoTracks->size();
128 recoTrackExtras->reserve(nTracks);
146 aTrackExtra.setHits(theRecoHitsProd,hits,nHits);
149 recoTrackExtras->push_back(aTrackExtra);
154 ev.
put(recoTrackExtras);
160 (recoTracks->at(
index)).setExtra(theTrackExtraRef);
168 ev.
put(recoTrajectories);
175 recoTrajTrackMap->insert(trajRef,tkRef);
179 ev.
put(recoTrajTrackMap);
T getParameter(std::string const &) const
const unsigned int nTracks(const reco::Vertex &sv)
friend struct const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
std::vector< Track > TrackCollection
collection of Tracks
bool innerOk() const
return true if the innermost hit is valid
key_type key() const
Accessor for product key.
const math::XYZPoint & outerPosition() const
position of the outermost hit
TrackAlgorithm
track algorithm
const math::XYZPoint & innerPosition() const
position of the innermost hit
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
edm::AssociationMap< edm::OneToOne< std::vector< Trajectory >, reco::TrackCollection, unsigned short > > TrajTrackAssociationCollection
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
edm::RefToBase< TrajectorySeed > seedRef() const
const math::XYZVector & outerMomentum() const
momentum vector at the outermost hit position
bool outerOk() const
return true if the outermost hit is valid
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
TrackListCombiner(const edm::ParameterSet &ps)
void setAlgorithm(const TrackAlgorithm a)
Track algorithm.
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
virtual void produce(edm::StreamID, edm::Event &ev, const edm::EventSetup &es) const override
PropagationDirection seedDirection() const
direction of how the hits were sorted in the original seed
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.