ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12
13//
14//____________________________________________________________________
15TileDCSTool::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//____________________________________________________________________
26
27//
28//____________________________________________________________________
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//____________________________________________________________________
42
43 ATH_MSG_DEBUG( "finalize called" );
44
45 return StatusCode::SUCCESS;
46}
47
48
49float TileDCSTool::getChannelHV(unsigned int ros, unsigned int drawer, unsigned int channel) const {
50
52 return dcsState->getChannelHV(ros, drawer, channel);
53
54}
55
56float TileDCSTool::getChannelHVSet(unsigned int ros, unsigned int drawer, unsigned int channel) const {
57
59 return dcsState->getChannelHVSet(ros, drawer, channel);
60
61}
62
63int TileDCSTool::getDrawerStates(unsigned int ros, unsigned int drawer) const {
64
66 return dcsState->getDrawerStates(ros, drawer);
67
68}
69
70
71TileDCSState::TileDCSStatus TileDCSTool::getDCSHVStatus(unsigned int ros, unsigned int drawer, unsigned int channel) const {
72
74 return dcsState->getDCSHVStatus(ros, drawer, channel);
75
76}
77
78TileDCSState::TileDCSStatus TileDCSTool::getDCSStatus(unsigned int ros, unsigned int drawer) const {
79
81 return dcsState->getDCSStatus(ros, drawer);
82
83}
84
85TileDCSState::TileDCSStatus TileDCSTool::getDCSStatus(unsigned int ros, unsigned int drawer, unsigned int channel) const {
86
88 return dcsState->getDCSStatus(ros, drawer, channel);
89
90}
91
92
93bool TileDCSTool::isStatusHVBad(unsigned int ros, unsigned int drawer, unsigned int channel) const {
94
96 return dcsState->isStatusHVBad(ros, drawer, channel);
97
98}
99
100bool TileDCSTool::isStatusBad (unsigned int ros, unsigned int drawer) const {
101
103 return dcsState->isStatusBad(ros, drawer);
104
105}
106
107bool TileDCSTool::isStatusBad(unsigned int ros, unsigned int drawer, unsigned int channel) const {
108
110 return dcsState->isStatusBad(ros, drawer, channel);
111
112}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)
Helpers for checking error return status codes and reporting errors.
TileDCSStatus
Describes Tile DCS status.
virtual StatusCode initialize() override
virtual float getChannelHV(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return measured HV reported by DCS for given Tile channel.
TileDCSTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual float getChannelHVSet(unsigned int ros, unsigned int drawer, unsigned int channel) const override
Return requested HV reported by DCS for given Tile channel.
virtual StatusCode finalize() override
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...
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...
SG::ReadCondHandleKey< TileDCSState > m_dcsStateKey
Name of TileDCSState object in condition store.
Definition TileDCSTool.h:82
virtual int getDrawerStates(unsigned int ros, unsigned int drawer) const override
Return Tile drawer summary states per LVPS reported by DCS.
virtual TileDCSState::TileDCSStatus getDCSStatus(unsigned int ros, unsigned int drawer) const override
Return TileDCSstatus for given Tile drawer determined by summary states per LVPS.
virtual ~TileDCSTool()
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...