Project
Loading...
Searching...
No Matches
o2::mch::dcs Namespace Reference

Namespaces

namespace  quadrant
 
namespace  slat
 

Classes

struct  Cathode
 

Enumerations

enum class  Chamber {
  Ch00 , Ch01 , Ch02 , Ch03 ,
  Ch04 , Ch05 , Ch06 , Ch07 ,
  Ch08 , Ch09
}
 
enum class  MeasurementType {
  HV_V , HV_I , LV_V_FEE_ANALOG , LV_V_FEE_DIGITAL ,
  LV_V_SOLAR
}
 
enum class  Plane { Bending , NonBending , Both }
 
enum class  Side { Left , Right }
 

Functions

bool operator< (const Cathode &c1, const Cathode &c2)
 
std::string name (Chamber chamber)
 
int toInt (Chamber chamber)
 
std::optional< Chamberchamber (int chamberId)
 
Chamber aliasToChamber (std::string_view alias)
 
bool isSlat (Chamber chamber)
 
bool isQuadrant (Chamber chamber)
 
bool isStation1 (Chamber chamber)
 
bool isStation2 (Chamber chamber)
 
std::vector< std::string > aliases (std::vector< MeasurementType > types={ MeasurementType::HV_V, MeasurementType::HV_I, MeasurementType::LV_V_FEE_ANALOG, MeasurementType::LV_V_FEE_DIGITAL, MeasurementType::LV_V_SOLAR})
 
bool isValid (std::string_view dcsAlias)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, T &object)
 
std::optional< intaliasToDetElemId (std::string_view dcsAlias)
 
int detElemId (Chamber chamber, Side side, int number)
 
std::string name (MeasurementType m)
 
MeasurementType aliasToMeasurementType (std::string_view alias)
 
int aliasToNumber (std::string_view dcsAlias)
 
std::string name (Plane plane)
 
Plane aliasToPlane (std::string_view alias)
 
std::string name (Side side)
 
Side aliasToSide (std::string_view alias)
 
int aliasToSolarCrate (std::string_view alias)
 
std::vector< std::string > allAliases ()
 
std::set< DsIndexaliasToDsIndices (std::string_view alias)
 
std::set< DsIndexgetDsIndices (const std::set< dcs::Cathode > &cathodes)
 
std::set< DsIndexgetDsIndices (dcs::Chamber ch, dcs::Plane plane)
 
std::set< DsIndexgetDsIndices (const std::set< int > &solarIds)
 
double findXmean (const o2::mch::mapping::Segmentation &seg, int dsId)
 
std::set< DsIndexhvAliasToDsIndices (std::string_view alias)
 
std::set< CathodelvAliasToCathode (std::string_view alias)
 
std::set< DsIndexlvAliasToDsIndices (std::string_view alias)
 
std::set< DsIndexsolarAliasToDsIndices (std::string_view alias)
 

Variables

std::vector< std::string > expectedHVAliasesVoltages
 
std::vector< std::string > expectedHVAliasesCurrents
 
std::vector< std::string > expectedLVAliasesFeeDigital
 
std::vector< std::string > expectedLVAliasesFeeAnalog
 
std::vector< std::string > expectedLVAliasesSolar
 

Detailed Description

GENERATED CODE ! DO NOT EDIT !

Enumeration Type Documentation

◆ Chamber

enum class o2::mch::dcs::Chamber
strong

The possible chamber numbers

Enumerator
Ch00 
Ch01 
Ch02 
Ch03 
Ch04 
Ch05 
Ch06 
Ch07 
Ch08 
Ch09 

Definition at line 22 of file Chamber.h.

◆ MeasurementType

enum class o2::mch::dcs::MeasurementType
strong

The list of MCH DCS measurements that are of interest for reconstruction.

Enumerator
HV_V 
HV_I 
LV_V_FEE_ANALOG 
LV_V_FEE_DIGITAL 
LV_V_SOLAR 

Definition at line 20 of file MeasurementType.h.

◆ Plane

enum class o2::mch::dcs::Plane
strong

Plane describe the cathode (if it is relevant) a particular DCS item is concerned with.

Enumerator
Bending 
NonBending 
Both 

Definition at line 22 of file Plane.h.

◆ Side

enum class o2::mch::dcs::Side
strong

Side describes on which side (inside or outside) a detection element (slat or quadrant) is. Note that MCH DCS uses the very old left-right convention instead of the agreed-upon inside-outside.

Enumerator
Left 
Right 

Definition at line 25 of file Side.h.

Function Documentation

◆ aliases()

std::vector< std::string > o2::mch::dcs::aliases ( std::vector< MeasurementType types = { MeasurementType::HV_V, MeasurementType::HV_I, MeasurementType::LV_V_FEE_ANALOG, MeasurementType::LV_V_FEE_DIGITAL, MeasurementType::LV_V_SOLAR})

Definition at line 37 of file DCSAliases.cxx.

◆ aliasToChamber()

Chamber o2::mch::dcs::aliasToChamber ( std::string_view  alias)

extract the chamber information from the alias. alias must be valid otherwise the method throws an exception.

Definition at line 100 of file Chamber.cxx.

◆ aliasToDetElemId()

std::optional< int > o2::mch::dcs::aliasToDetElemId ( std::string_view  dcsAlias)

extract (if possible) the detection element id from the alias

Definition at line 72 of file DetectionElement.cxx.

◆ aliasToDsIndices()

std::set< DsIndex > o2::mch::dcs::aliasToDsIndices ( std::string_view  alias)

get the list of dual sampa indices corresponding to a given DCS Alias

Definition at line 41 of file Mapper.cxx.

◆ aliasToMeasurementType()

MeasurementType o2::mch::dcs::aliasToMeasurementType ( std::string_view  alias)

extract the measurement type information from the alias alias must be valid otherwise the method throws an exception.

Definition at line 34 of file MeasurementType.cxx.

◆ aliasToNumber()

int o2::mch::dcs::aliasToNumber ( std::string_view  dcsAlias)

extract the number information from the alias. alias must be valid otherwise the method throws an exception.

Definition at line 30 of file Number.cxx.

◆ aliasToPlane()

Plane o2::mch::dcs::aliasToPlane ( std::string_view  alias)

extract the plane information from the alias. alias must be valid otherwise the method throws an exception.

Definition at line 25 of file Plane.cxx.

◆ aliasToSide()

Side o2::mch::dcs::aliasToSide ( std::string_view  alias)

extract the side information from the alias. alias must be valid otherwise the method throws an exception.

Definition at line 22 of file Side.cxx.

◆ aliasToSolarCrate()

int o2::mch::dcs::aliasToSolarCrate ( std::string_view  alias)

extract the solar crate from the alias. alias must be valid (and of solar type) otherwise the methods throws an exception.

Definition at line 23 of file SolarCrate.cxx.

◆ allAliases()

std::vector< std::string > o2::mch::dcs::allAliases ( )

Definition at line 69 of file DCSAliases.cxx.

◆ chamber()

std::optional< Chamber > o2::mch::dcs::chamber ( int  chamberId)

convert (if possible) a chamber to an integer

Definition at line 17 of file Chamber.cxx.

◆ detElemId()

int o2::mch::dcs::detElemId ( Chamber  chamber,
Side  side,
int  number 
)

Definition at line 63 of file DetectionElement.cxx.

◆ findXmean()

double o2::mch::dcs::findXmean ( const o2::mch::mapping::Segmentation seg,
int  dsId 
)

Definition at line 24 of file HV.cxx.

◆ getDsIndices() [1/3]

std::set< DsIndex > o2::mch::dcs::getDsIndices ( const std::set< dcs::Cathode > &  cathodes)

get indices of all dual sampas of a set of cathodes (={deId,plane}). returned set might be empty if input Cathodes are not valid ones.

Definition at line 58 of file Mapper.cxx.

◆ getDsIndices() [2/3]

std::set< DsIndex > o2::mch::dcs::getDsIndices ( const std::set< int > &  solarIds)

get indices of all dual sampas of a given set of solars

Definition at line 98 of file Mapper.cxx.

◆ getDsIndices() [3/3]

std::set< DsIndex > o2::mch::dcs::getDsIndices ( dcs::Chamber  ch,
dcs::Plane  plane 
)

get indices of all dual sampas of given plane of a chamber

Definition at line 86 of file Mapper.cxx.

◆ hvAliasToDsIndices()

std::set< DsIndex > o2::mch::dcs::hvAliasToDsIndices ( std::string_view  alias)

Definition at line 39 of file HV.cxx.

◆ isQuadrant()

bool o2::mch::dcs::isQuadrant ( Chamber  chamber)

Definition at line 44 of file Chamber.cxx.

◆ isSlat()

bool o2::mch::dcs::isSlat ( Chamber  chamber)

Definition at line 53 of file Chamber.cxx.

◆ isStation1()

bool o2::mch::dcs::isStation1 ( Chamber  chamber)

Definition at line 58 of file Chamber.cxx.

◆ isStation2()

bool o2::mch::dcs::isStation2 ( Chamber  chamber)

Definition at line 63 of file Chamber.cxx.

◆ isValid()

bool o2::mch::dcs::isValid ( std::string_view  dcsAlias)

Definition at line 85 of file DCSAliases.cxx.

◆ lvAliasToCathode()

std::set< Cathode > o2::mch::dcs::lvAliasToCathode ( std::string_view  alias)

Definition at line 25 of file LV.cxx.

◆ lvAliasToDsIndices()

std::set< DsIndex > o2::mch::dcs::lvAliasToDsIndices ( std::string_view  alias)

Definition at line 35 of file LV.cxx.

◆ name() [1/4]

std::string o2::mch::dcs::name ( Chamber  chamber)

name of Chamber

Definition at line 95 of file Chamber.cxx.

◆ name() [2/4]

std::string o2::mch::dcs::name ( MeasurementType  m)

name of MeasurementType (an,di ...)

Definition at line 18 of file MeasurementType.cxx.

◆ name() [3/4]

std::string o2::mch::dcs::name ( Plane  plane)

return a string representation of plane

Definition at line 65 of file Plane.cxx.

◆ name() [4/4]

std::string o2::mch::dcs::name ( Side  side)

name of Side (Left or Right)

Definition at line 17 of file Side.cxx.

◆ operator<()

bool o2::mch::dcs::operator< ( const Cathode c1,
const Cathode c2 
)

compare two cathodes

Definition at line 16 of file Cathode.cxx.

◆ operator<<()

template<typename T >
std::ostream & o2::mch::dcs::operator<< ( std::ostream &  os,
T &  object 
)

Definition at line 44 of file DCSAliases.h.

◆ solarAliasToDsIndices()

std::set< DsIndex > o2::mch::dcs::solarAliasToDsIndices ( std::string_view  alias)

Definition at line 31 of file Mapper.cxx.

◆ toInt()

int o2::mch::dcs::toInt ( Chamber  chamber)

convert chamber to a plain integer

Definition at line 68 of file Chamber.cxx.

Variable Documentation

◆ expectedHVAliasesCurrents

std::vector< std::string > o2::mch::dcs::expectedHVAliasesCurrents

Definition at line 206 of file HVAliases.cxx.

◆ expectedHVAliasesVoltages

std::vector< std::string > o2::mch::dcs::expectedHVAliasesVoltages

Definition at line 16 of file HVAliases.cxx.

◆ expectedLVAliasesFeeAnalog

std::vector< std::string > o2::mch::dcs::expectedLVAliasesFeeAnalog

Definition at line 126 of file LVAliases.cxx.

◆ expectedLVAliasesFeeDigital

std::vector< std::string > o2::mch::dcs::expectedLVAliasesFeeDigital

Definition at line 16 of file LVAliases.cxx.

◆ expectedLVAliasesSolar

std::vector< std::string > o2::mch::dcs::expectedLVAliasesSolar

Definition at line 237 of file LVAliases.cxx.