ATLAS Offline Software
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 //____________________________________________________________________
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 //____________________________________________________________________
25 }
26 
27 //
28 //____________________________________________________________________
30 
31  ATH_MSG_DEBUG( "In initialize()" );
32 
33  //=== Initialize conditions data key with DCS status
35 
36  return StatusCode::SUCCESS;
37 }
38 
39 //
40 //____________________________________________________________________
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 
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 
59  return dcsState->getChannelHVSet(ros, drawer, channel);
60 
61 }
62 
63 int TileDCSTool::getDrawerStates(unsigned int ros, unsigned int drawer) const {
64 
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 
74  return dcsState->getDCSHVStatus(ros, drawer, channel);
75 
76 }
77 
79 
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 
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 
96  return dcsState->isStatusHVBad(ros, drawer, channel);
97 
98 }
99 
100 bool TileDCSTool::isStatusBad (unsigned int ros, unsigned int drawer) const {
101 
103  return dcsState->isStatusBad(ros, drawer);
104 
105 }
106 
107 bool TileDCSTool::isStatusBad(unsigned int ros, unsigned int drawer, unsigned int channel) const {
108 
110  return dcsState->isStatusBad(ros, drawer, channel);
111 
112 }
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
TileDCSState::getChannelHVSet
float getChannelHVSet(unsigned int ros, unsigned int drawer, unsigned int channel) const
Return requested HV reported by DCS for given Tile channel.
Definition: TileDCSState.h:243
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
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
TileDCSState::getChannelHV
float getChannelHV(unsigned int ros, unsigned int drawer, unsigned int channel) const
Return measured HV reported by DCS for given Tile channel.
Definition: TileDCSState.h:227
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
TileDCSState::getDCSHVStatus
TileDCSStatus getDCSHVStatus(unsigned int ros, unsigned int drawer, unsigned int channel) const
Return TileDCSstatus for given Tile channel determined by deviation between measured and requested HV...
Definition: TileDCSState.h:275
TileDCSState::isStatusBad
bool isStatusBad(unsigned int ros, unsigned int drawer) const
Return true if given Tile drawer considered as bad by summary drawer states per LVPS otherwise return...
Definition: TileDCSState.h:320
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
ReadCondHandle.h
TileDCSTool::finalize
virtual StatusCode finalize() override
Definition: TileDCSTool.cxx:41
TileDCSTool::TileDCSTool
TileDCSTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: TileDCSTool.cxx:15
TileDCSState::TileDCSStatus
TileDCSStatus
Describes Tile DCS status.
Definition: TileDCSState.h:32
TileDCSState::isStatusHVBad
bool isStatusHVBad(unsigned int ros, unsigned int drawer, unsigned int channel) const
Return true if given Tile channel considered as bad by deviation between measured and requested HV ot...
Definition: TileDCSState.h:315
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.h
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
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
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
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
errorcheck.h
Helpers for checking error return status codes and reporting errors.
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
TileDCSState::getDrawerStates
int getDrawerStates(unsigned int ros, unsigned int drawer) const
Return Tile drawer summary states per LVPS reported by DCS.
Definition: TileDCSState.h:259
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileDCSTool::initialize
virtual StatusCode initialize() override
Definition: TileDCSTool.cxx:29
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
TileDCSTool::~TileDCSTool
virtual ~TileDCSTool()
Definition: TileDCSTool.cxx:24
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
TileDCSTool::m_dcsStateKey
SG::ReadCondHandleKey< TileDCSState > m_dcsStateKey
Name of TileDCSState object in condition store.
Definition: TileDCSTool.h:82