Project
Loading...
Searching...
No Matches
digits-filtering-workflow.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
14#include "Framework/Task.h"
17
18using namespace o2;
19using namespace o2::framework;
20
21void customize(std::vector<ConfigParamSpec>& workflowOptions)
22{
23 workflowOptions.push_back(ConfigParamSpec{"input-digits-data-description", VariantType::String, "DIGITS", {"description string for the input digits data"}});
24 workflowOptions.push_back(ConfigParamSpec{"output-digits-data-description", VariantType::String, "F-DIGITS", {"description string for the output digits data"}});
25 workflowOptions.push_back(ConfigParamSpec{"input-digitrofs-data-description", VariantType::String, "DIGITROFS", {"description string for the input digit rofs data"}});
26 workflowOptions.push_back(ConfigParamSpec{"output-digitrofs-data-description", VariantType::String, "F-DIGITROFS", {"description string for the output digit rofs data"}});
27 workflowOptions.push_back(ConfigParamSpec{"input-digitlabels-data-description", VariantType::String, "DIGITLABELS", {"description string for the input digit labels data (not used if disable-mc is true)"}});
28 workflowOptions.push_back(ConfigParamSpec{"output-digitlabels-data-description", VariantType::String, "F-DIGITLABELS", {"description string for the output digit labels data (not used if disable-mc is true)"}});
29 workflowOptions.push_back(ConfigParamSpec{"disable-mc", VariantType::Bool, false, {"Do not propagate MC info"}});
30 workflowOptions.push_back(ConfigParamSpec{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings"}});
31}
32
34
36{
37 o2::conf::ConfigurableParam::updateFromString(cc.options().get<std::string>("configKeyValues"));
38
39 WorkflowSpec wf;
40
41 wf.emplace_back(o2::mch::getDigitFilteringSpec(
42 not cc.options().get<bool>("disable-mc"),
43 "mch-digits-filtering",
44 cc.options().get<std::string>("input-digits-data-description"),
45 cc.options().get<std::string>("output-digits-data-description"),
46 cc.options().get<std::string>("input-digitrofs-data-description"),
47 cc.options().get<std::string>("output-digitrofs-data-description"),
48 cc.options().get<std::string>("input-digitlabels-data-description"),
49 cc.options().get<std::string>("output-digitlabels-data-description")));
50
51 return wf;
52}
static void updateFromString(std::string const &)
WorkflowSpec defineDataProcessing(const ConfigContext &cc)
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getDigitFilteringSpec(bool useMC, std::string_view specName="mch-digit-filtering", std::string_view inputDigitDataDescription="DIGITS", std::string_view outputDigitDataDescription="F-DIGITS", std::string_view inputDigitRofDataDescription="DIGITROFS", std::string_view outputDigitRofDataDescription="F-DIGITROFS", std::string_view inputDigitLabelDataDescription="DIGITLABELS", std::string_view outputDigitLabelDataDescription="F-DIGITLABELS")
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< o2::mch::ChannelCode > cc