Project
Loading...
Searching...
No Matches
its-threshold-calib-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
17
18using namespace o2::framework;
19
20void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
21{
22 // option allowing to set parameters
23 std::vector<ConfigParamSpec> options{
24 ConfigParamSpec{"chip-mod-selector", VariantType::Int, 0, {"Integer to be used with chip-mod-base for parallel chip access: if(chipID %% chipModSel != chipModBase), chip id skipped"}},
25 ConfigParamSpec{"chip-mod-base", VariantType::Int, 1, {"Integer to be used with chip-mod-selector chip access: if(chipID %% chipModSel != chipModBase), chip id skipped"}}};
26
27 std::swap(workflowOptions, options);
28}
29
31#include "Framework/Logger.h"
32
34{
35 LOG(info) << "Initializing O2 ITS Threshold Calibration";
36
37 WorkflowSpec wf;
39 inpConf.chipModSel = configcontext.options().get<int>("chip-mod-selector");
40 inpConf.chipModBase = configcontext.options().get<int>("chip-mod-base");
41
42 wf.emplace_back(o2::its::getITSThresholdCalibratorSpec(inpConf));
43
44 return wf;
45}
ConfigParamRegistry & options() const
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getITSThresholdCalibratorSpec(const ITSCalibInpConf &inpConf)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"