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

Class describing combined muon reconstructed in the LVL2 trigger. More...

#include <L2CombinedMuon_v1.h>

Inheritance diagram for xAOD::L2CombinedMuon_v1:
Collaboration diagram for xAOD::L2CombinedMuon_v1:

Public Member Functions

 L2CombinedMuon_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 CB muon
float charge () const
 get seeding muon charge
void setCharge (float value)
 set seeding muon charge
int strategy () const
 get algorithm strategy flag
void setStrategy (int value)
 set algorithm strategy flag
int errorFlag () const
 get algorithm error flag
void setErrorFlag (int value)
 set algorithm error flag
int matchFlag () const
 get algorithm match flag
void setMatchFlag (int value)
 set algorithm match flag
float sigmaPt () const
 get sigma combined Pt
void setSigmaPt (float value)
 set sigma combined Pt
const ElementLink< xAOD::TrackParticleContainer > & idTrackLink () const
 get ID track used to make the CB muon
void setIdTrackLink (const ElementLink< xAOD::TrackParticleContainer > &link)
 set ID track used to make the CB muon
const xAOD::TrackParticleidTrack () const
 Get the ID track as a bare pointer.
const ElementLink< xAOD::L2StandAloneMuonContainer > & muSATrackLink () const
 get SA muon used to make the CB muon
void setMuSATrackLink (const ElementLink< xAOD::L2StandAloneMuonContainer > &link)
 set SA muon used to make the CB muon
const xAOD::L2StandAloneMuonmuSATrack () const
 Get the SA muon as a bare pointer.
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 combined muon reconstructed in the LVL2 trigger.

This is a simple description of the LVL2 CB muon

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

V1 2014-06-24

Definition at line 41 of file L2CombinedMuon_v1.h.

Member Typedef Documentation

◆ FourMom_t

typedef TLorentzVector xAOD::L2CombinedMuon_v1::FourMom_t

Definition of the 4-momentum type.

Definition at line 64 of file L2CombinedMuon_v1.h.

◆ GenVecFourMom_t

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

Base 4 Momentum type for trig muons.

Definition at line 70 of file L2CombinedMuon_v1.h.

Constructor & Destructor Documentation

◆ L2CombinedMuon_v1()

xAOD::L2CombinedMuon_v1::L2CombinedMuon_v1 ( )

Constructor.

Definition at line 20 of file L2CombinedMuon_v1.cxx.

21 : IParticle() {
22
23 }
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::L2CombinedMuon_v1::charge ( ) const

get seeding muon charge

◆ e()

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

The total energy of the particle.

Implements xAOD::IParticle.

◆ errorFlag()

int xAOD::L2CombinedMuon_v1::errorFlag ( ) const

get algorithm error flag

◆ eta()

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

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

Implements xAOD::IParticle.

◆ genvecP4()

GenVecFourMom_t xAOD::L2CombinedMuon_v1::genvecP4 ( ) const

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

◆ idTrack()

setStrategy setMatchFlag setIdTrackLink const xAOD::TrackParticle * xAOD::L2CombinedMuon_v1::idTrack ( ) const

Get the ID track as a bare pointer.

Definition at line 120 of file L2CombinedMuon_v1.cxx.

120 {
121
122 static const Accessor< ElementLink< TrackParticleContainer > >
123 acc( "idTrackLink" );
124 if( ! acc.isAvailable( *this ) ) {
125 return nullptr;
126 }
128 if( ! el.isValid() ) {
129 return nullptr;
130 }
131 return *el;
132 }
setStrategy setMatchFlag ElementLink< TrackParticleContainer >
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.

◆ idTrackLink()

const ElementLink< xAOD::TrackParticleContainer > & xAOD::L2CombinedMuon_v1::idTrackLink ( ) const

get ID track used to make the CB muon

◆ 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::L2CombinedMuon_v1::m ( ) const
virtual

The invariant mass of the particle.

Implements xAOD::IParticle.

◆ matchFlag()

int xAOD::L2CombinedMuon_v1::matchFlag ( ) const

get algorithm match flag

◆ muSATrack()

const xAOD::L2StandAloneMuon * xAOD::L2CombinedMuon_v1::muSATrack ( ) const

Get the SA muon as a bare pointer.

◆ muSATrackLink()

const ElementLink< xAOD::L2StandAloneMuonContainer > & xAOD::L2CombinedMuon_v1::muSATrackLink ( ) const

get SA muon used to make the CB muon

◆ p4()

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

The full 4-momentum of the particle.

Implements xAOD::IParticle.

◆ phi()

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

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

Implements xAOD::IParticle.

◆ pt()

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

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

Implements xAOD::IParticle.

◆ rapidity()

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

The true rapidity (y) of the particle.

Implements xAOD::IParticle.

◆ setCharge()

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

set seeding muon charge

◆ setErrorFlag()

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

set algorithm error flag

◆ setEta()

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

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

Definition at line 83 of file L2CombinedMuon_v1.cxx.

83 {
84
85 static const Accessor< float > acc( "eta" );
86 acc( *this ) = eta;
87 return;
88 }
virtual double eta() const
The pseudorapidity ( ) of the particle.

◆ setIdTrackLink()

void xAOD::L2CombinedMuon_v1::setIdTrackLink ( const ElementLink< xAOD::TrackParticleContainer > & link)

set ID track used to make the CB muon

◆ setMatchFlag()

void xAOD::L2CombinedMuon_v1::setMatchFlag ( int value)

set algorithm match flag

◆ setMuSATrackLink()

void xAOD::L2CombinedMuon_v1::setMuSATrackLink ( const ElementLink< xAOD::L2StandAloneMuonContainer > & link)

set SA muon used to make the CB muon

◆ setPhi()

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

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

Definition at line 90 of file L2CombinedMuon_v1.cxx.

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

◆ setPt()

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

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

◆ setSigmaPt()

void xAOD::L2CombinedMuon_v1::setSigmaPt ( float value)

set sigma combined Pt

◆ setStrategy()

void xAOD::L2CombinedMuon_v1::setStrategy ( int value)

set algorithm strategy flag

◆ sigmaPt()

float xAOD::L2CombinedMuon_v1::sigmaPt ( ) const

get sigma combined Pt

◆ strategy()

int xAOD::L2CombinedMuon_v1::strategy ( ) const

get algorithm strategy flag

◆ type()

virtual Type::ObjectType xAOD::L2CombinedMuon_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: