25void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
30void customize(std::vector<o2::framework::CompletionPolicy>& policies)
37void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
40 std::vector<o2::framework::ConfigParamSpec> options{
50 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}},
55 std::swap(workflowOptions, options);
66 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
67 auto beamPosOVerride = configcontext.
options().
get<
bool>(
"ccdb-meanvertex-seed");
68 auto useCAtracker = configcontext.
options().
get<
bool>(
"trackerCA");
69 auto trmode = configcontext.
options().
get<std::string>(
"tracking-mode");
70 auto selTrig = configcontext.
options().
get<std::string>(
"select-with-triggers");
71 auto useGpuWF = configcontext.
options().
get<
bool>(
"use-gpu-workflow");
72 auto gpuDevice =
static_cast<o2::gpu::GPUDataTypes::DeviceType
>(configcontext.
options().
get<
int>(
"gpu-device"));
73 auto extDigits = configcontext.
options().
get<
bool>(
"digits-from-upstream");
74 auto extClusters = configcontext.
options().
get<
bool>(
"clusters-from-upstream");
75 auto disableRootOutput = configcontext.
options().
get<
bool>(
"disable-root-output");
76 auto useGeom = configcontext.
options().
get<
bool>(
"use-full-geometry");
77 if (configcontext.
options().
get<
bool>(
"disable-tracking")) {
80 std::transform(trmode.begin(), trmode.end(), trmode.begin(), [](
unsigned char c) { return std::tolower(c); });
84 if (!selTrig.empty() && selTrig !=
"none") {
85 if (selTrig ==
"phys") {
87 }
else if (selTrig ==
"trd") {
90 LOG(fatal) <<
"Unknown trigger type requested for events prescaling: " << selTrig;
111 return std::move(wf);
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 useCAtracker, const std::string &trmode, const bool overrideBeamPosition=false, bool upstreamDigits=false, bool upstreamClusters=false, bool disableRootOutput=false, bool useGeom=false, int useTrig=0, bool useGPUWF=false, o2::gpu::GPUDataTypes::DeviceType dType=o2::gpu::GPUDataTypes::DeviceType::CPU)
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))
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"