ATLAS Offline Software
Loading...
Searching...
No Matches
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 16 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 18 of file Lepton.h.

19 : m_obj(ptr), m_tag(tag) {}
const xAOD::IParticle * m_obj
Definition Lepton.h:44
std::size_t tag() const
Definition Lepton.h:30
std::size_t m_tag
Definition Lepton.h:45

◆ Lepton() [2/5]

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

Definition at line 20 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.

23 : 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 31 of file Lepton.h.

31 {
32 return static_cast<const xAOD::Electron*>(m_obj);
33 }
Electron_v1 Electron
Definition of the current "egamma version".

◆ muon()

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

Definition at line 34 of file Lepton.h.

34 {
35 return static_cast<const xAOD::Muon*>(m_obj);
36 }
Muon_v1 Muon
Reference the current persistent version:

◆ operator<()

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

Definition at line 41 of file Lepton.h.

41{ 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 40 of file Lepton.h.

40{ return m_obj; }

◆ photon()

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

Definition at line 37 of file Lepton.h.

37 {
38 return static_cast<const xAOD::Photon*>(m_obj);
39 }
Photon_v1 Photon
Definition of the current "egamma version".

◆ pt()

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

Definition at line 28 of file Lepton.h.

28{ return m_obj->pt(); }

◆ tag()

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

Definition at line 30 of file Lepton.h.

30{ return m_tag; }

◆ type()

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

Definition at line 29 of file Lepton.h.

29{ return m_obj->type(); }

Member Data Documentation

◆ m_obj

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

Definition at line 44 of file Lepton.h.

◆ m_tag

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

Definition at line 45 of file Lepton.h.


The documentation for this class was generated from the following file: