Project
Loading...
Searching...
No Matches
DCSDPHints.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
18#include "TPCdcs/DCSDPHints.h"
19
20std::vector<o2::dcs::test::HintType> o2::tpc::dcs::getTPCDCSDPHints(const int maxSectors)
21{
22 std::vector<o2::dcs::test::HintType> dphints;
23 // ===| Gas sensors and gas chromatograph values |============================
24 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_GC_ARGON", 0., 100.});
25 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_GC_CO2", 0., 20.});
26 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_GC_N2", 4., 6.});
27 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_GC_NEON", 85., 95.});
28 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_GC_O2", 0.02, 0.035});
29 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_GC_WATER", 0, 100.});
30 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_An_L1Sr141_H2O", 0, 1000.});
31 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_An_L1Sr141_O2", 0, 1000.});
32
33 // ==| Temperature sensors |==================================================
34 // only the ones inside the TPC
35 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_351_TEMPERATURE", 20., 30.});
36 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_376_TEMPERATURE", 20., 30.});
37 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_415_TEMPERATURE", 20., 30.});
38 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_447_TEMPERATURE", 20., 30.});
39 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_477_TEMPERATURE", 20., 30.});
40 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_488_TEMPERATURE", 20., 30.});
41 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_537_TEMPERATURE", 20., 30.});
42 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_575_TEMPERATURE", 20., 30.});
43 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_589_TEMPERATURE", 20., 30.});
44 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_629_TEMPERATURE", 20., 30.});
45 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_664_TEMPERATURE", 20., 30.});
46 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_695_TEMPERATURE", 20., 30.});
47 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_735_TEMPERATURE", 20., 30.});
48 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_757_TEMPERATURE", 20., 30.});
49 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_797_TEMPERATURE", 20., 30.});
50 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_831_TEMPERATURE", 20., 30.});
51 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_851_TEMPERATURE", 20., 30.});
52 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"TPC_PT_895_TEMPERATURE", 20., 30.});
53
54 // ===| HV supplies |=========================================================
55 //
56 // ---| A-Side voltages |-----------------------------------------------------
57 //
58 // ---| bottom electrodes |---
59 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_A[00..{:02}]_I_G[1..4]B_U", maxSectors), 0, 800.});
60 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_A[00..{:02}]_O[1..3]_G[1..4]B_U", maxSectors), 0, 800.});
61
62 // ---| top electrodes |---
63 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_A[00..{:02}]_I_G[1..4]T_U", maxSectors), 0, 800.});
64 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_A[00..{:02}]_O[1..3]_G[1..4]T_U", maxSectors), 0, 800.});
65
66 // ---| C-Side voltages |-----------------------------------------------------
67 // ---| bottom electrodes |---
68 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_C[00..{:02}]_I_G[1..4]B_U", maxSectors), 0, 800.});
69 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_C[00..{:02}]_O[1..3]_G[1..4]B_U", maxSectors), 0, 800.});
70
71 // ---| top electrodes |---
72 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_C[00..{:02}]_I_G[1..4]T_U", maxSectors), 0, 800.});
73 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_C[00..{:02}]_O[1..3]_G[1..4]T_U", maxSectors), 0, 800.});
74
75 // ---| A-Side currents |-----------------------------------------------------
76 //
77 // ---| bottom electrodes |---
78 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_A[00..{:02}]_I_G[1..4]B_I", maxSectors), 0, 800.});
79 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_A[00..{:02}]_O[1..3]_G[1..4]B_I", maxSectors), 0, 800.});
80
81 // ---| top electrodes |---
82 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_A[00..{:02}]_I_G[1..4]T_I", maxSectors), 0, 800.});
83 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_A[00..{:02}]_O[1..3]_G[1..4]T_I", maxSectors), 0, 800.});
84
85 // ---| C-Side currents |-----------------------------------------------------
86 // ---| bottom electrodes |---
87 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_C[00..{:02}]_I_G[1..4]B_I", maxSectors), 0, 800.});
88 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_C[00..{:02}]_O[1..3]_G[1..4]B_I", maxSectors), 0, 800.});
89
90 // ---| top electrodes |---
91 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_C[00..{:02}]_I_G[1..4]T_I", maxSectors), 0, 800.});
92 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{fmt::format("TPC_HV_C[00..{:02}]_O[1..3]_G[1..4]T_I", maxSectors), 0, 800.});
93
94 // ---| Stack status |--------------------------------------------------------
95 dphints.emplace_back(o2::dcs::test::DataPointHint<int32_t>{fmt::format("TPC_HV_A[00..{:02}]_I_STATUS", maxSectors), 0, 29});
96 dphints.emplace_back(o2::dcs::test::DataPointHint<int32_t>{fmt::format("TPC_HV_A[00..{:02}]_O[1..3]_STATUS", maxSectors), 0, 29});
97
98 dphints.emplace_back(o2::dcs::test::DataPointHint<int32_t>{fmt::format("TPC_HV_C[00..{:02}]_I_STATUS", maxSectors), 0, 29});
99 dphints.emplace_back(o2::dcs::test::DataPointHint<int32_t>{fmt::format("TPC_HV_C[00..{:02}]_O[1..3]_STATUS", maxSectors), 0, 29});
100
101 return dphints;
102}
DCS data point configuration for the TPC.
std::vector< o2::dcs::test::HintType > getTPCDCSDPHints(const int maxSectors=17)