20void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
25void customize(std::vector<o2::framework::CompletionPolicy>& policies)
32void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
35 std::vector<o2::framework::ConfigParamSpec> options{
43 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}},
44 {
"nThreads", VariantType::Int, 1, {
"Number of threads"}},
48 std::swap(workflowOptions, options);
60 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
61 auto extDigits = configcontext.
options().
get<
bool>(
"digits-from-upstream");
62 auto extClusters = configcontext.
options().
get<
bool>(
"clusters-from-upstream");
63 auto disableRootOutput = configcontext.
options().
get<
bool>(
"disable-root-output");
64 auto runAssessment = configcontext.
options().
get<
bool>(
"run-assessment");
65 auto processGen = !configcontext.
options().
get<
bool>(
"disable-process-gen");
66 auto runTracking = !configcontext.
options().
get<
bool>(
"disable-tracking");
67 auto nThreads = configcontext.
options().
get<
int>(
"nThreads");
68 auto runTracks2Records = configcontext.
options().
get<
bool>(
"run-tracks2records");
69 auto useGeom = configcontext.
options().
get<
bool>(
"use-full-geometry");
static void writeINI(std::string const &filename, std::string const &keyOnly="")
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
T get(const char *key) const
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
framework::WorkflowSpec getWorkflow(bool useMC, bool useGeom, bool upstreamDigits, bool upstreamClusters, bool disableRootOutput, bool runAssessment, bool processGen, bool runTracking, int nThreads, bool runTracks2Records)
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...
static void addNewTimeSliceCallback(std::vector< o2::framework::CallbacksPolicy > &policies)
static void addConfigOption(std::vector< o2::framework::ConfigParamSpec > &opts, const std::string &defOpt=std::string(o2::base::NameConf::DIGITIZATIONCONFIGFILE))