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

Data class describing the L0 muon candidates from MDT-TP to TGC/RPC SL. More...

#include <MDTCandData_v1.h>

Inheritance diagram for xAOD::MDTCandData_v1:
Collaboration diagram for xAOD::MDTCandData_v1:

Public Types

enum class  SegmentQuality : uint8_t { Q_UNDEFINED = 0 , Q_BEST , Q_LOW }
 Quality flag for each segment. More...
enum class  BC_ID {
  BC_UNDEFINED = 0 , BC_PREVIOUS , BC_CURRENT , BC_NEXT ,
  BC_NEXTNEXT
}
 Bunch crossing identifier. More...
enum class  Quality : uint8_t { Q_UNDEFINED = 0 , Q_BEST , Q_LOW }

Public Member Functions

 MDTCandData_v1 ()=default
 ~MDTCandData_v1 ()=default
uint8_t numSegments () const
 Retrieve the number of MDT segments asspcoate to the muon candidate.
uint8_t segmentQualityFlag () const
 Retrieve the segment quality flag for each segment.
uint8_t slCharge () const
 Retrieve the charge value from the sector logic.
uint8_t slPtThreshold () const
 Retrieve the highest RPC/TGC pT threshold satisfied in sector logic.
uint16_t slPhiPosition () const
 Retrieve the phi position in global coordinates from the sector logic.
uint16_t slEtaPosition () const
 Retrieve the eta position in global coordinates from the sector logic.
uint8_t tcIdentifier () const
 Retrieve the trigger candidate identifier.
uint8_t MDTCarge () const
 Retrieve the MDT charge value from the MDT TP.
uint8_t MDTPt () const
 Retrieve the MDT pTfrom the MDT TP.
uint16_t MDEta () const
 Retrieve the MDT eta position from the MDT TP.
void setNumSegments (uint8_t numSegments)
 Set the number of segments.
void setSegmentQualityFlag (uint8_t flags)
 Set the segment quality flag.
void setSlCharge (uint8_t slCharge)
 Set the sector logic charge.
void setSlPtThreshold (uint8_t slPtThreshold)
 Set the sector logic pT threshold.
void setSlPhiPosition (uint16_t slPhiPosition)
 Set the sector logic phi position.
void setSlEtaPosition (uint16_t slEtaPosition)
 Set the sector logic eta position.
void setTcIdentifier (uint8_t tcIdentifier)
 Set the trigger candidate identifier.
void setMDTCharge (uint8_t mdtCharge)
 Set the MDT charge value.
void setMDTPt (uint8_t mdtPt)
 Set the MDT pT value.
void setMDTEta (uint16_t mdtEta)
 Set the MDT eta position.
uint16_t subdetectorId () const
 Retrieve the sub detector id.
uint16_t sectorId () const
 Retrieve the sector id.
uint16_t bcTag () const
 Retrieve the bunch crossing tag.
uint8_t threshold () const
 Retrieve the threshold.
uint8_t candCharge () const
 Retrieve the candidate charge.
uint8_t mdtFlag () const
 Retrieve the MDT flag.
uint8_t coinType () const
 Retrieve the coincidence type.
uint16_t eta () const
 Retrieve the eta.
uint16_t phi () const
 Retrieve the phi.
uint8_t pt () const
 Retrieve the pt.
Quality candQuality () const
 Retrieve the candidate quality.
void setSubdetectorId (uint16_t subdetectorId)
 Set the sub detector id.
void setSectorId (uint16_t sectorId)
 Set the sector id.
void setBcTag (uint16_t bcTag)
 Set the bunch crossing tag.
void setEta (float eta)
 Set the eta.
void setPhi (float phi)
 Set the phi.
void setPt (float pt)
 Set the pt.
void setThreshold (uint8_t threshold)
 Set the threshold.
void setCandCharge (uint8_t candCharge)
 Set the candidate charge.
void setMdtFlag (uint8_t mdtFlag)
 Set the MDT flag.
void setCoinType (uint8_t coinType)
 Set the coincidence type.
void setCandQuality (Quality candQuality)
 Set the candidate quality.
void initialize (uint16_t subdetectorId, uint16_t sectorId, uint16_t bcTag)
 Initialize candidate with basic properties.

Static Public Member Functions

static constexpr float etaRange ()
static constexpr uint16_t etaBitRange ()
static constexpr float phiRange ()
static constexpr uint16_t phiBitRange ()
static constexpr float ptRange ()
static constexpr uint8_t ptBitRange ()
static constexpr uint8_t coinTypeBitMask ()

Static Protected Attributes

static constexpr float s_etaRange = 2.7
 Variables range.
static constexpr float s_phiRange = 2.0 * M_PI
static constexpr float s_ptRange = 1000.0
static constexpr uint16_t s_etaBitRange = 0x3fff
 Variables bit size 14 bits for eta, 9 bits for phi, 8 bits for pt.
static constexpr uint16_t s_phiBitRange = 0x1ff
static constexpr uint8_t s_ptBitRange = 0xff
static constexpr uint8_t COINTYPE_BIT_MASK = 0x7
 Bit mask for Coincidence Types.

Detailed Description

Data class describing the L0 muon candidates from MDT-TP to TGC/RPC SL.

Definition at line 19 of file MDTCandData_v1.h.

Member Enumeration Documentation

◆ BC_ID

enum class xAOD::ICandData_v1::BC_ID
stronginherited

Bunch crossing identifier.

Enumerator
BC_UNDEFINED 
BC_PREVIOUS 
BC_CURRENT 
BC_NEXT 
BC_NEXTNEXT 

Definition at line 27 of file ICandData_v1.h.

28 {
29 BC_UNDEFINED = 0,
30 BC_PREVIOUS,
31 BC_CURRENT,
32 BC_NEXT,
33 BC_NEXTNEXT
34 };

◆ Quality

enum class xAOD::ICandData_v1::Quality : uint8_t
stronginherited
Enumerator
Q_UNDEFINED 
Q_BEST 
Q_LOW 

Definition at line 36 of file ICandData_v1.h.

37 {
38 Q_UNDEFINED = 0,
39 Q_BEST,
40 Q_LOW
41 };

◆ SegmentQuality

Quality flag for each segment.

Enumerator
Q_UNDEFINED 
Q_BEST 
Q_LOW 

Definition at line 26 of file MDTCandData_v1.h.

27 {
28 Q_UNDEFINED = 0,
29 Q_BEST,
30 Q_LOW
31 };

Constructor & Destructor Documentation

◆ MDTCandData_v1()

xAOD::MDTCandData_v1::MDTCandData_v1 ( )
default

◆ ~MDTCandData_v1()

xAOD::MDTCandData_v1::~MDTCandData_v1 ( )
default

Member Function Documentation

◆ bcTag()

uint16_t xAOD::ICandData_v1::bcTag ( ) const
inherited

Retrieve the bunch crossing tag.

Returns
Bunch crossing tag

◆ candCharge()

uint8_t xAOD::ICandData_v1::candCharge ( ) const
inherited

Retrieve the candidate charge.

Returns
Candidate charge

◆ candQuality()

Quality xAOD::ICandData_v1::candQuality ( ) const
inherited

Retrieve the candidate quality.

Returns
Candidate quality

◆ coinType()

uint8_t xAOD::ICandData_v1::coinType ( ) const
inherited

Retrieve the coincidence type.

Returns
Coincidence type

Definition at line 69 of file ICandData_v1.cxx.

69 {
70 static const SG::AuxElement::Accessor<uint8_t> acc(preFixStr + "coinType");
71 return acc(*this);
72 }
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.

◆ coinTypeBitMask()

constexpr uint8_t xAOD::ICandData_v1::coinTypeBitMask ( )
inlinestaticconstexprinherited

Definition at line 175 of file ICandData_v1.h.

175{ return COINTYPE_BIT_MASK; }
static constexpr uint8_t COINTYPE_BIT_MASK
Bit mask for Coincidence Types.

◆ eta()

uint16_t xAOD::ICandData_v1::eta ( ) const
inherited

Retrieve the eta.

Returns
Eta

Definition at line 33 of file ICandData_v1.cxx.

33 {
34 static const SG::AuxElement::Accessor<uint16_t> acc(preFixStr + "eta");
35 return acc(*this);
36 }

◆ etaBitRange()

constexpr uint16_t xAOD::ICandData_v1::etaBitRange ( )
inlinestaticconstexprinherited

Definition at line 170 of file ICandData_v1.h.

170{ return s_etaBitRange; }
static constexpr uint16_t s_etaBitRange
Variables bit size 14 bits for eta, 9 bits for phi, 8 bits for pt.

◆ etaRange()

constexpr float xAOD::ICandData_v1::etaRange ( )
inlinestaticconstexprinherited

Definition at line 169 of file ICandData_v1.h.

169{ return s_etaRange; }
static constexpr float s_etaRange
Variables range.

◆ initialize()

void xAOD::ICandData_v1::initialize ( uint16_t subdetectorId,
uint16_t sectorId,
uint16_t bcTag )
inherited

Initialize candidate with basic properties.

Initialise the object given some input data

Parameters
subdetectorIdSubdetector ID
sectorIdSector ID
bcTagBunch crossing tag

Definition at line 74 of file ICandData_v1.cxx.

74 {
78 }
void setBcTag(uint16_t bcTag)
Set the bunch crossing tag.
uint16_t sectorId() const
Retrieve the sector id.
uint16_t bcTag() const
Retrieve the bunch crossing tag.
void setSubdetectorId(uint16_t subdetectorId)
Set the sub detector id.
uint16_t subdetectorId() const
Retrieve the sub detector id.
void setSectorId(uint16_t sectorId)
Set the sector id.

◆ MDEta()

uint16_t xAOD::MDTCandData_v1::MDEta ( ) const

Retrieve the MDT eta position from the MDT TP.

Returns
MDT eta position

◆ MDTCarge()

uint8_t xAOD::MDTCandData_v1::MDTCarge ( ) const

Retrieve the MDT charge value from the MDT TP.

Returns
MDT charge value

◆ mdtFlag()

uint8_t xAOD::ICandData_v1::mdtFlag ( ) const
inherited

Retrieve the MDT flag.

Returns
MDT flag

◆ MDTPt()

uint8_t xAOD::MDTCandData_v1::MDTPt ( ) const

Retrieve the MDT pTfrom the MDT TP.

Returns
MDT pT

◆ numSegments()

uint8_t xAOD::MDTCandData_v1::numSegments ( ) const

Retrieve the number of MDT segments asspcoate to the muon candidate.

Returns
Number of segments

◆ phi()

uint16_t xAOD::ICandData_v1::phi ( ) const
inherited

Retrieve the phi.

Returns
Phi

Definition at line 44 of file ICandData_v1.cxx.

44 {
45 static const SG::AuxElement::Accessor<uint16_t> acc(preFixStr + "phi");
46 //return (static_cast<float>(acc(*this)) / static_cast<float>(s_phiBitRange)) * s_phiRange-M_PI;
47 return acc(*this);
48 }

◆ phiBitRange()

constexpr uint16_t xAOD::ICandData_v1::phiBitRange ( )
inlinestaticconstexprinherited

Definition at line 172 of file ICandData_v1.h.

172{ return s_phiBitRange; }
static constexpr uint16_t s_phiBitRange

◆ phiRange()

constexpr float xAOD::ICandData_v1::phiRange ( )
inlinestaticconstexprinherited

Definition at line 171 of file ICandData_v1.h.

171{ return s_phiRange; }
static constexpr float s_phiRange

◆ pt()

uint8_t xAOD::ICandData_v1::pt ( ) const
inherited

Retrieve the pt.

Returns
Pt

Definition at line 58 of file ICandData_v1.cxx.

58 {
59 static const SG::AuxElement::Accessor<uint8_t> acc(preFixStr + "pt");
60 return acc(*this);
61 }

◆ ptBitRange()

constexpr uint8_t xAOD::ICandData_v1::ptBitRange ( )
inlinestaticconstexprinherited

Definition at line 174 of file ICandData_v1.h.

174{ return s_ptBitRange; }
static constexpr uint8_t s_ptBitRange

◆ ptRange()

constexpr float xAOD::ICandData_v1::ptRange ( )
inlinestaticconstexprinherited

Definition at line 173 of file ICandData_v1.h.

173{ return s_ptRange; }
static constexpr float s_ptRange

◆ sectorId()

uint16_t xAOD::ICandData_v1::sectorId ( ) const
inherited

Retrieve the sector id.

Returns
Sector ID

◆ segmentQualityFlag()

uint8_t xAOD::MDTCandData_v1::segmentQualityFlag ( ) const

Retrieve the segment quality flag for each segment.

Returns
Segment quality flag

◆ setBcTag()

void xAOD::ICandData_v1::setBcTag ( uint16_t bcTag)
inherited

Set the bunch crossing tag.

Parameters
bcTagBunch crossing tag

◆ setCandCharge()

void xAOD::ICandData_v1::setCandCharge ( uint8_t candCharge)
inherited

Set the candidate charge.

Parameters
candChargeCandidate charge

◆ setCandQuality()

void xAOD::ICandData_v1::setCandQuality ( Quality candQuality)
inherited

Set the candidate quality.

Parameters
candQualityCandidate quality

◆ setCoinType()

void xAOD::ICandData_v1::setCoinType ( uint8_t coinType)
inherited

Set the coincidence type.

Parameters
coinTypeCoincidence type

Definition at line 63 of file ICandData_v1.cxx.

63 {
64 uint8_t coinTypeBin = cointype & COINTYPE_BIT_MASK;
65 static const SG::AuxElement::Accessor<uint8_t> acc(preFixStr + "coinType");
66 acc(*this) = coinTypeBin;
67 }

◆ setEta()

void xAOD::ICandData_v1::setEta ( float eta)
inherited

Set the eta.

Parameters
etaEta

Definition at line 26 of file ICandData_v1.cxx.

26 {
27 float etaClamped = std::clamp(eta, -s_etaRange, s_etaRange);
28 uint16_t etaBinary = static_cast<uint16_t>(std::lround((etaClamped + s_etaRange) / (2.0f * s_etaRange) * static_cast<float>(s_etaBitRange)));
29 static const SG::AuxElement::Accessor<uint16_t> acc(preFixStr + "eta");
30 acc(*this) = etaBinary;
31 }
uint16_t eta() const
Retrieve the eta.
setWord1 uint16_t

◆ setMDTCharge()

void xAOD::MDTCandData_v1::setMDTCharge ( uint8_t mdtCharge)

Set the MDT charge value.

Parameters
mdtChargeMDT charge value

◆ setMDTEta()

void xAOD::MDTCandData_v1::setMDTEta ( uint16_t mdtEta)

Set the MDT eta position.

Parameters
mdtEtaMDT eta position

◆ setMdtFlag()

void xAOD::ICandData_v1::setMdtFlag ( uint8_t mdtFlag)
inherited

Set the MDT flag.

Parameters
mdtFlagMDT flag

◆ setMDTPt()

void xAOD::MDTCandData_v1::setMDTPt ( uint8_t mdtPt)

Set the MDT pT value.

Parameters
mdtPtMDT pT value

◆ setNumSegments()

void xAOD::MDTCandData_v1::setNumSegments ( uint8_t numSegments)

Set the number of segments.

Parameters
numSegmentsNumber of segments

◆ setPhi()

void xAOD::ICandData_v1::setPhi ( float phi)
inherited

Set the phi.

Parameters
phiPhi

Definition at line 38 of file ICandData_v1.cxx.

38 {
39 uint16_t phiBinary = static_cast<uint16_t>(((phi + M_PI) / s_phiRange) * static_cast<float>(s_phiBitRange));
40 static const SG::AuxElement::Accessor<uint16_t> acc(preFixStr + "phi");
41 acc(*this) = phiBinary;
42 }
#define M_PI
uint16_t phi() const
Retrieve the phi.

◆ setPt()

void xAOD::ICandData_v1::setPt ( float pt)
inherited

Set the pt.

Parameters
ptPt

Definition at line 50 of file ICandData_v1.cxx.

50 {
51 const float ptClamped = std::clamp(pt, 0.0f, s_ptRange);
52 const uint8_t ptBinary = static_cast<uint8_t>(
53 std::lround((ptClamped / s_ptRange) * static_cast<float>(s_ptBitRange)));
54 static const SG::AuxElement::Accessor<uint8_t> acc(preFixStr + "pt");
55 acc(*this) = ptBinary;
56 }
uint8_t pt() const
Retrieve the pt.

◆ setSectorId()

void xAOD::ICandData_v1::setSectorId ( uint16_t sectorId)
inherited

Set the sector id.

Parameters
sectorIdSector ID

◆ setSegmentQualityFlag()

void xAOD::MDTCandData_v1::setSegmentQualityFlag ( uint8_t flags)

Set the segment quality flag.

Parameters
flagsSegment quality flag

◆ setSlCharge()

void xAOD::MDTCandData_v1::setSlCharge ( uint8_t slCharge)

Set the sector logic charge.

Parameters
slChargeSlCharge

◆ setSlEtaPosition()

void xAOD::MDTCandData_v1::setSlEtaPosition ( uint16_t slEtaPosition)

Set the sector logic eta position.

Parameters
slEtaPositionSlEtaPosition

◆ setSlPhiPosition()

void xAOD::MDTCandData_v1::setSlPhiPosition ( uint16_t slPhiPosition)

Set the sector logic phi position.

Parameters
slPhiPositionSlPhiPosition

◆ setSlPtThreshold()

void xAOD::MDTCandData_v1::setSlPtThreshold ( uint8_t slPtThreshold)

Set the sector logic pT threshold.

Parameters
slPtThresholdSlPtThreshold

◆ setSubdetectorId()

void xAOD::ICandData_v1::setSubdetectorId ( uint16_t subdetectorId)
inherited

Set the sub detector id.

Parameters
subdetectorIdSubdetector ID

◆ setTcIdentifier()

void xAOD::MDTCandData_v1::setTcIdentifier ( uint8_t tcIdentifier)

Set the trigger candidate identifier.

Parameters
tcIdentifierTcIdentifier

◆ setThreshold()

void xAOD::ICandData_v1::setThreshold ( uint8_t threshold)
inherited

Set the threshold.

Parameters
thresholdThreshold

◆ slCharge()

uint8_t xAOD::MDTCandData_v1::slCharge ( ) const

Retrieve the charge value from the sector logic.

Returns
sector logic charge

◆ slEtaPosition()

uint16_t xAOD::MDTCandData_v1::slEtaPosition ( ) const

Retrieve the eta position in global coordinates from the sector logic.

Returns
sector logic eta position

◆ slPhiPosition()

uint16_t xAOD::MDTCandData_v1::slPhiPosition ( ) const

Retrieve the phi position in global coordinates from the sector logic.

Returns
sector logic phi position

◆ slPtThreshold()

uint8_t xAOD::MDTCandData_v1::slPtThreshold ( ) const

Retrieve the highest RPC/TGC pT threshold satisfied in sector logic.

Returns
sector logic pT threshold

◆ subdetectorId()

uint16_t xAOD::ICandData_v1::subdetectorId ( ) const
inherited

Retrieve the sub detector id.

Returns
Subdetector ID

◆ tcIdentifier()

uint8_t xAOD::MDTCandData_v1::tcIdentifier ( ) const

Retrieve the trigger candidate identifier.

Returns
trigger candidate identifier

◆ threshold()

uint8_t xAOD::ICandData_v1::threshold ( ) const
inherited

Retrieve the threshold.

Returns
Threshold

Member Data Documentation

◆ COINTYPE_BIT_MASK

uint8_t xAOD::ICandData_v1::COINTYPE_BIT_MASK = 0x7
staticconstexprprotectedinherited

Bit mask for Coincidence Types.

Definition at line 190 of file ICandData_v1.h.

◆ s_etaBitRange

uint16_t xAOD::ICandData_v1::s_etaBitRange = 0x3fff
staticconstexprprotectedinherited

Variables bit size 14 bits for eta, 9 bits for phi, 8 bits for pt.

Definition at line 185 of file ICandData_v1.h.

◆ s_etaRange

float xAOD::ICandData_v1::s_etaRange = 2.7
staticconstexprprotectedinherited

Variables range.

Definition at line 179 of file ICandData_v1.h.

◆ s_phiBitRange

uint16_t xAOD::ICandData_v1::s_phiBitRange = 0x1ff
staticconstexprprotectedinherited

Definition at line 186 of file ICandData_v1.h.

◆ s_phiRange

float xAOD::ICandData_v1::s_phiRange = 2.0 * M_PI
staticconstexprprotectedinherited

Definition at line 180 of file ICandData_v1.h.

◆ s_ptBitRange

uint8_t xAOD::ICandData_v1::s_ptBitRange = 0xff
staticconstexprprotectedinherited

Definition at line 187 of file ICandData_v1.h.

◆ s_ptRange

float xAOD::ICandData_v1::s_ptRange = 1000.0
staticconstexprprotectedinherited

Definition at line 181 of file ICandData_v1.h.


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