Project
Loading...
Searching...
No Matches
tpc-calib-laser-tracks.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
20// we need to add workflow options before including Framework/runDataProcessing
21void customize(std::vector<ConfigParamSpec>& workflowOptions)
22{
23 std::vector<ConfigParamSpec> options{
24 {"input-spec", VariantType::String, "input:TPC/TRACKS", {"selection string input specs"}},
25 {"use-filtered-tracks", VariantType::Bool, false, {"use prefiltered laser tracks as input"}},
26 {"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}},
27 {"configFile", VariantType::String, "", {"configuration file for configurable parameters"}},
28 };
29
30 std::swap(workflowOptions, options);
31}
32
33// ------------------------------------------------------------------
34
36
38{
39 // set up configuration
40 o2::conf::ConfigurableParam::updateFromFile(config.options().get<std::string>("configFile"));
41 o2::conf::ConfigurableParam::updateFromString(config.options().get<std::string>("configKeyValues"));
42
43 WorkflowSpec specs;
44 std::string inputSpec = config.options().get<std::string>("input-spec");
45 if (config.options().get<bool>("use-filtered-tracks")) {
46 inputSpec = "input:TPC/LASERTRACKS";
47 }
48 specs.emplace_back(o2::tpc::getCalibLaserTracks(inputSpec));
49 return specs;
50}
Device to run tpc laser track calibration.
static void updateFromFile(std::string const &, std::string const &paramsList="", bool unchangedOnly=false)
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
DataProcessorSpec getCalibLaserTracks(const std::string inputSpec)
WorkflowSpec defineDataProcessing(ConfigContext const &config)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< ConfigParamSpec > &workflowOptions)