ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:61
LArBadChannelMask.h
LArBadChanBitPacking
Definition
LArBadChanBitPacking.h:13
LArBadChanSCBitPacking
Definition
LArBadChanBitPacking.h:20
LArBadChannelMask::s_bitPacking
static const LArBadChanBitPacking s_bitPacking
Definition
LArBadChannelMask.h:32
LArBadChannelMask::s_bitSCPacking
static const LArBadChanSCBitPacking s_bitSCPacking
Definition
LArBadChannelMask.h:33
LArBadChannelMask::m_isSC
bool m_isSC
Definition
LArBadChannelMask.h:36
LArBadChannelMask::m_bitMask
BitWord m_bitMask
Definition
LArBadChannelMask.h:35
LArBadChannelMask::buildBitMask
StatusCode buildBitMask(const std::vector< std::string > &problemsToMask, MsgStream &msg)
Definition
LArBadChannelMask.cxx:10
msg
MsgStream & msg
Definition
testRead.cxx:32
Generated on
for ATLAS Offline Software by
1.17.0