Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
LArCalorimeter
LArRecConditions
src
LArBadChannelMask.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArRecConditions/LArBadChannelMask.h
"
6
7
const
LArBadChanBitPacking
LArBadChannelMask::s_bitPacking
;
//init static member
8
const
LArBadChanSCBitPacking
LArBadChannelMask::s_bitSCPacking
;
//init static member
9
10
StatusCode
LArBadChannelMask::buildBitMask
(
const
std::vector<std::string>& problemsToMask, MsgStream&
msg
) {
11
m_bitMask
= 0x0;
12
for
(
const
std::string& prblm : problemsToMask) {
13
if
(
m_isSC
) {
14
std::pair<bool, LArBadChannel::LArBadChannelSCEnum::ProblemType>
result
15
=
s_bitSCPacking
.
enumName
(prblm);
16
if
(
result
.first)
17
s_bitSCPacking
.
setBit
(
result
.second,
m_bitMask
);
18
else
{
19
msg
<< MSG::ERROR <<
"The problem flag '"
<< prblm <<
"' was not recognized."
<<
endmsg
;
20
return
StatusCode::FAILURE;
21
}
22
}
else
{
23
std::pair<bool, LArBadChannel::LArBadChannelEnum::ProblemType>
result
24
=
s_bitPacking
.
enumName
(prblm);
25
if
(
result
.first)
26
s_bitPacking
.
setBit
(
result
.second,
m_bitMask
);
27
else
{
28
msg
<< MSG::ERROR <<
"The problem flag '"
<< prblm <<
"' was not recognized."
<<
endmsg
;
29
return
StatusCode::FAILURE;
30
}
31
}
32
}
//end loop over vector<string>
33
return
StatusCode::SUCCESS;
34
}
35
LArBadChanBitPacking
Definition:
LArBadChanBitPacking.h:13
get_generator_info.result
result
Definition:
get_generator_info.py:21
LArBadChannelMask::buildBitMask
StatusCode buildBitMask(const std::vector< std::string > &problemsToMask, MsgStream &msg)
Definition:
LArBadChannelMask.cxx:10
LArBadChannelMask::m_isSC
bool m_isSC
Definition:
LArBadChannelMask.h:36
endmsg
#define endmsg
Definition:
AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TLArBadChanBitPackingBase::enumName
std::pair< bool, typename T::ProblemType > enumName(const std::string &str) const
LArBadChannelMask::s_bitPacking
static const LArBadChanBitPacking s_bitPacking
Definition:
LArBadChannelMask.h:32
LArBadChanSCBitPacking
Definition:
LArBadChanBitPacking.h:20
LArBadChannelMask::s_bitSCPacking
static const LArBadChanSCBitPacking s_bitSCPacking
Definition:
LArBadChannelMask.h:33
LArBadChannelMask::m_bitMask
BitWord m_bitMask
Definition:
LArBadChannelMask.h:35
TLArBadChanBitPackingBase::setBit
void setBit(typename T::ProblemType pb, LArBadChannel::BitWord &word, bool value=true) const
LArBadChannelMask.h
python.AutoConfigFlags.msg
msg
Definition:
AutoConfigFlags.py:7
Generated on Tue May 13 2025 21:12:41 for ATLAS Offline Software by
1.8.18