Project
Loading...
Searching...
No Matches
testDCSAliases.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "MCHConditions/DCSAliases.h"
#include "MCHConstants/DetectionElements.h"
#include <algorithm>
#include <fmt/format.h>
#include <map>
#include <string>

Go to the source code of this file.

Namespaces

namespace  o2
 a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
 
namespace  o2::mch
 
namespace  o2::mch::dcs
 

Macros

#define BOOST_TEST_MODULE   Test MCHConditions DCSNamer
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_AUTO_TEST_CASE (NumberOfHVAliasesVoltagesIs188)
 
 BOOST_AUTO_TEST_CASE (NumberOfHVAliasesCurrentsIs188)
 
 BOOST_AUTO_TEST_CASE (NumberOfLVAliasesFeeAnalogIs108)
 
 BOOST_AUTO_TEST_CASE (NumberOfLVAliasesFeeDigitalIs108)
 
 BOOST_AUTO_TEST_CASE (NumberOfLVAliasesSolarIs112)
 
 BOOST_AUTO_TEST_CASE (AliasNameIsShortEnough)
 
 BOOST_AUTO_TEST_CASE (AllAliasesShouldBeValid)
 
 BOOST_AUTO_TEST_CASE (AliasToXXX)
 

Variables

std::map< std::string, ID > expected
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 14 of file testDCSAliases.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 13 of file testDCSAliases.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHConditions DCSNamer

Definition at line 12 of file testDCSAliases.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( AliasNameIsShortEnough  )

Definition at line 136 of file testDCSAliases.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( AliasToXXX  )

Definition at line 179 of file testDCSAliases.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( AllAliasesShouldBeValid  )

Definition at line 158 of file testDCSAliases.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( NumberOfHVAliasesCurrentsIs188  )

Definition at line 100 of file testDCSAliases.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( NumberOfHVAliasesVoltagesIs188  )

Definition at line 91 of file testDCSAliases.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( NumberOfLVAliasesFeeAnalogIs108  )

Definition at line 109 of file testDCSAliases.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( NumberOfLVAliasesFeeDigitalIs108  )

Definition at line 118 of file testDCSAliases.cxx.

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( NumberOfLVAliasesSolarIs112  )

Definition at line 127 of file testDCSAliases.cxx.

Variable Documentation

◆ expected

std::map<std::string, ID> expected
Initial value:
= {
{"MchHvLvRight/Chamber06Right/Slat08.actual.vMon", {Chamber::Ch06, MeasurementType::HV_V, 8, Plane::Both, Side::Right}},
{"MchHvLvLeft/Chamber06Left/Group02an.SenseVoltage", {Chamber::Ch06, MeasurementType::LV_V_FEE_ANALOG, 2, Plane::Both, Side::Left}},
{"MchHvLvRight/Chamber01Right/Quad3Sect2.actual.iMon", {Chamber::Ch01, MeasurementType::HV_I, 32, Plane::Both, Side::Right}},
{"MchHvLvRight/Chamber01Right/Group04an", {Chamber::Ch01, MeasurementType::LV_V_FEE_ANALOG, 4, Plane::NonBending, Side::Right}},
{"MchHvLvLeft/Chamber00Left/SolCh00LCr01.SenseVoltage", {Chamber::Ch00, MeasurementType::LV_V_SOLAR, 1, Plane::Both, Side::Left}}
}

Definition at line 166 of file testDCSAliases.cxx.