Go to the documentation of this file.
16 produces<reco::TrackInfoCollection>();
17 produces<reco::TrackInfoTrackAssociationCollection>();
44 edm::LogInfo(
"TrackInfoProducer") <<
"Loop on trajectories";
45 std::map<reco::TrackRef, unsigned int> trackid;
51 trackid.insert(make_pair(
track,
i));
65 std::unique_ptr<reco::TrackInfoTrackAssociationCollection> TIassociationColl(
68 for (std::map<reco::TrackRef, unsigned int>::iterator ref_iter = trackid.begin(); ref_iter != trackid.end();
edm::EDGetTokenT< std::vector< Trajectory > > TrajectoryToken_
Log< level::Info, false > LogInfo
edm::EDGetTokenT< TrajTrackAssociationCollection > assoMapToken_
TrackInfoProducer(const edm::ParameterSet &iConfig)
const_iterator end() const
last iterator over the map (read only)
TrackInfoProducerAlgorithm theAlgo_
const ref_type & refProd() const
return ref-prod structure
bool getByToken(EDGetToken token, Handle< PROD > &result) const
friend struct const_iterator
std::vector< TrackInfo > TrackInfoCollection
collection of TrackInfos
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< reco::TrackCollection > trackCollectionToken_
void run(const edm::Ref< std::vector< Trajectory > > traj_iterator, reco::TrackRef track, reco::TrackInfo &output, const TrackerGeometry *tracker)
const_iterator begin() const
first iterator over the map (read only)
key_type key() const
Accessor for product key.
std::vector< Trajectory > TrajectoryCollection
std::vector< Track > TrackCollection
collection of Tracks
void produce(edm::Event &, const edm::EventSetup &) override