ATLAS Offline Software
Loading...
Searching...
No Matches
TileDCSTool Class Reference

The tool to get Tile DCS information from DB. More...

#include <TileDCSTool.h>

Inheritance diagram for TileDCSTool:
Collaboration diagram for TileDCSTool:

Public Member Functions

 TileDCSTool (const std::string &type, const std::string &name, const IInterface *parent)
virtual ~TileDCSTool ()
virtual StatusCode initialize () override
virtual StatusCode finalize () 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.
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 int getDrawerStates (unsigned int ros, unsigned int drawer) const override
 Return Tile drawer summary states per LVPS reported by DCS.
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.
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 TileDCSState::TileDCSStatus getDCSStatus (unsigned int ros, unsigned int drawer, unsigned int channel) const override
 Return TileDCSstatus for given Tile channel determined by summary states per LVPS and deviation between measured and requested HV.
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 otherwise return false.
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 false. (unsigned int ros, unsigned int drawer) const (unsigned int ros, unsigned int drawer) const
virtual bool isStatusBad (unsigned int ros, unsigned int drawer, unsigned int channel) const override
 Return true if given Tile channel considered as bad by summary drawer states per LVPS and deviation between measured and requested HV otherwise return false.

Private Attributes

SG::ReadCondHandleKey< TileDCSStatem_dcsStateKey
 Name of TileDCSState object in condition store.

Detailed Description

The tool to get Tile DCS information from DB.

Definition at line 23 of file TileDCSTool.h.

Constructor & Destructor Documentation

◆ TileDCSTool()

TileDCSTool::TileDCSTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 15 of file TileDCSTool.cxx.

16 : base_class(type, name, parent)
17{
18
19}

◆ ~TileDCSTool()

TileDCSTool::~TileDCSTool ( )
virtual

Definition at line 24 of file TileDCSTool.cxx.

24 {
25}

Member Function Documentation

◆ finalize()

StatusCode TileDCSTool::finalize ( )
overridevirtual

Definition at line 41 of file TileDCSTool.cxx.

41 {
42
43 ATH_MSG_DEBUG( "finalize called" );
44
45 return StatusCode::SUCCESS;
46}
#define ATH_MSG_DEBUG(x)

◆ getChannelHV()

float TileDCSTool::getChannelHV ( unsigned int ros,
unsigned int drawer,
unsigned int channel ) const
overridevirtual

Return measured HV reported by DCS for given Tile channel.

Parameters
rosTile ROS number: 1 == LBA, 2 == LBC, 3 == EBA, 4 == EBC
drawerTile drawer number in range [0..63]
channelTile channel number in range [0..47]
Returns
measured HV reported by DCS for given Tile channel

Definition at line 49 of file TileDCSTool.cxx.

49 {
50
51 SG::ReadCondHandle<TileDCSState> dcsState(m_dcsStateKey);
52 return dcsState->getChannelHV(ros, drawer, channel);
53
54}
SG::ReadCondHandleKey< TileDCSState > m_dcsStateKey
Name of TileDCSState object in condition store.
Definition TileDCSTool.h:82

◆ getChannelHVSet()

float TileDCSTool::getChannelHVSet ( unsigned int ros,
unsigned int drawer,
unsigned int channel ) const
overridevirtual

Return requested HV reported by DCS for given Tile channel.

Parameters
rosTile ROS number: 1 == LBA, 2 == LBC, 3 == EBA, 4 == EBC
drawerTile drawer number in range [0..63]
channelTile channel number in range [0..47]
Returns
requested HV reported by DCS for given Tile channel

Definition at line 56 of file TileDCSTool.cxx.

56 {
57
58 SG::ReadCondHandle<TileDCSState> dcsState(m_dcsStateKey);
59 return dcsState->getChannelHVSet(ros, drawer, channel);
60
61}

◆ getDCSHVStatus()

TileDCSState::TileDCSStatus TileDCSTool::getDCSHVStatus ( unsigned int ros,
unsigned int drawer,
unsigned int channel ) const
overridevirtual

Return TileDCSstatus for given Tile channel determined by deviation between measured and requested HV.

Parameters
rosTile ROS number: 1 == LBA, 2 == LBC, 3 == EBA, 4 == EBC
drawerTile drawer number in range [0..63]
channelTile channel number in range [0..47]
Returns
TileDCSstatus for given Tile channel determined by deviation between measured and requested HV

Definition at line 71 of file TileDCSTool.cxx.

71 {
72
73 SG::ReadCondHandle<TileDCSState> dcsState(m_dcsStateKey);
74 return dcsState->getDCSHVStatus(ros, drawer, channel);
75
76}

◆ getDCSStatus() [1/2]

TileDCSState::TileDCSStatus TileDCSTool::getDCSStatus ( unsigned int ros,
unsigned int drawer ) const
overridevirtual

Return TileDCSstatus for given Tile drawer determined by summary states per LVPS.

Parameters
rosTile ROS number: 1 == LBA, 2 == LBC, 3 == EBA, 4 == EBC
drawerTile drawer number in range [0..63]
Returns
TileDCSstatus for given Tile drawer

Definition at line 78 of file TileDCSTool.cxx.

78 {
79
80 SG::ReadCondHandle<TileDCSState> dcsState(m_dcsStateKey);
81 return dcsState->getDCSStatus(ros, drawer);
82
83}

◆ getDCSStatus() [2/2]

TileDCSState::TileDCSStatus TileDCSTool::getDCSStatus ( unsigned int ros,
unsigned int drawer,
unsigned int channel ) const
overridevirtual

Return TileDCSstatus for given Tile channel determined by summary states per LVPS and deviation between measured and requested HV.

Parameters
rosTile ROS number: 1 == LBA, 2 == LBC, 3 == EBA, 4 == EBC
drawerTile drawer number in range [0..63]
channelTile channel number in range [0..47]
Returns
TileDCSstatus for given Tile channel

Definition at line 85 of file TileDCSTool.cxx.

85 {
86
87 SG::ReadCondHandle<TileDCSState> dcsState(m_dcsStateKey);
88 return dcsState->getDCSStatus(ros, drawer, channel);
89
90}

◆ getDrawerStates()

int TileDCSTool::getDrawerStates ( unsigned int ros,
unsigned int drawer ) const
overridevirtual

Return Tile drawer summary states per LVPS reported by DCS.

Parameters
rosTile ROS number: 1 == LBA, 2 == LBC, 3 == EBA, 4 == EBC
drawerTile drawer number in range [0..63]
Returns
Tile drawer states reported by DCS

Definition at line 63 of file TileDCSTool.cxx.

63 {
64
65 SG::ReadCondHandle<TileDCSState> dcsState(m_dcsStateKey);
66 return dcsState->getDrawerStates(ros, drawer);
67
68}

◆ initialize()

StatusCode TileDCSTool::initialize ( )
overridevirtual

Definition at line 29 of file TileDCSTool.cxx.

29 {
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}
#define ATH_CHECK
Evaluate an expression and check for errors.

◆ isStatusBad() [1/2]

bool TileDCSTool::isStatusBad ( unsigned int ros,
unsigned int drawer ) const
overridevirtual

Return true if given Tile drawer considered as bad by summary drawer states per LVPS otherwise return false. (unsigned int ros, unsigned int drawer) const (unsigned int ros, unsigned int drawer) const

Parameters
rosTile ROS number: 1 == LBA, 2 == LBC, 3 == EBA, 4 == EBC
drawerTile drawer number in range [0..63]
Returns
TileDCSstatus for given channel (unsigned int ros, unsigned int drawer) const (unsigned int ros, unsigned int drawer) const

Definition at line 100 of file TileDCSTool.cxx.

100 {
101
102 SG::ReadCondHandle<TileDCSState> dcsState(m_dcsStateKey);
103 return dcsState->isStatusBad(ros, drawer);
104
105}

◆ isStatusBad() [2/2]

bool TileDCSTool::isStatusBad ( unsigned int ros,
unsigned int drawer,
unsigned int channel ) const
overridevirtual

Return true if given Tile channel considered as bad by summary drawer states per LVPS and deviation between measured and requested HV otherwise return false.

Parameters
rosTile ROS number: 1 == LBA, 2 == LBC, 3 == EBA, 4 == EBC
drawerTile drawer number in range [0..63]
channelTile channel number in range [0..47]
Returns
TileDCSstatus for given channel

Definition at line 107 of file TileDCSTool.cxx.

107 {
108
109 SG::ReadCondHandle<TileDCSState> dcsState(m_dcsStateKey);
110 return dcsState->isStatusBad(ros, drawer, channel);
111
112}

◆ isStatusHVBad()

bool TileDCSTool::isStatusHVBad ( unsigned int ros,
unsigned int drawer,
unsigned int channel ) const
overridevirtual

Return true if given Tile channel considered as bad by deviation between measured and requested HV otherwise return false.

Parameters
rosTile ROS number: 1 == LBA, 2 == LBC, 3 == EBA, 4 == EBC
drawerTile drawer number in range [0..63]
channelTile channel number in range [0..47]
Returns
TileDCSstatus for given channel

Definition at line 93 of file TileDCSTool.cxx.

93 {
94
95 SG::ReadCondHandle<TileDCSState> dcsState(m_dcsStateKey);
96 return dcsState->isStatusHVBad(ros, drawer, channel);
97
98}

Member Data Documentation

◆ m_dcsStateKey

SG::ReadCondHandleKey<TileDCSState> TileDCSTool::m_dcsStateKey
private
Initial value:
{this,
"TileDCS", "TileDCS", "Input Tile DCS status"}

Name of TileDCSState object in condition store.

Definition at line 82 of file TileDCSTool.h.

82 {this,
83 "TileDCS", "TileDCS", "Input Tile DCS status"};

The documentation for this class was generated from the following files: