Project
Loading...
Searching...
No Matches
FT0DCSDataProcessor.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
21
22#include <string>
23#include <vector>
24
25std::vector<o2::dcs::DataPointIdentifier> o2::ft0::FT0DCSDataProcessor::getHardCodedDPIDs()
26{
27 std::vector<o2::dcs::DataPointIdentifier> vect;
28 std::vector<std::string> aliasesHV = {"FT0/HV/FT0_A/MCP_A[1..5]/actual/iMon",
29 "FT0/HV/FT0_A/MCP_B[1..5]/actual/iMon",
30 "FT0/HV/FT0_A/MCP_C[1..2]/actual/iMon",
31 "FT0/HV/FT0_A/MCP_C[4..5]/actual/iMon",
32 "FT0/HV/FT0_A/MCP_D[1..5]/actual/iMon",
33 "FT0/HV/FT0_A/MCP_E[1..5]/actual/iMon",
34 "FT0/HV/FT0_C/MCP_A[2..5]/actual/iMon",
35 "FT0/HV/FT0_C/MCP_B[1..6]/actual/iMon",
36 "FT0/HV/FT0_C/MCP_C[1..2]/actual/iMon",
37 "FT0/HV/FT0_C/MCP_C[5..6]/actual/iMon",
38 "FT0/HV/FT0_C/MCP_D[1..2]/actual/iMon",
39 "FT0/HV/FT0_C/MCP_D[5..6]/actual/iMon",
40 "FT0/HV/FT0_C/MCP_E[1..6]/actual/iMon",
41 "FT0/HV/FT0_C/MCP_F[2..5]/actual/iMon",
42 "FT0/HV/MCP_LC/actual/iMon"};
43 std::string aliasesADC = "FT0/PM/channel[000..211]/actual/ADC[0..1]_BASELINE";
44 std::vector<std::string> aliasesRates = {"FT0/Trigger1_Central/CNT_RATE",
45 "FT0/Trigger2_SemiCentral/CNT_RATE",
46 "FT0/Trigger3_Vertex/CNT_RATE",
47 "FT0/Trigger4_OrC/CNT_RATE",
48 "FT0/Trigger5_OrA/CNT_RATE",
49 "FT0/Background/[0..9]/CNT_RATE",
50 "FT0/Background/[A,B,C,D,E,F,G,H]/CNT_RATE",
51 "FT0/SecondaryCounter/CEplusSC/CNT_RATE"};
52 std::vector<std::string> expAliasesHV = o2::dcs::expandAliases(aliasesHV);
53 std::vector<std::string> expAliasesADC = o2::dcs::expandAlias(aliasesADC);
54 std::vector<std::string> expAliasesRates = o2::dcs::expandAliases(aliasesRates);
55 for (const auto& i : expAliasesHV) {
56 vect.emplace_back(i, o2::dcs::DPVAL_DOUBLE);
57 }
58 for (const auto& i : expAliasesADC) {
59 vect.emplace_back(i, o2::dcs::DPVAL_UINT);
60 }
61 for (const auto& i : expAliasesRates) {
62 vect.emplace_back(i, o2::dcs::DPVAL_DOUBLE);
63 }
64 return vect;
65}
Task for processing FT0 DCS data.
int32_t i
std::vector< o2::dcs::DataPointIdentifier > getHardCodedDPIDs() override
std::vector< std::string > expandAliases(const std::vector< std::string > &patternedAliases)
std::vector< std::string > expandAlias(const std::string &pattern)