17 produces<reco::TrackInfoCollection>();
18 produces<reco::TrackInfoTrackAssociationCollection>();
43 theEvent.
getByLabel(TkTag,TrajectoryCollection);
52 std::vector<Trajectory>::const_iterator traj_iterator;
53 edm::LogInfo(
"TrackInfoProducer") <<
"Loop on trajectories";
54 std::map<reco::TrackRef,unsigned int> trackid;
60 trackid.insert(make_pair(track,i));
75 rTrackInfo=theEvent.
put(outputColl);
77 for(std::map<reco::TrackRef,unsigned int>::iterator ref_iter=trackid.begin();ref_iter!=trackid.end();ref_iter++){
82 theEvent.
put(TIassociationColl);
T getParameter(std::string const &) const
TrackInfoProducer(const edm::ParameterSet &iConfig)
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
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
TrackInfoProducerAlgorithm theAlgo_
key_type key() const
Accessor for product key.
std::vector< Trajectory > TrajectoryCollection
void run(const edm::Ref< std::vector< Trajectory > > traj_iterator, reco::TrackRef track, reco::TrackInfo &output, const TrackerGeometry *tracker)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")