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 53 of file L1TTauOffline.h.

Constructor & Destructor Documentation

◆ TauL1TPair() [1/2]

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

Definition at line 55 of file L1TTauOffline.h.

56  : m_tau(tau), m_regTau(regTau), m_eta(999.), m_phi_bar(999.), m_phi_end(999.){};
double m_phi_bar
Definition: L1TTauOffline.h:76
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:73
double m_eta
Definition: L1TTauOffline.h:75
const reco::PFTau * m_tau
Definition: L1TTauOffline.h:69
double m_phi_end
Definition: L1TTauOffline.h:77

◆ TauL1TPair() [2/2]

TauL1TPair::TauL1TPair ( const TauL1TPair tauL1tPair)

Definition at line 29 of file L1TTauOffline.cc.

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

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 }
double m_phi_bar
Definition: L1TTauOffline.h:76
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:73
double m_eta
Definition: L1TTauOffline.h:75
const reco::PFTau * m_tau
Definition: L1TTauOffline.h:69
double m_phi_end
Definition: L1TTauOffline.h:77

◆ ~TauL1TPair()

TauL1TPair::~TauL1TPair ( )
inline

Definition at line 60 of file L1TTauOffline.h.

60 {};

Member Function Documentation

◆ dR()

double TauL1TPair::dR ( )

Definition at line 38 of file L1TTauOffline.cc.

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

Referenced by L1TTauOffline::getTauL1tPairs().

38 { return deltaR(m_regTau->eta(), m_regTau->phi(), eta(), phi()); }
double phi() const
Definition: L1TTauOffline.h:64
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:73
double eta() const
Definition: L1TTauOffline.h:63
double phi() const final
momentum azimuthal angle
double eta() const final
momentum pseudorapidity

◆ eta()

double TauL1TPair::eta ( ) const
inline

Definition at line 63 of file L1TTauOffline.h.

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

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

63 { return m_tau->eta(); };
const reco::PFTau * m_tau
Definition: L1TTauOffline.h:69
double eta() const final
momentum pseudorapidity

◆ l1tEta()

double TauL1TPair::l1tEta ( ) const
inline

Definition at line 69 of file L1TTauOffline.h.

69 { return m_regTau ? m_regTau->eta() : -5.; };
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:73
double eta() const final
momentum pseudorapidity

◆ l1tIso()

double TauL1TPair::l1tIso ( ) const
inline

Definition at line 67 of file L1TTauOffline.h.

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

67 { return m_regTau ? m_regTau->hwIso() : -1.; };
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:73
int hwIso() const
Definition: L1Candidate.h:39

◆ l1tPhi()

double TauL1TPair::l1tPhi ( ) const
inline

Definition at line 68 of file L1TTauOffline.h.

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

68 { return m_regTau ? m_regTau->phi() : -5.; };
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:73
double phi() const final
momentum azimuthal angle

◆ l1tPt()

double TauL1TPair::l1tPt ( ) const
inline

Definition at line 66 of file L1TTauOffline.h.

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

Referenced by L1TTauOffline::getTauL1tPairs().

66 { return m_regTau ? m_regTau->pt() : -1.; };
double pt() const final
transverse momentum
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:73

◆ phi()

double TauL1TPair::phi ( void  ) const
inline

Definition at line 64 of file L1TTauOffline.h.

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

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

64 { return m_tau->phi(); };
const reco::PFTau * m_tau
Definition: L1TTauOffline.h:69
double phi() const final
momentum azimuthal angle

◆ pt()

double TauL1TPair::pt ( ) const
inline

Member Data Documentation

◆ m_eta

double TauL1TPair::m_eta
private

Definition at line 75 of file L1TTauOffline.h.

Referenced by TauL1TPair().

◆ m_phi_bar

double TauL1TPair::m_phi_bar
private

Definition at line 76 of file L1TTauOffline.h.

Referenced by TauL1TPair().

◆ m_phi_end

double TauL1TPair::m_phi_end
private

Definition at line 77 of file L1TTauOffline.h.

Referenced by TauL1TPair().

◆ m_regTau

const l1t::Tau* TauL1TPair::m_regTau
private

Definition at line 73 of file L1TTauOffline.h.

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

◆ m_tau

const reco::PFTau* TauL1TPair::m_tau
private

Definition at line 69 of file L1TTauOffline.h.

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