25 double eta1 = p->eta();
26 double phi1 = p->phi();
28 std::vector<double> Rxy;
30 for(reco::TrackCollection::const_iterator
31 recTrack = recCollection->begin(); recTrack!= recCollection->end(); recTrack++)
33 double pt = recTrack->pt();
34 double eta2 = recTrack->eta();
35 double phi2 = recTrack->phi();
40 double dR = dRDistance(eta1,phi1,eta2,phi2);
45 sort(Rxy.begin(), Rxy.end());
49 if(dR < Rxy[Rxy.size()-1])
51 Rxy[Rxy.size()-1] = dR;
52 sort(Rxy.begin(), Rxy.end());
57 if (Rxy.size()<
y) rxy=4;
else rxy = Rxy[(int)y-1];
double getDRxy(const reco::SuperClusterRef cluster, double x, double y)
dRxyCalculator(const edm::Event &iEvent, const edm::EventSetup &iSetup, edm::InputTag trackLabel)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const