CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
L1TkElectronTrackMatchAlgo Namespace Reference

Functions

GlobalPoint calorimeterPosition (double phi, double eta, double e)
 
double deltaEta (const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)
 
double deltaPhi (const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)
 
double deltaPhiClusterET (BXVector< l1t::EGamma >::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk)
 
double deltaPhiClusterET (l1t::EGammaBxCollection::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk)
 
double deltaR (const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)
 
void doMatch (BXVector< l1t::EGamma >::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk, double &dph, double &dr, double &deta)
 
void doMatch (const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk, double &dph, double &dr, double &deta)
 
void doMatch (l1t::EGammaBxCollection::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk, double &dph, double &dr, double &deta)
 
void doMatchClusterET (BXVector< l1t::EGamma >::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk, double &dph, double &dr, double &deta)
 
void doMatchClusterET (l1t::EGammaBxCollection::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk, double &dph, double &dr, double &deta)
 

Function Documentation

GlobalPoint L1TkElectronTrackMatchAlgo::calorimeterPosition ( double  phi,
double  eta,
double  e 
)
double L1TkElectronTrackMatchAlgo::deltaEta ( const GlobalPoint epos,
const edm::Ptr< L1TTTrackType > &  pTrk 
)

Referenced by doMatch(), and doMatchClusterET().

double L1TkElectronTrackMatchAlgo::deltaPhi ( const GlobalPoint epos,
const edm::Ptr< L1TTTrackType > &  pTrk 
)

Referenced by doMatch().

double L1TkElectronTrackMatchAlgo::deltaPhiClusterET ( BXVector< l1t::EGamma >::const_iterator  egIter,
const edm::Ptr< L1TTTrackType > &  pTrk 
)

Referenced by doMatchClusterET().

double L1TkElectronTrackMatchAlgo::deltaPhiClusterET ( l1t::EGammaBxCollection::const_iterator  egIter,
const edm::Ptr< L1TTTrackType > &  pTrk 
)

Definition at line 63 of file L1TkElectronTrackMatchAlgo.cc.

References calorimeterPosition(), reco::deltaPhi(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), and DiDispStaMuonMonitor_cfi::pt.

63  {
64  GlobalPoint epos = L1TkElectronTrackMatchAlgo::calorimeterPosition(egIter->phi(), egIter->eta(), egIter->energy());
65  double er = epos.perp();
66  double et = egIter->et();
67  double pt = pTrk->momentum().perp();
68  double curv = pTrk->rInv();
69 
70  double dphi_curv = (asin(er * curv * pt / (2.0 * et)));
71  double trk_phi_ecal = reco::deltaPhi(pTrk->momentum().phi(), dphi_curv);
72 
73  double dphi = reco::deltaPhi(trk_phi_ecal, epos.phi());
74  return dphi;
75  }
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
T perp() const
Definition: PV3DBase.h:69
GlobalPoint calorimeterPosition(double phi, double eta, double e)
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
double L1TkElectronTrackMatchAlgo::deltaR ( const GlobalPoint epos,
const edm::Ptr< L1TTTrackType > &  pTrk 
)

Referenced by doMatch(), and doMatchClusterET().

void L1TkElectronTrackMatchAlgo::doMatch ( BXVector< l1t::EGamma >::const_iterator  egIter,
const edm::Ptr< L1TTTrackType > &  pTrk,
double &  dph,
double &  dr,
double &  deta 
)
void L1TkElectronTrackMatchAlgo::doMatch ( const GlobalPoint epos,
const edm::Ptr< L1TTTrackType > &  pTrk,
double &  dph,
double &  dr,
double &  deta 
)
void L1TkElectronTrackMatchAlgo::doMatch ( l1t::EGammaBxCollection::const_iterator  egIter,
const edm::Ptr< L1TTTrackType > &  pTrk,
double &  dph,
double &  dr,
double &  deta 
)

Definition at line 24 of file L1TkElectronTrackMatchAlgo.cc.

References calorimeterPosition(), deltaEta(), deltaPhi(), and deltaR().

28  {
29  GlobalPoint egPos = L1TkElectronTrackMatchAlgo::calorimeterPosition(egIter->phi(), egIter->eta(), egIter->energy());
30  dph = L1TkElectronTrackMatchAlgo::deltaPhi(egPos, pTrk);
32  deta = L1TkElectronTrackMatchAlgo::deltaEta(egPos, pTrk);
33  }
GlobalPoint calorimeterPosition(double phi, double eta, double e)
double deltaR(const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)
double deltaPhi(const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)
double deltaEta(const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)
void L1TkElectronTrackMatchAlgo::doMatchClusterET ( BXVector< l1t::EGamma >::const_iterator  egIter,
const edm::Ptr< L1TTTrackType > &  pTrk,
double &  dph,
double &  dr,
double &  deta 
)
void L1TkElectronTrackMatchAlgo::doMatchClusterET ( l1t::EGammaBxCollection::const_iterator  egIter,
const edm::Ptr< L1TTTrackType > &  pTrk,
double &  dph,
double &  dr,
double &  deta 
)

Definition at line 35 of file L1TkElectronTrackMatchAlgo.cc.

References calorimeterPosition(), deltaEta(), deltaPhiClusterET(), and deltaR().

39  {
40  GlobalPoint egPos = L1TkElectronTrackMatchAlgo::calorimeterPosition(egIter->phi(), egIter->eta(), egIter->energy());
43  deta = L1TkElectronTrackMatchAlgo::deltaEta(egPos, pTrk);
44  }
GlobalPoint calorimeterPosition(double phi, double eta, double e)
double deltaPhiClusterET(BXVector< l1t::EGamma >::const_iterator egIter, const edm::Ptr< L1TTTrackType > &pTrk)
double deltaR(const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)
double deltaEta(const GlobalPoint &epos, const edm::Ptr< L1TTTrackType > &pTrk)