7#ifndef TILECONDITIONS_TILEDCSSTATE_H
8#define TILECONDITIONS_TILEDCSSTATE_H
47 float getChannelHV(
unsigned int ros,
unsigned int drawer,
unsigned int channel)
const;
56 void setChannelHV(
unsigned int ros,
unsigned int drawer,
unsigned int channel,
float hv);
65 float getChannelHVSet(
unsigned int ros,
unsigned int drawer,
unsigned int channel)
const;
74 void setChannelHVSet(
unsigned int ros,
unsigned int drawer,
unsigned int channel,
float hvSet);
90 void setDrawerStates(
unsigned int ros,
unsigned int drawer,
int states);
154 bool isStatusHVBad(
unsigned int ros,
unsigned int drawer,
unsigned int channel)
const;
165 bool isStatusBad (
unsigned int ros,
unsigned int drawer)
const;
177 bool isStatusBad(
unsigned int ros,
unsigned int drawer,
unsigned int channel)
const;
203 unsigned int channel,
unsigned int maxChannel)
const;
231 return m_hv[ros - 1][drawer][channel];
239 m_hv[ros - 1][drawer][channel] = hv;
247 return m_hvSet[ros - 1][drawer][channel];
255 m_hvSet[ros - 1][drawer][channel] = hvSet;
261 checkDrawer(
"TileDCSState::getDrawerStates()", ros, drawer);
269 checkDrawer(
"TileDCSState::setDrawerStates()", ros, drawer);
277 unsigned int channel)
const {
290 m_hvStatus[ros - 1][drawer][channel] = status;
296 unsigned int channel)
const {
300 return m_status[ros - 1][drawer][channel];
306 unsigned int channel,
311 return m_status[ros - 1][drawer][channel] = status;
342 unsigned int ros,
unsigned int drawer)
const {
357 unsigned int ros,
unsigned int drawer,
358 unsigned int channel,
unsigned int maxChannel)
const {
362 if (channel >= maxChannel) {
Hold mappings of ranges to condition objects.
#define CONDCONT_MIXED_DEF(...)
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Thrown if an index is out of range.
Condition object to keep Tile DCS status from DB.
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...
void setDrawerStates(unsigned int ros, unsigned int drawer, int states)
Store Tile drawer summary states per LVPS reported by DCS.
TileDCSStatus getDCSStatus(unsigned int ros, unsigned int drawer) const
Return TileDCSstatus for given Tile drawer determined by summary states per LVPS.
float getChannelHV(unsigned int ros, unsigned int drawer, unsigned int channel) const
Return measured HV reported by DCS for given Tile channel.
float getChannelHVSet(unsigned int ros, unsigned int drawer, unsigned int channel) const
Return requested HV reported by DCS for given Tile channel.
@ NUMBER_OF_HVSET_CHANNELS
Number of Tile "channels" in DCS HVSET folder.
@ NUMBER_OF_DRAWERS
Number of Tile drawers in one ROS.
@ NUMBER_OF_ROSES
Number of Tile ROSes.
@ NUMBER_OF_CHANNELS
Number of Tile channels.
@ NUMBER_OF_HV_CHANNELS
Number of Tile "channels" in DCS HV folder.
void checkChannel(const std::string &description, unsigned int ros, unsigned int drawer, unsigned int channel, unsigned int maxChannel) const
void setWarningDrawer(const std::vector< int > &warningDrawer)
Store vector of warning Tile drawer summary states per LVPS as reference.
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...
void setChannelHV(unsigned int ros, unsigned int drawer, unsigned int channel, float hv)
Store measured HV reported by DCS for given Tile channel.
TileDCSStatus m_hvStatus[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS][NUMBER_OF_CHANNELS]
TileDCSStatus
Describes Tile DCS status.
std::vector< int > m_warningDrawer
TileDCSStatus setDCSStatus(unsigned int ros, unsigned int drawer, unsigned int channel, TileDCSStatus status)
Store TileDCSstatus for given Tile channel determined by summary states per LVPS and deviation betwee...
void setDCSHVStatus(unsigned int ros, unsigned int drawer, unsigned int channel, TileDCSStatus status)
Store TileDCSstatus for given Tile channel determined by deviation between measured and requested HV.
void setChannelHVSet(unsigned int ros, unsigned int drawer, unsigned int channel, float hvSet)
Store requested HV reported by DCS for given Tile channel.
float m_hv[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS][NUMBER_OF_HV_CHANNELS]
int m_states[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS]
void setGoodDrawer(int goodDrawer)
Store good Tile drawer summary states per LVPS as reference.
TileDCSStatus m_status[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS][NUMBER_OF_CHANNELS]
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...
int getDrawerStates(unsigned int ros, unsigned int drawer) const
Return Tile drawer summary states per LVPS reported by DCS.
void checkDrawer(const std::string &description, unsigned int ros, unsigned int drawer) const
float m_hvSet[NUMBER_OF_ROSES][NUMBER_OF_DRAWERS][NUMBER_OF_HVSET_CHANNELS]
std::string description
glabal timer - how long have I taken so far?