#include <dRxyCalculator.h>
|
double | calcDphi (double phi1_, double phi2_) |
|
double | dRDistance (double eta1, double phi1, double eta2, double phi2) |
|
Definition at line 26 of file dRxyCalculator.h.
double dRxyCalculator::calcDphi |
( |
double |
phi1_, |
|
|
double |
phi2_ |
|
) |
| |
|
inlineprivate |
Definition at line 41 of file dRxyCalculator.h.
References PI.
Referenced by dRDistance().
43 double dphi=phi1_-phi2_;
46 while (dphi>2*
PI) dphi-=2*
PI;
47 if (dphi>
PI) dphi=2*
PI-dphi;
49 while (dphi<-2*
PI) dphi+=2*
PI;
50 if (dphi<-
PI) dphi=-2*
PI-dphi;
double dRxyCalculator::dRDistance |
( |
double |
eta1, |
|
|
double |
phi1, |
|
|
double |
eta2, |
|
|
double |
phi2 |
|
) |
| |
|
inlineprivate |
double dRxyCalculator::getDRxy |
( |
const reco::Photon & |
cluster, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
Definition at line 20 of file dRxyCalculator.cc.
References PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::LeafCandidate::eta(), reco::LeafCandidate::phi(), RecoTauCleanerPlugins::pt, dt_dqm_sourceclient_common_cff::reco, python.multivaluedict::sort(), and detailsBasic3DVector::y.
Referenced by HiEgammaIsolationProducer::produce().
25 double eta1 =
p.eta();
26 double phi1 =
p.phi();
28 std::vector<double> Rxy;
30 for(reco::TrackCollection::const_iterator
33 double pt = recTrack->pt();
34 double eta2 = recTrack->eta();
35 double phi2 = recTrack->phi();
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];
edm::Handle< reco::TrackCollection > recCollection
double dRDistance(double eta1, double phi1, double eta2, double phi2)