29void customize(std::vector<o2::framework::CompletionPolicy>& policies)
37void customize(std::vector<ConfigParamSpec>& workflowOptions)
39 std::vector<ConfigParamSpec> options{
40 {
"debug", VariantType::Bool,
false, {
"create debug tree"}},
41 {
"configFile", VariantType::String,
"", {
"configuration file for configurable parameters"}},
42 {
"publish-after-tfs", VariantType::Int, 0, {
"number of time frames after which to force publishing the objects"}},
43 {
"useLastExtractedMapAsReference", VariantType::Bool,
false, {
"enabling iterative extraction of the gain map: Using the extracted gain map from the previous iteration to correct the cluster charge"}},
44 {
"polynomialsFile", VariantType::String,
"", {
"file containing the polynomials for the track topology correction"}},
45 {
"disablePolynomialsCCDB", VariantType::Bool,
false, {
"Do not load the polynomials from the CCDB"}},
46 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}}};
48 std::swap(workflowOptions, options);
62 const auto publishAfterTFs = (uint32_t)config.
options().
get<
int>(
"publish-after-tfs");
63 const bool useLastExtractedMapAsReference = config.
options().
get<
bool>(
"useLastExtractedMapAsReference");
64 const std::string polynomialsFile = config.
options().
get<std::string>(
"polynomialsFile");
65 const auto disablePolynomialsCCDB = config.
options().
get<
bool>(
"disablePolynomialsCCDB");
68 if (sclOpt.needTPCScalersWorkflow()) {
Helper class to access load maps from CCDB.
DPL completion policy helper for TPC scetor data.
static void writeINI(std::string const &filename, std::string const &keyOnly="")
static void updateFromFile(std::string const &, std::string const ¶msList="", bool unchangedOnly=false)
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
T get(const char *key) const
static void addGlobalOptions(std::vector< o2::framework::ConfigParamSpec > &options)
static CorrectionMapsLoaderGloOpts parseGlobalOptions(const o2::framework::ConfigParamRegistry &opts)
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
Global TPC definitions and constants.
o2::framework::DataProcessorSpec getTPCCalibPadGainTracksSpec(const bool useLastExtractedMapAsReference)
create a processor spec
o2::framework::DataProcessorSpec getTPCScalerSpec(bool enableIDCs, bool enableMShape)
WorkflowSpec defineDataProcessing(ConfigContext const &config)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< o2::framework::CompletionPolicy > &policies)