22 #include "CLHEP/Random/RandFlat.h"
25 #define PI 3.141592653
34 double getCTx(
const reco::Photon clus,
double i,
double threshold,
double innerDR=0,
double effRatio=2);
35 double getMPT(
double ptCut=0,
double etaCut=1000);
38 double getJt(
const reco::Photon cluster,
double r1=0.4,
double r2=0.04,
double jWidth=0.015,
double threshold=2);
39 double getJct(
const reco::Photon cluster,
double r1=0.4,
double r2=0.04,
double jWidth=0.015,
double threshold=2);
46 double dRDistance(
double eta1,
double phi1,
double eta2,
double phi2)
48 double deta = eta1 - eta2;
49 double dphi = (
calcDphi(phi1, phi2));
51 return sqrt(deta * deta + dphi * dphi);
56 double dphi=phi1_-phi2_;
59 while (dphi>2*
PI) dphi-=2*
PI;
60 if (dphi>
PI) dphi=2*
PI-dphi;
62 while (dphi<-2*
PI) dphi+=2*
PI;
63 if (dphi<-
PI) dphi=-2*
PI-dphi;
double getMPT(double ptCut=0, double etaCut=1000)
double getCTx(const reco::Photon clus, double i, double threshold, double innerDR=0, double effRatio=2)
CLHEP::RandFlat * theDice
edm::Handle< reco::TrackCollection > recCollection
double getJt(const reco::Photon cluster, double r1=0.4, double r2=0.04, double jWidth=0.015, double threshold=2)
double getJurassicArea(double r1, double r2, double width)
double dRDistance(double eta1, double phi1, double eta2, double phi2)
TxCalculator(const edm::Event &iEvent, const edm::EventSetup &iSetup, edm::InputTag trackLabel)
double getTx(const reco::Photon clus, double i, double threshold, double innerDR=0, double effRatio=2)
double calcDphi(double phi1_, double phi2_)
double getJct(const reco::Photon cluster, double r1=0.4, double r2=0.04, double jWidth=0.015, double threshold=2)