ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ShallowTools/plugins/ShallowTrackClustersProducer.cc
(Generate patch)

Comparing UserCode/ShallowTools/plugins/ShallowTrackClustersProducer.cc (file contents):
Revision 1.2 by bbetchar, Wed Jun 10 01:24:50 2009 UTC vs.
Revision 1.4 by bbetchar, Tue Jun 16 23:23:49 2009 UTC

# Line 96 | Line 96 | produce(edm::Event& iEvent, const edm::E
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();
# Line 143 | Line 143 | produce(edm::Event& iEvent, const edm::E
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    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines