13 TrajectoryToken_(consumes<
std::vector<
Trajectory> >(iConfig.getParameter<
edm::InputTag>(
"cosmicTracks"))),
14 trackCollectionToken_(consumes<
reco::
TrackCollection>(iConfig.getParameter<
edm::InputTag>(
"cosmicTracks"))),
17 produces<reco::TrackInfoCollection>();
18 produces<reco::TrackInfoTrackAssociationCollection>();
49 std::vector<Trajectory>::const_iterator traj_iterator;
50 edm::LogInfo(
"TrackInfoProducer") <<
"Loop on trajectories";
51 std::map<reco::TrackRef,unsigned int> trackid;
57 trackid.insert(make_pair(track,i));
75 for(std::map<reco::TrackRef,unsigned int>::iterator ref_iter=trackid.begin();ref_iter!=trackid.end();++ref_iter){
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
const_iterator end() const
last iterator over the map (read only)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Track > TrackCollection
collection of Tracks
def setup(process, global_tag, zero_tesla=False)
key_type key() const
Accessor for product key.
edm::EDGetTokenT< std::vector< Trajectory > > TrajectoryToken_
const ref_type & refProd() const
return ref-prod structure
virtual void produce(edm::Event &, const edm::EventSetup &)
std::vector< TrackInfo > TrackInfoCollection
collection of TrackInfos
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)
const_iterator begin() const
first iterator over the map (read only)
edm::EDGetTokenT< reco::TrackCollection > trackCollectionToken_