ATLAS Offline Software
TileCalorimeter
TileConditions
src
TileDCSState.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
// Tile includes
7
#include "
TileConditions/TileDCSState.h
"
8
9
#include <cstring>
10
#include <algorithm>
11
12
TileDCSState::TileDCSState
()
13
: m_goodDrawer(212222),
14
m_unknownValue(-30)
// should be negative
15
{
16
17
std::fill
(&
m_states
[0][0], &
m_states
[3][64],
m_unknownValue
);
18
std::fill
(&
m_hv
[0][0][0], &
m_hv
[3][63][48],
m_unknownValue
);
19
std::fill
(&
m_hvSet
[0][0][0], &
m_hvSet
[3][63][68],
m_unknownValue
);
20
std::fill
(&
m_status
[0][0][0], &
m_status
[3][63][48],
UNKNOWN
);
21
std::fill
(&
m_hvStatus
[0][0][0], &
m_hvStatus
[3][63][48],
UNKNOWN
);
22
23
}
24
25
26
//_____________________________________________________________________________
27
TileDCSState::TileDCSStatus
TileDCSState::getDCSStatus
(
unsigned
int
ros
,
unsigned
int
drawer
)
const
{
28
29
TileDCSStatus
status
(
ALERT_DRAWER
);
30
31
int
state =
m_states
[
ros
- 1][
drawer
];
32
if
(state ==
m_goodDrawer
) {
33
status
=
OK_DRAWER
;
34
}
else
if
(state ==
m_unknownValue
) {
35
status
=
UNKNOWN
;
36
}
else
if
(
std::find
(
m_warningDrawer
.begin(),
m_warningDrawer
.end(), state) !=
37
m_warningDrawer
.end()) {
38
39
status
=
WARNING_DRAWER
;
40
}
41
42
return
status
;
43
}
TileDCSState.h
find
std::string find(const std::string &s)
return a remapped string
Definition:
hcg.cxx:135
TileDCSState::WARNING_DRAWER
@ WARNING_DRAWER
Definition:
TileDCSState.h:34
TileDCSState::m_hvSet
float m_hvSet[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS][NUMBER_OF_HVSET_CHANNELS]
Definition:
TileDCSState.h:207
TileDCSState::TileDCSState
TileDCSState()
Definition:
TileDCSState.cxx:12
TileDCSState::m_hv
float m_hv[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS][NUMBER_OF_HV_CHANNELS]
Definition:
TileDCSState.h:206
Example_ReadSampleNoise.drawer
drawer
Definition:
Example_ReadSampleNoise.py:39
TileDCSState::m_status
TileDCSStatus m_status[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS][NUMBER_OF_CHANNELS]
Definition:
TileDCSState.h:208
TileDCSState::m_unknownValue
int m_unknownValue
Definition:
TileDCSState.h:213
TileDCSState::TileDCSStatus
TileDCSStatus
Describes Tile DCS status.
Definition:
TileDCSState.h:32
TileDCSState::OK_DRAWER
@ OK_DRAWER
Definition:
TileDCSState.h:33
maskDeadModules.ros
ros
Definition:
maskDeadModules.py:35
fill
void fill(H5::Group &out_file, size_t iterations)
Definition:
test-hdf5-writer.cxx:95
TileDCSState::m_hvStatus
TileDCSStatus m_hvStatus[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS][NUMBER_OF_CHANNELS]
Definition:
TileDCSState.h:209
TileDCSState::ALERT_DRAWER
@ ALERT_DRAWER
Definition:
TileDCSState.h:35
TileDCSState::UNKNOWN
@ UNKNOWN
Definition:
TileDCSState.h:32
merge.status
status
Definition:
merge.py:17
TileDCSState::m_goodDrawer
int m_goodDrawer
Definition:
TileDCSState.h:211
TileDCSState::m_warningDrawer
std::vector< int > m_warningDrawer
Definition:
TileDCSState.h:212
TileDCSState::getDCSStatus
TileDCSStatus getDCSStatus(unsigned int ros, unsigned int drawer) const
Return TileDCSstatus for given Tile drawer determined by summary states per LVPS.
Definition:
TileDCSState.cxx:27
TileDCSState::m_states
int m_states[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS]
Definition:
TileDCSState.h:205
Generated on Thu Nov 7 2024 21:28:06 for ATLAS Offline Software by
1.8.18