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));
90 outputColl->push_back(output);
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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
std::string updatedStateTag_
std::vector< Track > TrackCollection
collection of Tracks
key_type key() const
Accessor for product key.
edm::EDGetTokenT< std::vector< Trajectory > > TrajectoryToken_
bool getData(T &iHolder) const
std::string forwardPredictedStateTag_
std::string combinedStateTag_
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
void run(const edm::Ref< std::vector< Trajectory > > traj_iterator, reco::TrackRef track, reco::TrackInfo &output, const TrackerGeometry *tracker)
edm::EDGetTokenT< reco::TrackCollection > trackCollectionToken_