34 produces<SiTrackerFullGSRecHit2DCollection>();
59 std::map< DetId, edm::OwnVector<SiTrackerGSRecHit2D> > temporaryRecHits;
62 for ( ; aHit != theLastHit; ++aHit ) {
64 DetId det = aHit->geographicalId();
78 temporaryRecHits[det].push_back(aHit->clone());
83 std::auto_ptr<SiTrackerFullGSRecHit2DCollection>
88 e.
put(recHitCollection);
97 std::map<DetId,edm::OwnVector<SiTrackerGSRecHit2D> >::const_iterator
98 it = theRecHits.begin();
99 std::map<DetId,edm::OwnVector<SiTrackerGSRecHit2D> >::const_iterator
100 lastRecHit = theRecHits.end();
102 for( ; it != lastRecHit ; ++it ) {
103 theRecHitCollection.
put(it->first,it->second.begin(),it->second.end());
virtual void produce(edm::Event &e, const edm::EventSetup &c)
const TrackerGeometry * geometry
virtual ~TrackingRecHitTranslator()
void loadRecHits(std::map< DetId, edm::OwnVector< SiTrackerGSRecHit2D > > &theRecHits, SiTrackerFullGSRecHit2DCollection &theRecHitCollection) const
bool getByType(Handle< PROD > &result) const
C::const_iterator const_iterator
constant access iterator type
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void put(ID id, CI begin, CI end)
insert an object range with specified identifier
TrackingRecHitTranslator(const edm::ParameterSet &conf)
virtual void beginRun(edm::Run &run, const edm::EventSetup &es)