Project
Loading...
Searching...
No Matches
o2::tpc::dcs::HV Struct Reference

#include <DCS.h>

Public Types

enum class  StackState : char {
  NO_CONTROL = 2 , STBY_CONFIGURED = 3 , OFF = 4 , RAMPIG_DOWN = 7 ,
  RAMPIG_UP = 8 , RAMPIG_DOWN_LOW = 9 , RAMPIG_UP_LOW = 10 , ON = 11 ,
  ERROR = 13 , INTERMEDIATE = 14 , MIXED = 19 , INTERLOCK = 24 ,
  ERROR_LOCAL = 25 , SOFT_INTERLOCK = 29
}
 
using RawDPsState = DataPointVector< StackState >
 

Public Member Functions

 HV () noexcept
 
void fillUI (std::string_view sensor, const TimeStampType time, const DataType value)
 Fill voltage and current information.
 
void fillStatus (std::string_view sensor, const TimeStampType time, const uint32_t value)
 Fill stack status information.
 
void sortAndClean ()
 
void clear ()
 
void append (const HV &other)
 
 ClassDefNV (HV, 1)
 

Static Public Member Functions

static int getSector (std::string_view sensor)
 
static GEMstack getStack (std::string_view sensor)
 

Public Attributes

std::vector< RawDPsFvoltages
 voltages per GEM stack, counting is IROCs GEM1 top, bottom, GEM2 top, bottom, .. O1 ..., O2
 
std::vector< RawDPsFcurrents
 currents per GEM stack, counting is IROCs GEM1 top, bottom, GEM2 top, bottom, .. O1 ..., O2
 
std::vector< RawDPsStatestates
 HV state per sector.
 

Static Public Attributes

static constexpr size_t SidePos = 7
 Position of the side identifier.
 
static constexpr size_t SectorPos = 8
 Position of the sector number.
 
static constexpr size_t ROCPos = 11
 Position of the readout chamber type.
 
static constexpr size_t GEMPos = 14
 GEM position. OROC is +1.
 
static constexpr size_t ElectrodePos = 15
 Electrode type (T, B). OROC is +1.
 
static const std::unordered_map< StackState, std::string > StackStateNameMap
 map state to string
 

Detailed Description

HV value store

Definition at line 336 of file DCS.h.

Member Typedef Documentation

◆ RawDPsState

Definition at line 368 of file DCS.h.

Member Enumeration Documentation

◆ StackState

enum class o2::tpc::dcs::HV::StackState : char
strong
Enumerator
NO_CONTROL 
STBY_CONFIGURED 
OFF 
RAMPIG_DOWN 
RAMPIG_UP 
RAMPIG_DOWN_LOW 
RAMPIG_UP_LOW 
ON 
ERROR 
INTERMEDIATE 
MIXED 
INTERLOCK 
ERROR_LOCAL 
SOFT_INTERLOCK 

Definition at line 349 of file DCS.h.

Constructor & Destructor Documentation

◆ HV()

HV::HV ( )
noexcept

Definition at line 58 of file DCS.cxx.

Member Function Documentation

◆ append()

void o2::tpc::dcs::HV::append ( const HV other)
inline

Definition at line 437 of file DCS.h.

◆ ClassDefNV()

o2::tpc::dcs::HV::ClassDefNV ( HV  ,
 
)

◆ clear()

void o2::tpc::dcs::HV::clear ( )
inline

Definition at line 430 of file DCS.h.

◆ fillStatus()

void o2::tpc::dcs::HV::fillStatus ( std::string_view  sensor,
const TimeStampType  time,
const uint32_t  value 
)
inline

Fill stack status information.

Definition at line 413 of file DCS.h.

◆ fillUI()

void o2::tpc::dcs::HV::fillUI ( std::string_view  sensor,
const TimeStampType  time,
const DataType  value 
)
inline

Fill voltage and current information.

Definition at line 391 of file DCS.h.

◆ getSector()

static int o2::tpc::dcs::HV::getSector ( std::string_view  sensor)
inlinestatic

Definition at line 374 of file DCS.h.

◆ getStack()

static GEMstack o2::tpc::dcs::HV::getStack ( std::string_view  sensor)
inlinestatic

Definition at line 381 of file DCS.h.

◆ sortAndClean()

void o2::tpc::dcs::HV::sortAndClean ( )
inline

Definition at line 423 of file DCS.h.

Member Data Documentation

◆ currents

std::vector<RawDPsF> o2::tpc::dcs::HV::currents

currents per GEM stack, counting is IROCs GEM1 top, bottom, GEM2 top, bottom, .. O1 ..., O2

Definition at line 371 of file DCS.h.

◆ ElectrodePos

constexpr size_t o2::tpc::dcs::HV::ElectrodePos = 15
staticconstexpr

Electrode type (T, B). OROC is +1.

Definition at line 347 of file DCS.h.

◆ GEMPos

constexpr size_t o2::tpc::dcs::HV::GEMPos = 14
staticconstexpr

GEM position. OROC is +1.

Definition at line 346 of file DCS.h.

◆ ROCPos

constexpr size_t o2::tpc::dcs::HV::ROCPos = 11
staticconstexpr

Position of the readout chamber type.

Definition at line 345 of file DCS.h.

◆ SectorPos

constexpr size_t o2::tpc::dcs::HV::SectorPos = 8
staticconstexpr

Position of the sector number.

Definition at line 344 of file DCS.h.

◆ SidePos

constexpr size_t o2::tpc::dcs::HV::SidePos = 7
staticconstexpr

Position of the side identifier.

Definition at line 343 of file DCS.h.

◆ StackStateNameMap

◆ states

std::vector<RawDPsState> o2::tpc::dcs::HV::states

HV state per sector.

Definition at line 372 of file DCS.h.

◆ voltages

std::vector<RawDPsF> o2::tpc::dcs::HV::voltages

voltages per GEM stack, counting is IROCs GEM1 top, bottom, GEM2 top, bottom, .. O1 ..., O2

Definition at line 370 of file DCS.h.


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