34 hitCollectionInputTag_(conf.getParameter<edm::
InputTag>(
"hitCollectionInputTag"))
36 produces<SiTrackerFullGSRecHit2DCollection>();
61 std::map< DetId, edm::OwnVector<SiTrackerGSRecHit2D> > temporaryRecHits;
64 for ( ; aHit != theLastHit; ++aHit ) {
66 DetId det = aHit->geographicalId();
80 temporaryRecHits[det].push_back(aHit->clone());
85 std::auto_ptr<SiTrackerFullGSRecHit2DCollection>
90 e.
put(recHitCollection);
99 std::map<DetId,edm::OwnVector<SiTrackerGSRecHit2D> >::const_iterator
100 it = theRecHits.begin();
101 std::map<DetId,edm::OwnVector<SiTrackerGSRecHit2D> >::const_iterator
102 lastRecHit = theRecHits.end();
104 for( ; it != lastRecHit ; ++it ) {
105 theRecHitCollection.
put(it->first,it->second.begin(),it->second.end());
const TrackerGeometry * geometry
virtual ~TrackingRecHitTranslator()
void loadRecHits(std::map< DetId, edm::OwnVector< SiTrackerGSRecHit2D > > &theRecHits, SiTrackerFullGSRecHit2DCollection &theRecHitCollection) const
edm::InputTag hitCollectionInputTag_
C::const_iterator const_iterator
constant access iterator type
virtual void beginRun(edm::Run const &run, const edm::EventSetup &es) override
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void put(ID id, CI begin, CI end)
insert an object range with specified identifier
TrackingRecHitTranslator(const edm::ParameterSet &conf)
virtual void produce(edm::Event &e, const edm::EventSetup &c) override