ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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. More...
 
virtual float getChannelHVSet (unsigned int ros, unsigned int drawer, unsigned int channel) const override
 Return requested HV reported by DCS for given Tile channel. More...
 
virtual int getDrawerStates (unsigned int ros, unsigned int drawer) const override
 Return Tile drawer summary states per LVPS reported by DCS. More...
 
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. More...
 
virtual TileDCSState::TileDCSStatus getDCSStatus (unsigned int ros, unsigned int drawer) const override
 Return TileDCSstatus for given Tile drawer determined by summary states per LVPS. More...
 
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. More...
 
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. More...
 
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 More...
 
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. More...
 

Private Attributes

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

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 }

◆ 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 
52  return dcsState->getChannelHV(ros, drawer, channel);
53 
54 }

◆ 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 
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 
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 
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 
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 
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
35 
36  return StatusCode::SUCCESS;
37 }

◆ 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 
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 
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 
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.


The documentation for this class was generated from the following files:
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
Example_ReadSampleNoise.drawer
drawer
Definition: Example_ReadSampleNoise.py:39
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
maskDeadModules.ros
ros
Definition: maskDeadModules.py:35
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TileDCSTool::m_dcsStateKey
SG::ReadCondHandleKey< TileDCSState > m_dcsStateKey
Name of TileDCSState object in condition store.
Definition: TileDCSTool.h:82