ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::L2IsoMuon_v1 Class Reference

Class describing isolation info for muons reconstructed in the LVL2 trigger. More...

#include <L2IsoMuon_v1.h>

Inheritance diagram for xAOD::L2IsoMuon_v1:
Collaboration diagram for xAOD::L2IsoMuon_v1:

Public Member Functions

 L2IsoMuon_v1 ()
 Constructor.
4-momentum setter functions
void setPt (float pt)
 Set the transverse momentum ( \(p_T\)) of the muon.
void setEta (float eta)
 Set the pseudorapidity ( \(\eta\)) of the muon.
void setPhi (float phi)
 Set the azimuthal angle ( \(\phi\)) of the muon.
Properties specific to the LVL2 muon isolation
uint32_t roiWord () const
 Get the RoI ID of the seeding muon.
void setRoiWord (uint32_t value)
 Set the RoI ID of the seeding muon.
float charge () const
 get seeding muon charge
void setCharge (float value)
 set seeding muon charge
int errorFlag () const
 get algorithm error flag
void setErrorFlag (int value)
 set algorithm error flag
float sumPt01 () const
 get ptcone radius DeltaR<0.1
void setSumPt01 (float value)
 set ptcone radius DeltaR<0.1
float sumPt02 () const
 get ptcone radius DeltaR<0.2
void setSumPt02 (float value)
 set ptcone radius DeltaR<0.2
float sumPt03 () const
 get ptcone radius DeltaR<0.3
void setSumPt03 (float value)
 set ptcone radius DeltaR<0.3
float sumPt04 () const
 get ptcone radius DeltaR<0.4
void setSumPt04 (float value)
 set ptcone radius DeltaR<0.4
float sumEt01 () const
 get ptcone radius DeltaR<0.1
void setSumEt01 (float value)
 set ptcone radius DeltaR<0.1
float sumEt02 () const
 get etcone radius DeltaR<0.2
void setSumEt02 (float value)
 set etcone radius DeltaR<0.2
float sumEt03 () const
 get etcone radius DeltaR<0.3
void setSumEt03 (float value)
 set etcone radius DeltaR<0.3
float sumEt04 () const
 get etcone radius DeltaR<0.4
void setSumEt04 (float value)
 set etcone radius DeltaR<0.4
Functions for getting and setting user properties
template<class T>
XAOD_AUXDATA_DEPRECATED T & auxdata (const std::string &name, const std::string &clsname="")
 Fetch an aux data variable, as a non-const reference.
template<class T>
XAOD_AUXDATA_DEPRECATED const T & auxdata (const std::string &name, const std::string &clsname="") const
 Fetch an aux data variable, as a const reference.
template<class T>
XAOD_AUXDATA_DEPRECATED bool isAvailable (const std::string &name, const std::string &clsname="") const
 Check if a user property is available for reading or not.
template<class T>
XAOD_AUXDATA_DEPRECATED bool isAvailableWritable (const std::string &name, const std::string &clsname="") const
 Check if a user property is available for writing or not.

Functions implementing the xAOD::IParticle interface

typedef TLorentzVector FourMom_t
 Definition of the 4-momentum type.
typedef ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > GenVecFourMom_t
 Base 4 Momentum type for trig muons.
virtual double pt () const
 The transverse momentum ( \(p_T\)) of the particle.
virtual double eta () const
 The pseudorapidity ( \(\eta\)) of the particle.
virtual double phi () const
 The azimuthal angle ( \(\phi\)) of the particle.
virtual double m () const
 The invariant mass of the particle.
virtual double e () const
 The total energy of the particle.
virtual double rapidity () const
 The true rapidity (y) of the particle.
virtual FourMom_t p4 () const
 The full 4-momentum of the particle.
GenVecFourMom_t genvecP4 () const
 The full 4-momentum of the particle : internal trig muon type.
virtual Type::ObjectType type () const
 The type of the object as a simple enumeration.

Detailed Description

Class describing isolation info for muons reconstructed in the LVL2 trigger.

This is a simple description of the LVL2 isolation for muons.

Author
Stefano Giagu stefa.nosp@m.no.g.nosp@m.iagu@.nosp@m.cern.nosp@m..ch

V1 2014-06-24

Definition at line 33 of file L2IsoMuon_v1.h.

Member Typedef Documentation

◆ FourMom_t

typedef TLorentzVector xAOD::L2IsoMuon_v1::FourMom_t

Definition of the 4-momentum type.

Definition at line 56 of file L2IsoMuon_v1.h.

◆ GenVecFourMom_t

typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> > xAOD::L2IsoMuon_v1::GenVecFourMom_t

Base 4 Momentum type for trig muons.

Definition at line 62 of file L2IsoMuon_v1.h.

Constructor & Destructor Documentation

◆ L2IsoMuon_v1()

xAOD::L2IsoMuon_v1::L2IsoMuon_v1 ( )

Constructor.

Definition at line 18 of file L2IsoMuon_v1.cxx.

19 : IParticle() {
20
21 }
IParticle()=default

Member Function Documentation

◆ auxdata() [1/2]

template<class T>
XAOD_AUXDATA_DEPRECATED T & xAOD::IParticle::auxdata ( const std::string & name,
const std::string & clsname = "" )
inlineinherited

Fetch an aux data variable, as a non-const reference.

This function provides an easy way for users to decorate objects with auxiliary data.

Take note that this function is slow. Should not be used inside time-critical code.

Parameters
nameName of the aux variable
clsnameThe name of the associated class. May be blank
Returns
A modifiable reference to the decoration

Definition at line 98 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

99 {
100
101 return SG::Accessor< T >(name, clsname)(*this);
102 }
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:573

◆ auxdata() [2/2]

template<class T>
XAOD_AUXDATA_DEPRECATED const T & xAOD::IParticle::auxdata ( const std::string & name,
const std::string & clsname = "" ) const
inlineinherited

Fetch an aux data variable, as a const reference.

This function provides an easy way for users to retrieve auxiliary decorations from an object.

Take note that this function is slow. Should not be used inside time-critical code.

Parameters
nameName of the aux variable
clsnameThe name of the associated class. May be blank
Returns
A constant reference to the decoration

Definition at line 118 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

119 {
120
121 return SG::ConstAccessor< T >( name, clsname )( *this );
122 }
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:570

◆ charge()

float xAOD::L2IsoMuon_v1::charge ( ) const

get seeding muon charge

◆ e()

virtual double xAOD::L2IsoMuon_v1::e ( ) const
virtual

The total energy of the particle.

Implements xAOD::IParticle.

◆ errorFlag()

int xAOD::L2IsoMuon_v1::errorFlag ( ) const

get algorithm error flag

◆ eta()

virtual double xAOD::L2IsoMuon_v1::eta ( ) const
virtual

The pseudorapidity ( \(\eta\)) of the particle.

Implements xAOD::IParticle.

◆ genvecP4()

GenVecFourMom_t xAOD::L2IsoMuon_v1::genvecP4 ( ) const

The full 4-momentum of the particle : internal trig muon type.

◆ isAvailable()

template<class T>
XAOD_AUXDATA_DEPRECATED bool xAOD::IParticle::isAvailable ( const std::string & name,
const std::string & clsname = "" ) const
inlineinherited

Check if a user property is available for reading or not.

This function should be used to check if a user property which may or may not exist, is set on the object.

Parameters
nameName of the auxiliary variable
clsnameThe name of the associated class. May be blank
Returns
Whether the decoration exists or not

Definition at line 135 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

136 {
137
138 return SG::ConstAccessor< T >(name, clsname).isAvailable(*this);
139 }
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.

◆ isAvailableWritable()

template<class T>
XAOD_AUXDATA_DEPRECATED bool xAOD::IParticle::isAvailableWritable ( const std::string & name,
const std::string & clsname = "" ) const
inlineinherited

Check if a user property is available for writing or not.

This function can be used to check whether it will be possible to set a user property on the object.

Parameters
nameName of the auxiliary variable
clsnameThe name of the associated class. May be blank
Returns
Whether the decoration is possible to set

Definition at line 152 of file Event/xAOD/xAODBase/xAODBase/IParticle.h.

153 {
154
155 return SG::Accessor< T >(name, clsname).isAvailableWritable(*this);
156 }
bool isAvailableWritable(ELT &e) const
Test to see if this variable exists in the store and is writable.

◆ m()

virtual double xAOD::L2IsoMuon_v1::m ( ) const
virtual

The invariant mass of the particle.

Implements xAOD::IParticle.

◆ p4()

virtual FourMom_t xAOD::L2IsoMuon_v1::p4 ( ) const
virtual

The full 4-momentum of the particle.

Implements xAOD::IParticle.

◆ phi()

virtual double xAOD::L2IsoMuon_v1::phi ( ) const
virtual

The azimuthal angle ( \(\phi\)) of the particle.

Implements xAOD::IParticle.

◆ pt()

virtual double xAOD::L2IsoMuon_v1::pt ( ) const
virtual

The transverse momentum ( \(p_T\)) of the particle.

Implements xAOD::IParticle.

◆ rapidity()

virtual double xAOD::L2IsoMuon_v1::rapidity ( ) const
virtual

The true rapidity (y) of the particle.

Implements xAOD::IParticle.

◆ roiWord()

uint32_t xAOD::L2IsoMuon_v1::roiWord ( ) const

Get the RoI ID of the seeding muon.

◆ setCharge()

void xAOD::L2IsoMuon_v1::setCharge ( float value)

set seeding muon charge

◆ setErrorFlag()

void xAOD::L2IsoMuon_v1::setErrorFlag ( int value)

set algorithm error flag

◆ setEta()

void xAOD::L2IsoMuon_v1::setEta ( float eta)

Set the pseudorapidity ( \(\eta\)) of the muon.

Definition at line 81 of file L2IsoMuon_v1.cxx.

81 {
82
83 static const Accessor< float > acc( "eta" );
84 acc( *this ) = eta;
85 return;
86 }
virtual double eta() const
The pseudorapidity ( ) of the particle.
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.

◆ setPhi()

void xAOD::L2IsoMuon_v1::setPhi ( float phi)

Set the azimuthal angle ( \(\phi\)) of the muon.

Definition at line 88 of file L2IsoMuon_v1.cxx.

88 {
89
90 static const Accessor< float > acc( "phi" );
91 acc( *this ) = phi;
92 return;
93 }
virtual double phi() const
The azimuthal angle ( ) of the particle.

◆ setPt()

void xAOD::L2IsoMuon_v1::setPt ( float pt)

Set the transverse momentum ( \(p_T\)) of the muon.

◆ setRoiWord()

void xAOD::L2IsoMuon_v1::setRoiWord ( uint32_t value)

Set the RoI ID of the seeding muon.

◆ setSumEt01()

void xAOD::L2IsoMuon_v1::setSumEt01 ( float value)

set ptcone radius DeltaR<0.1

◆ setSumEt02()

void xAOD::L2IsoMuon_v1::setSumEt02 ( float value)

set etcone radius DeltaR<0.2

◆ setSumEt03()

void xAOD::L2IsoMuon_v1::setSumEt03 ( float value)

set etcone radius DeltaR<0.3

◆ setSumEt04()

void xAOD::L2IsoMuon_v1::setSumEt04 ( float value)

set etcone radius DeltaR<0.4

◆ setSumPt01()

void xAOD::L2IsoMuon_v1::setSumPt01 ( float value)

set ptcone radius DeltaR<0.1

◆ setSumPt02()

void xAOD::L2IsoMuon_v1::setSumPt02 ( float value)

set ptcone radius DeltaR<0.2

◆ setSumPt03()

void xAOD::L2IsoMuon_v1::setSumPt03 ( float value)

set ptcone radius DeltaR<0.3

◆ setSumPt04()

void xAOD::L2IsoMuon_v1::setSumPt04 ( float value)

set ptcone radius DeltaR<0.4

◆ sumEt01()

float xAOD::L2IsoMuon_v1::sumEt01 ( ) const

get ptcone radius DeltaR<0.1

◆ sumEt02()

float xAOD::L2IsoMuon_v1::sumEt02 ( ) const

get etcone radius DeltaR<0.2

◆ sumEt03()

float xAOD::L2IsoMuon_v1::sumEt03 ( ) const

get etcone radius DeltaR<0.3

◆ sumEt04()

float xAOD::L2IsoMuon_v1::sumEt04 ( ) const

get etcone radius DeltaR<0.4

◆ sumPt01()

float xAOD::L2IsoMuon_v1::sumPt01 ( ) const

get ptcone radius DeltaR<0.1

◆ sumPt02()

float xAOD::L2IsoMuon_v1::sumPt02 ( ) const

get ptcone radius DeltaR<0.2

◆ sumPt03()

float xAOD::L2IsoMuon_v1::sumPt03 ( ) const

get ptcone radius DeltaR<0.3

◆ sumPt04()

float xAOD::L2IsoMuon_v1::sumPt04 ( ) const

get ptcone radius DeltaR<0.4

◆ type()

virtual Type::ObjectType xAOD::L2IsoMuon_v1::type ( ) const
virtual

The type of the object as a simple enumeration.

Implements xAOD::IParticle.


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