Project
Loading...
Searching...
No Matches
tpc-calib-dEdx.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/ConfigParamSpec.h
"
13
#include "
CommonUtils/ConfigurableParam.h
"
14
#include "
TPCWorkflow/CalibdEdxSpec.h
"
15
16
// we need to add workflow options before including Framework/runDataProcessing
17
void
customize
(std::vector<ConfigParamSpec>& workflowOptions)
18
{
19
std::vector<ConfigParamSpec> options{
20
{
"configKeyValues"
, VariantType::String,
""
, {
"Semicolon separated key=value strings (e.g.: 'TPCCalibPedestal.FirstTimeBin=10;...')"
}},
21
{
"configFile"
, VariantType::String,
""
, {
"configuration file for configurable parameters"
}},
22
{
"material-type"
, VariantType::Int, 2, {
"Type for the material budget during track propagation: 0=None, 1=Geo, 2=LUT"
}},
23
};
24
25
std::swap(workflowOptions, options);
26
}
27
#include "
Framework/runDataProcessing.h
"
28
29
using namespace
o2::framework
;
30
31
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& config)
32
{
33
// set up configuration
34
o2::conf::ConfigurableParam::updateFromFile
(config.
options
().
get
<std::string>(
"configFile"
));
35
o2::conf::ConfigurableParam::updateFromString
(config.
options
().
get
<std::string>(
"configKeyValues"
));
36
o2::conf::ConfigurableParam::writeINI
(
"o2tpccalibration_configuration.ini"
);
37
auto
materialType =
static_cast<
o2::base::Propagator::MatCorrType
>
(config.
options
().
get
<
int
>(
"material-type"
));
38
39
using namespace
o2::tpc
;
40
return
WorkflowSpec
{getCalibdEdxSpec(materialType)};
41
}
CalibdEdxSpec.h
Workflow for time based dE/dx calibration.
ConfigParamSpec.h
ConfigurableParam.h
o2::base::PropagatorImpl< float >::MatCorrType
MatCorrType
Definition
Propagator.h:66
o2::conf::ConfigurableParam::writeINI
static void writeINI(std::string const &filename, std::string const &keyOnly="")
Definition
ConfigurableParam.cxx:171
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
Global TPC definitions and constants.
Definition
SimTraits.h:167
runDataProcessing.h
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &config)
This function hooks up the the workflow specifications into the DPL driver.
Definition
tpc-calib-dEdx.cxx:31
customize
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition
tpc-calib-dEdx.cxx:17
Detectors
TPC
workflow
src
tpc-calib-dEdx.cxx
Generated on Tue Feb 25 2025 23:16:31 for Project by
1.9.8