55 produces<reco::TrackInfoCollection>();
56 produces<reco::TrackInfoTrackAssociationCollection>();
80 edm::LogInfo(
"TrackInfoProducer") <<
"Loop on trajectories";
81 std::map<reco::TrackRef, unsigned int> trackid;
87 trackid.insert(make_pair(
track,
i));
101 std::unique_ptr<reco::TrackInfoTrackAssociationCollection> TIassociationColl(
104 for (std::map<reco::TrackRef, unsigned int>::iterator ref_iter = trackid.begin(); ref_iter != trackid.end();
~TrackInfoProducer() override
edm::EDGetTokenT< TrajTrackAssociationCollection > assoMapToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
TrackInfoProducer(const edm::ParameterSet &iConfig)
friend struct const_iterator
void produce(edm::Event &, const edm::EventSetup &) override
std::string updatedStateTag_
std::vector< Track > TrackCollection
collection of Tracks
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const ref_type & refProd() const
return ref-prod structure
edm::EDGetTokenT< std::vector< Trajectory > > TrajectoryToken_
key_type key() const
Accessor for product key.
const_iterator end() const
last iterator over the map (read only)
std::string forwardPredictedStateTag_
std::string combinedStateTag_
#define DEFINE_FWK_MODULE(type)
std::vector< TrackInfo > TrackInfoCollection
collection of TrackInfos
std::string backwardPredictedStateTag_
Log< level::Info, false > LogInfo
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkGeomToken_
TrackInfoProducerAlgorithm theAlgo_
std::vector< Trajectory > TrajectoryCollection
const_iterator begin() const
first iterator over the map (read only)
void run(const edm::Ref< std::vector< Trajectory > > traj_iterator, reco::TrackRef track, reco::TrackInfo &output, const TrackerGeometry *tracker)
edm::EDGetTokenT< reco::TrackCollection > trackCollectionToken_