1 #ifndef TxyCalculator_h
2 #define TxyCalculator_h
25 #define PI 3.141592653
39 double dRDistance(
double eta1,
double phi1,
double eta2,
double phi2)
41 double deta = eta1 - eta2;
42 double dphi = (
calcDphi(phi1, phi2));
44 return sqrt(deta * deta + dphi * dphi);
49 double dphi=phi1_-phi2_;
52 while (dphi>2*
PI) dphi-=2*
PI;
53 if (dphi>
PI) dphi=2*
PI-dphi;
55 while (dphi<-2*
PI) dphi+=2*
PI;
56 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)