26void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
31void customize(std::vector<ConfigParamSpec>& workflowOptions)
34 std::vector<o2::framework::ConfigParamSpec> options{
41 {
"info-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of sources to use"}},
42 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}},
46 std::swap(workflowOptions, options);
54 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
55 bool enableSV = !configcontext.
options().
get<
bool>(
"disable-secondary-vertices");
56 bool enableST = !configcontext.
options().
get<
bool>(
"disable-strangeness-tracker");
57 bool ctpcfgperrun = !configcontext.
options().
get<
bool>(
"ctpconfig-run-independent");
58 bool enableFITextra = configcontext.
options().
get<
bool>(
"enable-FIT-extra");
60 GID::mask_t allowedSrc =
GID::getSourcesMask(
"ITS,MFT,MCH,MID,MCH-MID,TPC,TRD,ITS-TPC,TPC-TOF,TPC-TRD,ITS-TPC-TOF,ITS-TPC-TRD,TPC-TRD-TOF,ITS-TPC-TRD-TOF,MFT-MCH,FT0,FV0,FDD,ZDC,EMC,CTP,PHS,CPV,HMP");
83 if (configcontext.
options().
get<
bool>(
"combine-source-devices")) {
84 std::vector<DataProcessorSpec> unmerged;
85 specs.push_back(
specCombiner(
"AOD-input-reader", inputspecs, unmerged));
86 for (
auto& is : unmerged) {
90 for (
auto& s : inputspecs) {
98 return std::move(specs);
Global index for barrel track: provides provenance (detectors combination), index in respective array...
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
static void updateFromString(std::string const &)
Static class with identifiers, bitmasks and names for ALICE detectors.
ConfigParamRegistry & options() const
T get(const char *key) const
framework::DataProcessorSpec getAODProducerWorkflowSpec(GID::mask_t src, bool enableSV, bool enableST, bool useMC, bool CTPConfigPerRun, bool enableFITextra)
create a processor spec
Defining PrimaryVertex explicitly as messageable.
o2::framework::DataProcessorSpec specCombiner(std::string const &name, std::vector< DataProcessorSpec > const &speccollection, std::vector< DataProcessorSpec > &remaining)
std::vector< DataProcessorSpec > WorkflowSpec
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))