Project
Loading...
Searching...
No Matches
tof-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
12
// // we need to add workflow options before including Framework/runDataProcessing
13
// void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
14
// {
15
// // option allowing to set parameters
16
// }
17
18
// ------------------------------------------------------------------
19
20
#include "
DCStestWorkflow/DCSRandomDataGeneratorSpec.h
"
21
#include "
Framework/runDataProcessing.h
"
22
23
o2::framework::WorkflowSpec
defineDataProcessing
(
o2::framework::ConfigContext
const
& configcontext)
24
{
25
std::vector<o2::dcs::test::HintType> dphints;
26
// for TOF
27
// for test, we use less DPs that official ones
28
dphints.emplace_back(
o2::dcs::test::DataPointHint<double>
{
"tof_hv_vp_[00..02]"
, 0, 50.});
29
dphints.emplace_back(
o2::dcs::test::DataPointHint<double>
{
"tof_hv_vn_[00..02]"
, 0, 50.});
30
dphints.emplace_back(
o2::dcs::test::DataPointHint<double>
{
"tof_hv_ip_[00..02]"
, 0, 50.});
31
dphints.emplace_back(
o2::dcs::test::DataPointHint<double>
{
"tof_hv_in_[00..02]"
, 0, 50.});
32
dphints.emplace_back(
o2::dcs::test::DataPointHint<int32_t>
{
"TOF_FEACSTATUS_[00..01]"
, 0, 255});
33
dphints.emplace_back(
o2::dcs::test::DataPointHint<int32_t>
{
"TOF_HVSTATUS_SM[00..01]MOD[0..1]"
, 0, 524287});
34
// for TOF, official list
35
//mTOFDataPointHints.emplace_back(DataPointHint<double>{"tof_hv_vp_[00..89]", 0, 50.});
36
//mTOFDataPointHints.emplace_back(DataPointHint<double>{"tof_hv_vn_[00..89]", 0, 50.});
37
//mTOFDataPointHints.emplace_back(DataPointHint<double>{"tof_hv_ip_[00..89]", 0, 50.});
38
//mTOFDataPointHints.emplace_back(DataPointHint<double>{"tof_hv_in_[00..89]", 0, 50.});
39
//mTOFDataPointHints.emplace_back(DataPointHint<int32_t>{"TOF_FEACSTATUS_[00..71]", 0, 255});
40
//mTOFDataPointHints.emplace_back(DataPointHint<int32_t>{"TOF_HVSTATUS_SM[00..17]MOD[0..4]", 0, 524287});
41
o2::framework::WorkflowSpec
specs;
42
specs.emplace_back(
o2::dcs::test::getDCSRandomDataGeneratorSpec
(dphints,
"TOF"
));
43
return
specs;
44
}
DCSRandomDataGeneratorSpec.h
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::dcs::test::getDCSRandomDataGeneratorSpec
o2::framework::DataProcessorSpec getDCSRandomDataGeneratorSpec(std::vector< HintType > hints={}, const char *detName="TOF")
Definition
DCSRandomDataGeneratorSpec.cxx:163
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
runDataProcessing.h
o2::dcs::test::DataPointHint
Definition
DCSDataPointHint.h:26
defineDataProcessing
o2::framework::WorkflowSpec defineDataProcessing(o2::framework::ConfigContext const &configcontext)
Definition
tof-dcs-sim-workflow.cxx:23
Detectors
TOF
calibration
testWorkflow
tof-dcs-sim-workflow.cxx
Generated on Tue Feb 25 2025 23:16:26 for Project by
1.9.8