ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileConditions
src
TileDCSTool.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
// Tile includes
6
#include "
TileDCSTool.h
"
7
8
// Athena incldues
9
#include "
AthenaKernel/errorcheck.h
"
10
#include "
StoreGate/ReadCondHandle.h
"
11
12
13
//
14
//____________________________________________________________________
15
TileDCSTool::TileDCSTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent)
16
: base_class(
type
, name, parent)
17
{
18
19
}
20
21
22
//
23
//____________________________________________________________________
24
TileDCSTool::~TileDCSTool
() {
25
}
26
27
//
28
//____________________________________________________________________
29
StatusCode
TileDCSTool::initialize
() {
30
31
ATH_MSG_DEBUG
(
"In initialize()"
);
32
33
//=== Initialize conditions data key with DCS status
34
ATH_CHECK
(
m_dcsStateKey
.initialize() );
35
36
return
StatusCode::SUCCESS;
37
}
38
39
//
40
//____________________________________________________________________
41
StatusCode
TileDCSTool::finalize
() {
42
43
ATH_MSG_DEBUG
(
"finalize called"
);
44
45
return
StatusCode::SUCCESS;
46
}
47
48
49
float
TileDCSTool::getChannelHV
(
unsigned
int
ros,
unsigned
int
drawer,
unsigned
int
channel)
const
{
50
51
SG::ReadCondHandle<TileDCSState>
dcsState(
m_dcsStateKey
);
52
return
dcsState->getChannelHV(ros, drawer, channel);
53
54
}
55
56
float
TileDCSTool::getChannelHVSet
(
unsigned
int
ros,
unsigned
int
drawer,
unsigned
int
channel)
const
{
57
58
SG::ReadCondHandle<TileDCSState>
dcsState(
m_dcsStateKey
);
59
return
dcsState->getChannelHVSet(ros, drawer, channel);
60
61
}
62
63
int
TileDCSTool::getDrawerStates
(
unsigned
int
ros,
unsigned
int
drawer)
const
{
64
65
SG::ReadCondHandle<TileDCSState>
dcsState(
m_dcsStateKey
);
66
return
dcsState->getDrawerStates(ros, drawer);
67
68
}
69
70
71
TileDCSState::TileDCSStatus
TileDCSTool::getDCSHVStatus
(
unsigned
int
ros,
unsigned
int
drawer,
unsigned
int
channel)
const
{
72
73
SG::ReadCondHandle<TileDCSState>
dcsState(
m_dcsStateKey
);
74
return
dcsState->getDCSHVStatus(ros, drawer, channel);
75
76
}
77
78
TileDCSState::TileDCSStatus
TileDCSTool::getDCSStatus
(
unsigned
int
ros,
unsigned
int
drawer)
const
{
79
80
SG::ReadCondHandle<TileDCSState>
dcsState(
m_dcsStateKey
);
81
return
dcsState->getDCSStatus(ros, drawer);
82
83
}
84
85
TileDCSState::TileDCSStatus
TileDCSTool::getDCSStatus
(
unsigned
int
ros,
unsigned
int
drawer,
unsigned
int
channel)
const
{
86
87
SG::ReadCondHandle<TileDCSState>
dcsState(
m_dcsStateKey
);
88
return
dcsState->getDCSStatus(ros, drawer, channel);
89
90
}
91
92
93
bool
TileDCSTool::isStatusHVBad
(
unsigned
int
ros,
unsigned
int
drawer,
unsigned
int
channel)
const
{
94
95
SG::ReadCondHandle<TileDCSState>
dcsState(
m_dcsStateKey
);
96
return
dcsState->isStatusHVBad(ros, drawer, channel);
97
98
}
99
100
bool
TileDCSTool::isStatusBad
(
unsigned
int
ros,
unsigned
int
drawer)
const
{
101
102
SG::ReadCondHandle<TileDCSState>
dcsState(
m_dcsStateKey
);
103
return
dcsState->isStatusBad(ros, drawer);
104
105
}
106
107
bool
TileDCSTool::isStatusBad
(
unsigned
int
ros,
unsigned
int
drawer,
unsigned
int
channel)
const
{
108
109
SG::ReadCondHandle<TileDCSState>
dcsState(
m_dcsStateKey
);
110
return
dcsState->isStatusBad(ros, drawer, channel);
111
112
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
errorcheck.h
Helpers for checking error return status codes and reporting errors.
ReadCondHandle.h
TileDCSTool.h
SG::ReadCondHandle
Definition
ReadCondHandle.h:40
TileDCSState::TileDCSStatus
TileDCSStatus
Describes Tile DCS status.
Definition
TileDCSState.h:32
TileDCSTool::initialize
virtual StatusCode initialize() override
Definition
TileDCSTool.cxx:29
TileDCSTool::getChannelHV
virtual float getChannelHV(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return measured HV reported by DCS for given Tile channel.
Definition
TileDCSTool.cxx:49
TileDCSTool::TileDCSTool
TileDCSTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TileDCSTool.cxx:15
TileDCSTool::getChannelHVSet
virtual float getChannelHVSet(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return requested HV reported by DCS for given Tile channel.
Definition
TileDCSTool.cxx:56
TileDCSTool::finalize
virtual StatusCode finalize() override
Definition
TileDCSTool.cxx:41
TileDCSTool::isStatusBad
virtual bool isStatusBad(unsigned int ros, unsigned int drawer) const override
Return true if given Tile drawer considered as bad by summary drawer states per LVPS otherwise return...
Definition
TileDCSTool.cxx:100
TileDCSTool::getDCSHVStatus
virtual TileDCSState::TileDCSStatus getDCSHVStatus(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return TileDCSstatus for given Tile channel determined by deviation between measured and requested HV...
Definition
TileDCSTool.cxx:71
TileDCSTool::m_dcsStateKey
SG::ReadCondHandleKey< TileDCSState > m_dcsStateKey
Name of TileDCSState object in condition store.
Definition
TileDCSTool.h:82
TileDCSTool::getDrawerStates
virtual int getDrawerStates(unsigned int ros, unsigned int drawer) const override
Return Tile drawer summary states per LVPS reported by DCS.
Definition
TileDCSTool.cxx:63
TileDCSTool::getDCSStatus
virtual TileDCSState::TileDCSStatus getDCSStatus(unsigned int ros, unsigned int drawer) const override
Return TileDCSstatus for given Tile drawer determined by summary states per LVPS.
Definition
TileDCSTool.cxx:78
TileDCSTool::~TileDCSTool
virtual ~TileDCSTool()
Definition
TileDCSTool.cxx:24
TileDCSTool::isStatusHVBad
virtual bool isStatusHVBad(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return true if given Tile channel considered as bad by deviation between measured and requested HV ot...
Definition
TileDCSTool.cxx:93
type
Generated on
for ATLAS Offline Software by
1.17.0