96 |
|
edm::ESHandle<MagneticField> magfield; iSetup.get<IdealMagneticFieldRecord>().get(magfield); |
97 |
|
edm::ESHandle<SiStripLorentzAngle> SiStripLorentzAngle; iSetup.get<SiStripLorentzAngleRcd>().get(SiStripLorentzAngle); |
98 |
|
|
99 |
< |
edm::Handle<std::vector<reco::Track> > tracks; iEvent.getByLabel(theTracksLabel, tracks); |
99 |
> |
edm::Handle<edm::View<reco::Track> > tracks; iEvent.getByLabel(theTracksLabel, tracks); |
100 |
|
edm::Handle<TrajTrackAssociationCollection> associations; iEvent.getByLabel(theTracksLabel, associations); |
101 |
|
|
102 |
|
for( TrajTrackAssociationCollection::const_iterator association = associations->begin(); |
143 |
|
rhglobalz->at(i) = theStripDet->toGlobal(hit->localPosition()).z(); |
144 |
|
rhstrip->at(i) = theStripDet->specificTopology().strip(hit->localPosition()); |
145 |
|
rhmerr->at(i) = sqrt(theStripDet->specificTopology().measurementError(hit->localPosition(), hit->localPositionError()).uu()); |
146 |
< |
driftx->push_back(drift.x()); |
147 |
< |
drifty->push_back(drift.y()); |
148 |
< |
driftz->push_back(drift.z()); |
146 |
> |
driftx->at(i) = drift.x(); |
147 |
> |
drifty->at(i) = drift.y(); |
148 |
> |
driftz->at(i) = drift.z(); |
149 |
|
} |
150 |
|
} |
151 |
|
} |