33 produces<std::vector<int> >();
39 trackToken = consumes<reco::TrackCollection>(trackCollectionTag);
46 std::auto_ptr<std::vector<int> >
SimTrackIds(
new std::vector<int>());
52 reco::TrackCollection::const_iterator aTrack = trackCollection->begin();
53 reco::TrackCollection::const_iterator lastTrack = trackCollection->end();
56 for ( ; aTrack!=lastTrack; ++aTrack,++
index ) {
64 SimTrackIds->push_back(SimTrackId);
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > trackToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< int > SimTrackIds
const int & simtrackId() const
virtual void produce(edm::Event &e, const edm::EventSetup &es) override
SimTrackIdProducer(const edm::ParameterSet &conf)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
TrackingRecHitCollection::base::const_iterator trackingRecHit_iterator
iterator over a vector of reference to TrackingRecHit in the same collection