Project
Loading...
Searching...
No Matches
FV0DCSDataProcessor.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::fv0::FV0DCSDataProcessor::getHardCodedDPIDs()
26{
27 std::vector<o2::dcs::DataPointIdentifier> vect;
28 std::vector<std::string> aliasesHV = {"FV0/HV/S[A,B,C,D,E,F,G,H][1..4]/actual/iMon",
29 "FV0/HV/S[A,B,C,D,E,F,G,H][51,52]/actual/iMon",
30 "FV0/HV/SREF/actual/iMon"};
31 std::vector<std::string> aliasesADC = {"FV0/PM/S[A,B,C,D,E,F,G,H][1..4]/actual/ADC[0,1]_BASELINE",
32 "FV0/PM/S[A,B,C,D,E,F,G,H][51,52]/actual/ADC[0,1]_BASELINE",
33 "FV0/PM/SREF/actual/ADC[0,1]_BASELINE"};
34 std::vector<std::string> aliasesRates = {"FV0/Trigger1_Charge/CNT_RATE",
35 "FV0/Trigger2_Nchannels/CNT_RATE",
36 "FV0/Trigger3_InnerRings/CNT_RATE",
37 "FV0/Trigger4_OuterRings/CNT_RATE",
38 "FV0/Trigger5_OrA/CNT_RATE",
39 "FV0/Background/[0..9]/CNT_RATE",
40 "FV0/Background/[A,B,C,D,E,F,G,H]/CNT_RATE"};
41 std::vector<std::string> expAliasesHV = o2::dcs::expandAliases(aliasesHV);
42 std::vector<std::string> expAliasesADC = o2::dcs::expandAliases(aliasesADC);
43 std::vector<std::string> expAliasesRates = o2::dcs::expandAliases(aliasesRates);
44 for (const auto& i : expAliasesHV) {
45 vect.emplace_back(i, o2::dcs::DPVAL_DOUBLE);
46 }
47 for (const auto& i : expAliasesADC) {
48 vect.emplace_back(i, o2::dcs::DPVAL_UINT);
49 }
50 for (const auto& i : expAliasesRates) {
51 vect.emplace_back(i, o2::dcs::DPVAL_DOUBLE);
52 }
53 return vect;
54}
Task for processing FV0 DCS data.
int32_t i
std::vector< o2::dcs::DataPointIdentifier > getHardCodedDPIDs() override
std::vector< std::string > expandAliases(const std::vector< std::string > &patternedAliases)