ATLAS Offline Software
Reconstruction
MuonIdentification
muonEvent
muonEvent
MuonQualityWord.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/***************************************************************************
6
Reconstruction/MuonIdentification/muonEvent/MuonQualityWord.h
7
Author: Ketevi A. Assamagan, July 2009
8
Transienti class to hold muon quality bits and the methods to manipulate it
9
so as to return the the isLoose, isMedium and isTight to the use.
10
This object is not persistified.
11
---------------------------------------------------------------------------
12
***************************************************************************/
13
14
#ifndef MUONEVENT_MUONQUALITYWORD_H
15
#define MUONEVENT_MUONQUALITYWORD_H
16
17
#include <inttypes.h>
18
#include <iostream>
19
class
MsgStream;
20
41
class
MuonQualityWord
{
42
43
public
:
44
46
MuonQualityWord
(
uint16_t
qualityWord
);
47
49
MuonQualityWord
() {
m_qualityWord
= 0x0; };
50
52
~MuonQualityWord
() =
default
;
53
55
MuonQualityWord
(
const
MuonQualityWord
&);
56
58
MuonQualityWord
&
operator=
(
const
MuonQualityWord
&);
59
61
void
set
(
uint16_t
qualityWord
) {
m_qualityWord
=
qualityWord
; }
62
64
bool
isLoose
()
const
;
65
bool
isMedium
()
const
;
66
bool
isTight
()
const
;
67
69
uint16_t
type
()
const
{
return
m_qualityWord
& 0xF; }
70
72
uint16_t
qualityWord
()
const
{
return
m_qualityWord
; }
73
74
private
:
75
76
uint16_t
m_qualityWord
;
77
};
78
80
MsgStream&
operator <<
( MsgStream& sl,
const
MuonQualityWord
& qword);
81
83
std::ostream&
operator <<
( std::ostream& sl,
const
MuonQualityWord
& qword);
84
85
86
inline
bool
MuonQualityWord::isLoose
()
const
{
return
(
m_qualityWord
>> 4) & 0xF; }
87
88
inline
bool
MuonQualityWord::isMedium
()
const
{
return
(
m_qualityWord
>> 8) & 0xF; }
89
90
inline
bool
MuonQualityWord::isTight
()
const
{
return
(
m_qualityWord
>> 12) & 0xF; }
91
92
#endif // MUONEVENT_MUONQUALITYWORD_H
93
94
MuonQualityWord::set
void set(uint16_t qualityWord)
set the quality word - needed if default constructor is used
Definition:
MuonQualityWord.h:61
MuonQualityWord::isLoose
bool isLoose() const
Accessor methods.
Definition:
MuonQualityWord.h:86
MuonQualityWord::MuonQualityWord
MuonQualityWord(const MuonQualityWord &)
copy constructor
MuonQualityWord::MuonQualityWord
MuonQualityWord()
default constructor
Definition:
MuonQualityWord.h:49
MuonQualityWord::qualityWord
uint16_t qualityWord() const
get back the quality word
Definition:
MuonQualityWord.h:72
MuonQualityWord::~MuonQualityWord
~MuonQualityWord()=default
destructor
MuonQualityWord::type
uint16_t type() const
container specifi bits - may vary according to muon container
Definition:
MuonQualityWord.h:69
MuonQualityWord::isTight
bool isTight() const
Definition:
MuonQualityWord.h:90
xAOD::uint16_t
setWord1 uint16_t
Definition:
eFexEMRoI_v1.cxx:93
MuonQualityWord::isMedium
bool isMedium() const
Definition:
MuonQualityWord.h:88
MuonQualityWord::operator=
MuonQualityWord & operator=(const MuonQualityWord &)
assignment operator
Definition:
MuonQualityWord.cxx:31
operator<<
MsgStream & operator<<(MsgStream &sl, const MuonQualityWord &qword)
Overload of << operator for MsgStream for debug output.
Definition:
MuonQualityWord.cxx:39
MuonQualityWord
A bitted word defining different levels of muon identification qualities (in terms of purity and effi...
Definition:
MuonQualityWord.h:41
MuonQualityWord::m_qualityWord
uint16_t m_qualityWord
Definition:
MuonQualityWord.h:76
Generated on Sun Dec 22 2024 21:15:17 for ATLAS Offline Software by
1.8.18