53 double er = epos.
perp();
54 double curv = pTrk->rInv();
56 double dphi_curv = (asin(er * curv / (2.0)));
57 double trk_phi_ecal =
reco::deltaPhi(pTrk->momentum().phi(), dphi_curv);
65 double er = epos.
perp();
66 double et = egIter->et();
67 double pt = pTrk->momentum().perp();
68 double curv = pTrk->rInv();
70 double dphi_curv = (asin(er * curv * pt / (2.0 * et)));
71 double trk_phi_ecal =
reco::deltaPhi(pTrk->momentum().phi(), dphi_curv);
81 return sqrt(dPhi * dPhi + dEta * dEta);
85 double corr_eta = 999.0;
86 double er = epos.
perp();
88 double z0 = pTrk->POCA().z();
91 theta = atan(er / fabs(ez - z0));
93 theta =
M_PI - atan(er / fabs(ez - z0));
94 corr_eta = -1.0 *
log(
tan(theta / 2.0));
95 double deleta = (corr_eta - pTrk->momentum().eta());
103 double depth = 0.89 * (7.7 +
log(e));
104 double theta = 2 * atan(
exp(-1 * eta));
110 x = r *
cos(phi) *
sin(theta);
111 y = r *
sin(phi) *
sin(theta);
116 x = r *
cos(phi) *
sin(theta);
117 y = r *
sin(phi) *
sin(theta);
constexpr double deltaPhi(double phi1, double phi2)
static std::vector< std::string > checklist log
GlobalPoint calorimeterPosition(double phi, double eta, double e)
Sin< T >::type sin(const T &t)
Geom::Phi< T > phi() const
void doMatchClusterET(BXVector< l1t::EGamma >::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk, double &dph, double &dr, double &deta)
float constexpr max_eb_eta
Geom::Theta< T > theta() const
Exp< T >::type exp(const T &t)
double deltaPhiClusterET(BXVector< l1t::EGamma >::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk)
std::vector< T >::const_iterator const_iterator
double deltaR(const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)
double deltaPhi(const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
void doMatch(BXVector< l1t::EGamma >::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk, double &dph, double &dr, double &deta)
double deltaEta(const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)