CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TauL1TPair Class Reference

#include <L1TTauOffline.h>

Public Member Functions

double dR ()
 
double eta () const
 
double l1tEta () const
 
double l1tIso () const
 
double l1tPhi () const
 
double l1tPt () const
 
double phi () const
 
double pt () const
 
 TauL1TPair (const reco::PFTau *tau, const l1t::Tau *regTau)
 
 TauL1TPair (const TauL1TPair &tauL1tPair)
 
 ~TauL1TPair ()
 

Private Attributes

double m_eta
 
double m_phi_bar
 
double m_phi_end
 
const l1t::Taum_regTau
 
const reco::PFTaum_tau
 

Detailed Description

Definition at line 54 of file L1TTauOffline.h.

Constructor & Destructor Documentation

◆ TauL1TPair() [1/2]

TauL1TPair::TauL1TPair ( const reco::PFTau tau,
const l1t::Tau regTau 
)
inline

Definition at line 56 of file L1TTauOffline.h.

57  : m_tau(tau), m_regTau(regTau), m_eta(999.), m_phi_bar(999.), m_phi_end(999.){};

◆ TauL1TPair() [2/2]

TauL1TPair::TauL1TPair ( const TauL1TPair tauL1tPair)

Definition at line 29 of file L1TTauOffline.cc.

29  {
30  m_tau = tauL1tPair.m_tau;
31  m_regTau = tauL1tPair.m_regTau;
32 
33  m_eta = tauL1tPair.m_eta;
34  m_phi_bar = tauL1tPair.m_phi_bar;
35  m_phi_end = tauL1tPair.m_phi_end;
36 }

References m_eta, m_phi_bar, m_phi_end, m_regTau, and m_tau.

◆ ~TauL1TPair()

TauL1TPair::~TauL1TPair ( )
inline

Definition at line 61 of file L1TTauOffline.h.

61 {};

Member Function Documentation

◆ dR()

double TauL1TPair::dR ( )

Definition at line 38 of file L1TTauOffline.cc.

38 { return deltaR(m_regTau->eta(), m_regTau->phi(), eta(), phi()); }

References reco::deltaR(), and PVValHelper::eta.

Referenced by L1TTauOffline::getTauL1tPairs().

◆ eta()

double TauL1TPair::eta ( ) const
inline

Definition at line 64 of file L1TTauOffline.h.

64 { return m_tau->eta(); };

References reco::LeafCandidate::eta(), and m_tau.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

◆ l1tEta()

double TauL1TPair::l1tEta ( ) const
inline

Definition at line 70 of file L1TTauOffline.h.

70 { return m_regTau ? m_regTau->eta() : -5.; };

◆ l1tIso()

double TauL1TPair::l1tIso ( ) const
inline

Definition at line 68 of file L1TTauOffline.h.

68 { return m_regTau ? m_regTau->hwIso() : -1.; };

References l1t::L1Candidate::hwIso(), and m_regTau.

◆ l1tPhi()

double TauL1TPair::l1tPhi ( ) const
inline

Definition at line 69 of file L1TTauOffline.h.

69 { return m_regTau ? m_regTau->phi() : -5.; };

References m_regTau, and reco::LeafCandidate::phi().

◆ l1tPt()

double TauL1TPair::l1tPt ( ) const
inline

Definition at line 67 of file L1TTauOffline.h.

67 { return m_regTau ? m_regTau->pt() : -1.; };

References m_regTau, and reco::LeafCandidate::pt().

Referenced by L1TTauOffline::getTauL1tPairs().

◆ phi()

double TauL1TPair::phi ( void  ) const
inline

Definition at line 65 of file L1TTauOffline.h.

65 { return m_tau->phi(); };

References m_tau, and reco::LeafCandidate::phi().

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

◆ pt()

double TauL1TPair::pt ( ) const
inline

Member Data Documentation

◆ m_eta

double TauL1TPair::m_eta
private

Definition at line 76 of file L1TTauOffline.h.

Referenced by TauL1TPair().

◆ m_phi_bar

double TauL1TPair::m_phi_bar
private

Definition at line 77 of file L1TTauOffline.h.

Referenced by TauL1TPair().

◆ m_phi_end

double TauL1TPair::m_phi_end
private

Definition at line 78 of file L1TTauOffline.h.

Referenced by TauL1TPair().

◆ m_regTau

const l1t::Tau* TauL1TPair::m_regTau
private

Definition at line 74 of file L1TTauOffline.h.

Referenced by l1tIso(), l1tPhi(), l1tPt(), and TauL1TPair().

◆ m_tau

const reco::PFTau* TauL1TPair::m_tau
private

Definition at line 70 of file L1TTauOffline.h.

Referenced by eta(), phi(), pt(), and TauL1TPair().

TauL1TPair::m_regTau
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:74
TauL1TPair::m_eta
double m_eta
Definition: L1TTauOffline.h:76
metsig::tau
Definition: SignAlgoResolutions.h:49
TauL1TPair::m_tau
const reco::PFTau * m_tau
Definition: L1TTauOffline.h:70
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
TauL1TPair::m_phi_end
double m_phi_end
Definition: L1TTauOffline.h:78
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
reco::LeafCandidate::eta
double eta() const final
momentum pseudorapidity
Definition: LeafCandidate.h:152
TauL1TPair::m_phi_bar
double m_phi_bar
Definition: L1TTauOffline.h:77
TauL1TPair::phi
double phi() const
Definition: L1TTauOffline.h:65
reco::LeafCandidate::phi
double phi() const final
momentum azimuthal angle
Definition: LeafCandidate.h:148
TauL1TPair::eta
double eta() const
Definition: L1TTauOffline.h:64
l1t::L1Candidate::hwIso
int hwIso() const
Definition: L1Candidate.h:39