ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArBadChannelTool
LArBadChannelTool
LArBadChannelDecoder.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LArBadChannelDecoder_H
6
#define LArBadChannelDecoder_H
7
8
#include "
LArRecConditions/LArBadChannel.h
"
9
#include "
LArRecConditions/LArBadFeb.h
"
10
#include "
LArBadChannelTool/LArBadChannelState.h
"
11
#include "
LArRecConditions/LArBadChanBitPacking.h
"
12
#include "
LArRecConditions/LArBadFebBitPacking.h
"
13
#include "
Identifier/HWIdentifier.h
"
14
15
#include <vector>
16
#include <string>
17
18
class
LArOnlineID_Base
;
19
class
MsgStream;
20
21
class
LArBadChannelDecoder
{
22
public
:
23
24
LArBadChannelDecoder
(
const
LArOnlineID_Base
* onlineID,
bool
isSC=
false
) :
25
m_onlineID
( onlineID),
m_isSC
(isSC) {}
26
27
typedef
LArBadChannelState
State
;
28
typedef
LArBadChannelState::BadChanEntry
BadChanEntry
;
29
typedef
std::pair< HWIdentifier, LArBadFeb>
BadFebEntry
;
30
31
std::vector<BadChanEntry>
readASCII
(
const
std::string& name,
32
State::CoolChannelEnum
coolChan,
33
MsgStream& log)
const
;
34
35
std::vector<BadFebEntry>
readFebASCII
(
const
std::string& fname,
36
MsgStream& log)
const
;
37
38
private
:
39
40
enum
{
barrel_ec
,
pos_neg
,
feedthrough
,
slot
,
channel
};
// for local use only
41
42
const
LArOnlineID_Base
*
m_onlineID
;
43
LArBadChanBitPacking
m_packing
;
44
LArBadChanSCBitPacking
m_SCpacking
;
45
LArBadFebBitPacking
m_febPacking
;
46
47
bool
m_isSC
;
48
49
HWIdentifier
constructChannelId
(
const
std::vector<int>& intVec,
50
State::CoolChannelEnum
coolChan,
51
MsgStream& log)
const
;
52
std::pair<bool,LArBadChannel>
constructStatus
(
const
std::vector<std::string>&
vec
,
53
MsgStream& log)
const
;
54
std::pair<bool,LArBadFeb>
constructFebStatus
(
const
std::vector<std::string>&
vec
,
55
MsgStream& log)
const
;
56
bool
checkId
(
const
HWIdentifier
&,
int
be,
int
pn,
State::CoolChannelEnum
)
const
;
57
58
std::vector<HWIdentifier>
constructFebId
(
const
std::vector<int>& intVec,
59
MsgStream& log)
const
;
60
61
HWIdentifier
constructSingleFebId
(
const
std::vector<int>& v, MsgStream& log)
const
;
62
63
static
MsgStream&
insertExpandedID
(
const
std::vector<int>& intVec, MsgStream& log) ;
64
65
};
66
67
#endif
vec
std::vector< size_t > vec
Definition
CombinationsGeneratorTest.cxx:9
HWIdentifier.h
LArBadChanBitPacking.h
LArBadChannelState.h
LArBadChannel.h
LArBadFebBitPacking.h
LArBadFeb.h
HWIdentifier
Definition
HWIdentifier.h:13
LArBadChanBitPacking
Definition
LArBadChanBitPacking.h:13
LArBadChanSCBitPacking
Definition
LArBadChanBitPacking.h:20
LArBadChannelDecoder::m_febPacking
LArBadFebBitPacking m_febPacking
Definition
LArBadChannelDecoder.h:45
LArBadChannelDecoder::m_packing
LArBadChanBitPacking m_packing
Definition
LArBadChannelDecoder.h:43
LArBadChannelDecoder::constructSingleFebId
HWIdentifier constructSingleFebId(const std::vector< int > &v, MsgStream &log) const
Definition
LArBadChannelDecoder.cxx:138
LArBadChannelDecoder::readFebASCII
std::vector< BadFebEntry > readFebASCII(const std::string &fname, MsgStream &log) const
Definition
LArBadChannelDecoder.cxx:46
LArBadChannelDecoder::constructFebStatus
std::pair< bool, LArBadFeb > constructFebStatus(const std::vector< std::string > &vec, MsgStream &log) const
Definition
LArBadChannelDecoder.cxx:176
LArBadChannelDecoder::LArBadChannelDecoder
LArBadChannelDecoder(const LArOnlineID_Base *onlineID, bool isSC=false)
Definition
LArBadChannelDecoder.h:24
LArBadChannelDecoder::readASCII
std::vector< BadChanEntry > readASCII(const std::string &name, State::CoolChannelEnum coolChan, MsgStream &log) const
Definition
LArBadChannelDecoder.cxx:13
LArBadChannelDecoder::m_SCpacking
LArBadChanSCBitPacking m_SCpacking
Definition
LArBadChannelDecoder.h:44
LArBadChannelDecoder::m_isSC
bool m_isSC
Definition
LArBadChannelDecoder.h:47
LArBadChannelDecoder::constructChannelId
HWIdentifier constructChannelId(const std::vector< int > &intVec, State::CoolChannelEnum coolChan, MsgStream &log) const
Definition
LArBadChannelDecoder.cxx:77
LArBadChannelDecoder::constructStatus
std::pair< bool, LArBadChannel > constructStatus(const std::vector< std::string > &vec, MsgStream &log) const
Definition
LArBadChannelDecoder.cxx:157
LArBadChannelDecoder::m_onlineID
const LArOnlineID_Base * m_onlineID
Definition
LArBadChannelDecoder.h:42
LArBadChannelDecoder::BadChanEntry
LArBadChannelState::BadChanEntry BadChanEntry
Definition
LArBadChannelDecoder.h:28
LArBadChannelDecoder::BadFebEntry
std::pair< HWIdentifier, LArBadFeb > BadFebEntry
Definition
LArBadChannelDecoder.h:29
LArBadChannelDecoder::insertExpandedID
static MsgStream & insertExpandedID(const std::vector< int > &intVec, MsgStream &log)
Definition
LArBadChannelDecoder.cxx:192
LArBadChannelDecoder::State
LArBadChannelState State
Definition
LArBadChannelDecoder.h:27
LArBadChannelDecoder::constructFebId
std::vector< HWIdentifier > constructFebId(const std::vector< int > &intVec, MsgStream &log) const
Definition
LArBadChannelDecoder.cxx:107
LArBadChannelDecoder::barrel_ec
@ barrel_ec
Definition
LArBadChannelDecoder.h:40
LArBadChannelDecoder::channel
@ channel
Definition
LArBadChannelDecoder.h:40
LArBadChannelDecoder::slot
@ slot
Definition
LArBadChannelDecoder.h:40
LArBadChannelDecoder::pos_neg
@ pos_neg
Definition
LArBadChannelDecoder.h:40
LArBadChannelDecoder::feedthrough
@ feedthrough
Definition
LArBadChannelDecoder.h:40
LArBadChannelDecoder::checkId
bool checkId(const HWIdentifier &, int be, int pn, State::CoolChannelEnum) const
Definition
LArBadChannelDecoder.cxx:202
LArBadChannelState
Definition
LArBadChannelState.h:15
LArBadChannelState::CoolChannelEnum
CoolChannelEnum
Definition
LArBadChannelState.h:23
LArBadChannelState::BadChanEntry
std::pair< HWIdentifier, LArBadChannel > BadChanEntry
Definition
LArBadChannelState.h:18
LArBadFebBitPacking
Definition
LArBadFebBitPacking.h:16
LArOnlineID_Base
Helper for the Liquid Argon Calorimeter cell identifiers.
Definition
LArOnlineID_Base.h:97
Generated on
for ATLAS Offline Software by
1.17.0