24void customize(std::vector<CallbacksPolicy>& policies)
29void customize(std::vector<CompletionPolicy>& policies)
35void customize(std::vector<ConfigParamSpec>& workflowOptions)
38 std::vector<ConfigParamSpec> options{
39 {
"digits-from-upstream", VariantType::Bool,
false, {
"digits will be provided from upstream, skip digits reader"}},
40 {
"clusters-from-upstream", VariantType::Bool,
false, {
"clusters will be provided from upstream, skip clusterizer"}},
41 {
"disable-root-output", VariantType::Bool,
false, {
"do not write output root files"}},
42 {
"disable-mc", VariantType::Bool,
false, {
"disable MC propagation even if available"}},
43 {
"detectors", VariantType::String,
"TRK", {
"comma-separated list of the detectors to process: TRK, FT3"}},
44 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}}};
45 std::swap(workflowOptions, options);
54 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
55 auto extDigits = configcontext.
options().
get<
bool>(
"digits-from-upstream");
56 auto extClusters = configcontext.
options().
get<
bool>(
"clusters-from-upstream");
57 auto disableRootOutput = configcontext.
options().
get<
bool>(
"disable-root-output");
60 throw std::invalid_argument(
"--detectors takes TRK and/or FT3");
static void writeINI(std::string const &filename, std::string const &keyOnly="")
static void updateFromString(std::string const &)
static mask_t getMask(const std::string_view detList)
detector masks from any non-alpha-num delimiter-separated list (empty if NONE is supplied)
ConfigParamRegistry & options() const
T get(const char *key) const
Defining ITS Vertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::WorkflowSpec getWorkflow(bool useMC, bool upstreamDigits=false, bool upstreamClusters=false, bool disableRootOutput=false, o2::detectors::DetID::mask_t detectors=o2::detectors::DetID::getMask(o2::detectors::DetID::TRK))
The digit readers, clusterers and cluster writers of detectors, TRK and/or FT3.
static CompletionPolicy consumeWhenAllOrdered(const char *name, CompletionPolicy::Matcher matcher)
as consumeWhenAll, but ensures that records are processed with incremental timeSlice (DataHeader::sta...
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< CallbacksPolicy > &policies)