Project
Loading...
Searching...
No Matches
trd-dcs-sim-workflow.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
14
16{
17 std::vector<o2::dcs::test::HintType> dphints;
18 // for TRD, official list
19
20 // gas parameters
21 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_gasCO2", 0, 50.}); // adding a data point of type double with the name trd_gasCO2 which takes values between 0 and 50
22 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_gasH2O", 0, 500.});
23 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_gasO2", 0, 100.});
24 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_gaschromatographCO2", 0, 100.});
25 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_gaschromatographN2", 0, 100.});
26 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_gaschromatographXe", 0, 100.});
27
28 // HV parameters
29 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_hvAnodeImon[00..539]", 0, 50.});
30 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_hvAnodeUmon[00..539]", 1549., 1550.});
31 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_hvDriftImon[00..539]", 0, 50.});
32 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"trd_hvDriftUmon[00..539]", 2249., 2250.});
33
34 // FED parameters
35 dphints.emplace_back(o2::dcs::test::DataPointHint<int32_t>{"trd_chamberStatus[00..539]", 1, 5});
36 dphints.emplace_back(o2::dcs::test::DataPointHint<std::string>{"trd_CFGtag[00..539]", "foo", "bar"});
37 // FIXME if I put a longer string here, e.g. "cf2_krypton_tb30:r5927" then dcs-random-data-generator crashes (std::bad_alloc or std::length_error)
38
39 // Env parameters (temperatures, pressures, humidity)
40 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"CavernTemperature", 0, 100.});
41 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"temperature_P2_external", 0, 100.});
42 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"CavernAtmosPressure", 800, 1000.});
43 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"SurfaceAtmosPressure", 800, 1000.});
44 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"CavernAtmosPressure2", 800, 1000.});
45 dphints.emplace_back(o2::dcs::test::DataPointHint<double>{"UXC2Humidity", 0, 100.});
46
47 // Run parameters
48 dphints.emplace_back(o2::dcs::test::DataPointHint<int32_t>{"trd_fed_runNo", 254, 255});
49
51}
o2::framework::DataProcessorSpec getDCSRandomDataGeneratorSpec(std::vector< HintType > hints={}, const char *detName="TOF")
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext const &configcontext)
This function hooks up the the workflow specifications into the DPL driver.