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
12
#include "
Framework/DataProcessorSpec.h
"
13
#include "
TPCWorkflow/CalibLaserTracksSpec.h
"
14
#include "
Framework/CompletionPolicy.h
"
15
#include "
Framework/CompletionPolicyHelpers.h
"
16
#include "
CommonUtils/ConfigurableParam.h
"
17
18
using namespace
o2::framework
;
19
20
// we need to add workflow options before including Framework/runDataProcessing
21
void
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
35
#include "
Framework/runDataProcessing.h
"
36
37
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& config)
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
}
CalibLaserTracksSpec.h
Device to run tpc laser track calibration.
CompletionPolicyHelpers.h
CompletionPolicy.h
ConfigurableParam.h
DataProcessorSpec.h
o2::conf::ConfigurableParam::updateFromFile
static void updateFromFile(std::string const &, std::string const ¶msList="", bool unchangedOnly=false)
Definition
ConfigurableParam.cxx:367
o2::conf::ConfigurableParam::updateFromString
static void updateFromString(std::string const &)
Definition
ConfigurableParam.cxx:433
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::framework::ConfigContext::options
ConfigParamRegistry & options() const
Definition
ConfigContext.h:28
o2::framework::ConfigParamRegistry::get
T get(const char *key) const
Definition
ConfigParamRegistry.h:98
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2::tpc::getCalibLaserTracks
DataProcessorSpec getCalibLaserTracks(const std::string inputSpec)
Definition
CalibLaserTracksSpec.h:163
runDataProcessing.h
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &config)
This function hooks up the the workflow specifications into the DPL driver.
Definition
tpc-calib-laser-tracks.cxx:37
customize
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition
tpc-calib-laser-tracks.cxx:21
Detectors
TPC
workflow
src
tpc-calib-laser-tracks.cxx
Generated on Tue Feb 25 2025 23:16:31 for Project by
1.9.8