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

Constructor & Destructor Documentation

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

Definition at line 52 of file L1TTauOffline.h.

52  :
53  m_tau(tau), m_regTau(regTau), m_eta(999.), m_phi_bar(999.), m_phi_end(999.) { };
double m_phi_bar
Definition: L1TTauOffline.h:75
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:72
double m_eta
Definition: L1TTauOffline.h:74
const reco::PFTau * m_tau
Definition: L1TTauOffline.h:67
double m_phi_end
Definition: L1TTauOffline.h:76
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 
31  m_tau = tauL1tPair.m_tau;
32  m_regTau = tauL1tPair.m_regTau;
33 
34  m_eta = tauL1tPair.m_eta;
35  m_phi_bar = tauL1tPair.m_phi_bar;
36  m_phi_end = tauL1tPair.m_phi_end;
37 
38 }
double m_phi_bar
Definition: L1TTauOffline.h:75
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:72
double m_eta
Definition: L1TTauOffline.h:74
const reco::PFTau * m_tau
Definition: L1TTauOffline.h:67
double m_phi_end
Definition: L1TTauOffline.h:76
TauL1TPair::~TauL1TPair ( )
inline

Definition at line 57 of file L1TTauOffline.h.

References dR().

57 { };

Member Function Documentation

double TauL1TPair::dR ( )

Definition at line 40 of file L1TTauOffline.cc.

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

Referenced by L1TTauOffline::getTauL1tPairs(), and ~TauL1TPair().

40  {
41  return deltaR(m_regTau->eta(),m_regTau->phi(),eta(),phi());
42 }
double eta() const final
momentum pseudorapidity
double phi() const
Definition: L1TTauOffline.h:61
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:72
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
double eta() const
Definition: L1TTauOffline.h:60
double phi() const final
momentum azimuthal angle
double TauL1TPair::eta ( ) const
inline

Definition at line 60 of file L1TTauOffline.h.

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

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

60 { return m_tau->eta(); };
double eta() const final
momentum pseudorapidity
const reco::PFTau * m_tau
Definition: L1TTauOffline.h:67
double TauL1TPair::l1tEta ( ) const
inline

Definition at line 67 of file L1TTauOffline.h.

67 { return m_regTau ? m_regTau->eta() : -5.; };
double eta() const final
momentum pseudorapidity
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:72
double TauL1TPair::l1tIso ( ) const
inline

Definition at line 65 of file L1TTauOffline.h.

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

65 { return m_regTau ? m_regTau->hwIso() : -1.; };
int hwIso() const
Definition: L1Candidate.h:52
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:72
double TauL1TPair::l1tPhi ( ) const
inline

Definition at line 66 of file L1TTauOffline.h.

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

66 { return m_regTau ? m_regTau->phi() : -5.; };
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:72
double phi() const final
momentum azimuthal angle
double TauL1TPair::l1tPt ( ) const
inline

Definition at line 64 of file L1TTauOffline.h.

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

Referenced by L1TTauOffline::getTauL1tPairs().

64 { return m_regTau ? m_regTau->pt() : -1.; };
double pt() const final
transverse momentum
const l1t::Tau * m_regTau
Definition: L1TTauOffline.h:72
double TauL1TPair::phi ( void  ) const
inline

Definition at line 61 of file L1TTauOffline.h.

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

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

61 { return m_tau->phi(); };
const reco::PFTau * m_tau
Definition: L1TTauOffline.h:67
double phi() const final
momentum azimuthal angle
double TauL1TPair::pt ( ) const
inline

Member Data Documentation

double TauL1TPair::m_eta
private

Definition at line 74 of file L1TTauOffline.h.

Referenced by TauL1TPair().

double TauL1TPair::m_phi_bar
private

Definition at line 75 of file L1TTauOffline.h.

Referenced by TauL1TPair().

double TauL1TPair::m_phi_end
private

Definition at line 76 of file L1TTauOffline.h.

Referenced by TauL1TPair().

const l1t::Tau* TauL1TPair::m_regTau
private

Definition at line 72 of file L1TTauOffline.h.

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

const reco::PFTau* TauL1TPair::m_tau
private

Definition at line 67 of file L1TTauOffline.h.

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