ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
TrigGlobEffCorr::Lepton Class Reference

#include <Lepton.h>

Collaboration diagram for TrigGlobEffCorr::Lepton:

Public Member Functions

 Lepton (const xAOD::IParticle *ptr, std::size_t tag=0)
 
 Lepton (const xAOD::Electron *ptr, std::size_t tag=0)
 
 Lepton (const xAOD::Photon *ptr, std::size_t tag=0)
 
 Lepton (const Lepton &)=default
 
Leptonoperator= (const Lepton &)=default
 
 Lepton (Lepton &&)=default
 
Leptonoperator= (Lepton &&)=default
 
float pt () const
 
xAOD::Type::ObjectType type () const
 
std::size_t tag () const
 
const xAOD::Electronelectron () const
 
const xAOD::Muonmuon () const
 
const xAOD::Photonphoton () const
 
const xAOD::IParticleparticle () const
 
bool operator< (const Lepton &rhs) const
 

Protected Attributes

const xAOD::IParticlem_obj = nullptr
 
std::size_t m_tag = 0
 

Detailed Description

Definition at line 17 of file Lepton.h.

Constructor & Destructor Documentation

◆ Lepton() [1/5]

TrigGlobEffCorr::Lepton::Lepton ( const xAOD::IParticle ptr,
std::size_t  tag = 0 
)
inline

Definition at line 20 of file Lepton.h.

20 : m_obj(ptr), m_tag(tag) {}

◆ Lepton() [2/5]

TrigGlobEffCorr::Lepton::Lepton ( const xAOD::Electron ptr,
std::size_t  tag = 0 
)
inline

Definition at line 21 of file Lepton.h.

21 : m_obj(ptr), m_tag(tag) {}

◆ Lepton() [3/5]

TrigGlobEffCorr::Lepton::Lepton ( const xAOD::Photon ptr,
std::size_t  tag = 0 
)
inline

Definition at line 22 of file Lepton.h.

22 : m_obj(ptr), m_tag(tag) {}

◆ Lepton() [4/5]

TrigGlobEffCorr::Lepton::Lepton ( const Lepton )
default

◆ Lepton() [5/5]

TrigGlobEffCorr::Lepton::Lepton ( Lepton &&  )
default

Member Function Documentation

◆ electron()

const xAOD::Electron* TrigGlobEffCorr::Lepton::electron ( ) const
inline

Definition at line 30 of file Lepton.h.

30 { return static_cast<const xAOD::Electron*>(m_obj); }

◆ muon()

const xAOD::Muon* TrigGlobEffCorr::Lepton::muon ( ) const
inline

Definition at line 31 of file Lepton.h.

31 { return static_cast<const xAOD::Muon*>(m_obj); }

◆ operator<()

bool TrigGlobEffCorr::Lepton::operator< ( const Lepton rhs) const
inline

Definition at line 34 of file Lepton.h.

34 { return m_obj<rhs.m_obj; }

◆ operator=() [1/2]

Lepton& TrigGlobEffCorr::Lepton::operator= ( const Lepton )
default

◆ operator=() [2/2]

Lepton& TrigGlobEffCorr::Lepton::operator= ( Lepton &&  )
default

◆ particle()

const xAOD::IParticle* TrigGlobEffCorr::Lepton::particle ( ) const
inline

Definition at line 33 of file Lepton.h.

33 { return m_obj; }

◆ photon()

const xAOD::Photon* TrigGlobEffCorr::Lepton::photon ( ) const
inline

Definition at line 32 of file Lepton.h.

32 { return static_cast<const xAOD::Photon*>(m_obj); }

◆ pt()

float TrigGlobEffCorr::Lepton::pt ( ) const
inline

Definition at line 27 of file Lepton.h.

27 { return m_obj->pt(); }

◆ tag()

std::size_t TrigGlobEffCorr::Lepton::tag ( ) const
inline

Definition at line 29 of file Lepton.h.

29 { return m_tag; }

◆ type()

xAOD::Type::ObjectType TrigGlobEffCorr::Lepton::type ( ) const
inline

Definition at line 28 of file Lepton.h.

28 { return m_obj->type(); }

Member Data Documentation

◆ m_obj

const xAOD::IParticle* TrigGlobEffCorr::Lepton::m_obj = nullptr
protected

Definition at line 36 of file Lepton.h.

◆ m_tag

std::size_t TrigGlobEffCorr::Lepton::m_tag = 0
protected

Definition at line 37 of file Lepton.h.


The documentation for this class was generated from the following file:
TrigGlobEffCorr::Lepton::m_obj
const xAOD::IParticle * m_obj
Definition: Lepton.h:36
xAOD::IParticle::type
virtual Type::ObjectType type() const =0
The type of the object as a simple enumeration.
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
TrigGlobEffCorr::Lepton::tag
std::size_t tag() const
Definition: Lepton.h:29
xAOD::IParticle::pt
virtual double pt() const =0
The transverse momentum ( ) of the particle.
xAOD::Electron_v1
Definition: Electron_v1.h:34
xAOD::Photon_v1
Definition: Photon_v1.h:37
TrigGlobEffCorr::Lepton::m_tag
std::size_t m_tag
Definition: Lepton.h:37