13 TrajectoryToken_(consumes<std::vector<
Trajectory> >(iConfig.getParameter<edm::
InputTag>(
"cosmicTracks"))),
17 produces<reco::TrackInfoCollection>();
18 produces<reco::TrackInfoTrackAssociationCollection>();
50 std::vector<Trajectory>::const_iterator traj_iterator;
51 edm::LogInfo(
"TrackInfoProducer") <<
"Loop on trajectories";
52 std::map<reco::TrackRef,unsigned int> trackid;
58 trackid.insert(make_pair(track,i));
73 rTrackInfo=theEvent.
put(outputColl);
75 for(std::map<reco::TrackRef,unsigned int>::iterator ref_iter=trackid.begin();ref_iter!=trackid.end();ref_iter++){
80 theEvent.
put(TIassociationColl);
edm::EDGetTokenT< TrajTrackAssociationCollection > assoMapToken_
TrackInfoProducer(const edm::ParameterSet &iConfig)
friend struct const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Track > TrackCollection
collection of Tracks
key_type key() const
Accessor for product key.
edm::EDGetTokenT< std::vector< Trajectory > > TrajectoryToken_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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)
edm::EDGetTokenT< reco::TrackCollection > trackCollectionToken_
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")