22 #define PI 3.141592653
25 class HepRandomEngine;
35 double getCTx(
const reco::Photon& clus,
double i,
double threshold,
double innerDR=0,
double effRatio=2);
36 double getMPT(
double ptCut=0,
double etaCut=1000);
39 double getJt(
const reco::Photon& cluster,
double r1=0.4,
double r2=0.04,
double jWidth=0.015,
double threshold=2);
40 double getJct(
const reco::Photon& cluster,
double r1=0.4,
double r2=0.04,
double jWidth=0.015,
double threshold=2);
47 double dRDistance(
double eta1,
double phi1,
double eta2,
double phi2)
49 double deta = eta1 - eta2;
50 double dphi = (
calcDphi(phi1, phi2));
52 return sqrt(deta * deta + dphi * dphi);
57 double dphi=phi1_-phi2_;
60 while (dphi>2*
PI) dphi-=2*
PI;
61 if (dphi>
PI) dphi=2*
PI-dphi;
63 while (dphi<-2*
PI) dphi+=2*
PI;
64 if (dphi<-
PI) dphi=-2*
PI-dphi;
double getMPT(double ptCut=0, double etaCut=1000)
double getJt(const reco::Photon &cluster, double r1=0.4, double r2=0.04, double jWidth=0.015, double threshold=2)
edm::Handle< reco::TrackCollection > recCollection
double getJurassicArea(double r1, double r2, double width)
double dRDistance(double eta1, double phi1, double eta2, double phi2)
double getTx(const reco::Photon &clus, double i, double threshold, double innerDR=0, double effRatio=2)
double getJct(const reco::Photon &cluster, double r1=0.4, double r2=0.04, double jWidth=0.015, double threshold=2)
double calcDphi(double phi1_, double phi2_)
CLHEP::HepRandomEngine * theDice
TxCalculator(const edm::Event &iEvent, const edm::EventSetup &iSetup, const edm::InputTag &trackLabel)
double getCTx(const reco::Photon &clus, double i, double threshold, double innerDR=0, double effRatio=2)