1 #ifndef TxyCalculator_h
2 #define TxyCalculator_h
24 #define PI 3.141592653
38 double dRDistance(
double eta1,
double phi1,
double eta2,
double phi2)
40 double deta = eta1 - eta2;
41 double dphi = (
calcDphi(phi1, phi2));
43 return sqrt(deta * deta + dphi * dphi);
48 double dphi=phi1_-phi2_;
51 while (dphi>2*
PI) dphi-=2*
PI;
52 if (dphi>
PI) dphi=2*
PI-dphi;
54 while (dphi<-2*
PI) dphi+=2*
PI;
55 if (dphi<-
PI) dphi=-2*
PI-dphi;
double getTxy(const reco::Photon &p, double x, double y)
double getHollSxy(const reco::Photon &p, double thePtCut, double outerR, double innerR)
double dRDistance(double eta1, double phi1, double eta2, double phi2)
edm::Handle< reco::TrackCollection > recCollection
int getNumAllTracks(double ptCut)
TxyCalculator(const edm::Event &iEvent, const edm::EventSetup &iSetup, const edm::InputTag &trackLabel)
double calcDphi(double phi1_, double phi2_)
int getNumLocalTracks(const reco::Photon &p, double detaCut, double ptCut)