ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonQualityWord Class Reference

A bitted word defining different levels of muon identification qualities (in terms of purity and efficiency), based solely on type of identification and reconstruction properties. More...

#include <MuonQualityWord.h>

Collaboration diagram for MuonQualityWord:

Public Member Functions

 MuonQualityWord (uint16_t qualityWord)
 full constructor with a quality word More...
 
 MuonQualityWord ()
 default constructor More...
 
 ~MuonQualityWord ()=default
 destructor More...
 
 MuonQualityWord (const MuonQualityWord &)
 copy constructor More...
 
MuonQualityWordoperator= (const MuonQualityWord &)
 assignment operator More...
 
void set (uint16_t qualityWord)
 set the quality word - needed if default constructor is used More...
 
bool isLoose () const
 Accessor methods. More...
 
bool isMedium () const
 
bool isTight () const
 
uint16_t type () const
 container specifi bits - may vary according to muon container More...
 
uint16_t qualityWord () const
 get back the quality word More...
 

Private Attributes

uint16_t m_qualityWord
 

Detailed Description

A bitted word defining different levels of muon identification qualities (in terms of purity and efficiency), based solely on type of identification and reconstruction properties.

The proposed bit encoding is as follows:

As a consequence,

Author
Ketevi Assamagan, Rikard Sandstroem

Definition at line 41 of file MuonQualityWord.h.

Constructor & Destructor Documentation

◆ MuonQualityWord() [1/3]

MuonQualityWord::MuonQualityWord ( uint16_t  qualityWord)

full constructor with a quality word

Definition at line 17 of file MuonQualityWord.cxx.

20 {}

◆ MuonQualityWord() [2/3]

MuonQualityWord::MuonQualityWord ( )
inline

default constructor

Definition at line 49 of file MuonQualityWord.h.

49 { m_qualityWord = 0x0; };

◆ ~MuonQualityWord()

MuonQualityWord::~MuonQualityWord ( )
default

destructor

◆ MuonQualityWord() [3/3]

MuonQualityWord::MuonQualityWord ( const MuonQualityWord )
default

copy constructor

Member Function Documentation

◆ isLoose()

bool MuonQualityWord::isLoose ( ) const
inline

Accessor methods.

Definition at line 86 of file MuonQualityWord.h.

86 { return ( m_qualityWord >> 4) & 0xF; }

◆ isMedium()

bool MuonQualityWord::isMedium ( ) const
inline

Definition at line 88 of file MuonQualityWord.h.

88 { return ( m_qualityWord >> 8) & 0xF; }

◆ isTight()

bool MuonQualityWord::isTight ( ) const
inline

Definition at line 90 of file MuonQualityWord.h.

90 { return ( m_qualityWord >> 12) & 0xF; }

◆ operator=()

MuonQualityWord & MuonQualityWord::operator= ( const MuonQualityWord rhs)

assignment operator

destructor

Assignment operator

Definition at line 31 of file MuonQualityWord.cxx.

31  {
32  if ( this != &rhs ) {
34  }
35  return *this;
36 }

◆ qualityWord()

uint16_t MuonQualityWord::qualityWord ( ) const
inline

get back the quality word

Definition at line 72 of file MuonQualityWord.h.

72 { return m_qualityWord; }

◆ set()

void MuonQualityWord::set ( uint16_t  qualityWord)
inline

set the quality word - needed if default constructor is used

Definition at line 61 of file MuonQualityWord.h.

◆ type()

uint16_t MuonQualityWord::type ( ) const
inline

container specifi bits - may vary according to muon container

Definition at line 69 of file MuonQualityWord.h.

69 { return m_qualityWord & 0xF; }

Member Data Documentation

◆ m_qualityWord

uint16_t MuonQualityWord::m_qualityWord
private

Definition at line 76 of file MuonQualityWord.h.


The documentation for this class was generated from the following files:
MuonQualityWord::qualityWord
uint16_t qualityWord() const
get back the quality word
Definition: MuonQualityWord.h:72
MuonQualityWord::m_qualityWord
uint16_t m_qualityWord
Definition: MuonQualityWord.h:76