Project
Loading...
Searching...
No Matches
reco-qc.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
19#include <vector>
20
21using namespace o2::framework;
24
25void customize(std::vector<ConfigParamSpec>& workflowOptions)
26{
27 // option allowing to set parameters
28 std::vector<o2::framework::ConfigParamSpec> options{
29 {"disable-root-input", o2::framework::VariantType::Bool, false, {"disable root-files input reader"}},
30 {"info-sources", VariantType::String, std::string{GID::ALL}, {"comma-separated list of sources to use"}},
31 {"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings ..."}}};
32
33 std::swap(workflowOptions, options);
34}
36
38{
39 o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
40
41 GID::mask_t allowedSrc = GID::getSourcesMask("FT0");
42 GID::mask_t src = allowedSrc & GID::getSourcesMask(configcontext.options().get<std::string>("info-sources"));
43
44 WorkflowSpec specs;
45 specs.emplace_back(o2::ft0::getRecoQCworkflow(src));
46
47 o2::globaltracking::InputHelper::addInputSpecs(configcontext, specs, src, src, src, false, src);
50
51 return std::move(specs);
52}
Global index for barrel track: provides provenance (detectors combination), index in respective array...
static void updateFromString(std::string const &)
static mask_t getSourcesMask(const std::string_view srcList)
static constexpr std::string_view ALL
keywork for all sources
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:58
ConfigParamRegistry & options() const
static int addInputSpecs(const o2::framework::ConfigContext &configcontext, o2::framework::WorkflowSpec &specs, GID::mask_t maskClusters, GID::mask_t maskMatches, GID::mask_t maskTracks, bool useMC=true, GID::mask_t maskClustersMC=GID::getSourcesMask(GID::ALL), GID::mask_t maskTracksMC=GID::getSourcesMask(GID::ALL), bool subSpecStrict=false)
static int addInputSpecsSVertex(const o2::framework::ConfigContext &configcontext, o2::framework::WorkflowSpec &specs)
static int addInputSpecsPVertex(const o2::framework::ConfigContext &configcontext, o2::framework::WorkflowSpec &specs, bool mc)
GLenum src
Definition glcorearb.h:1767
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getRecoQCworkflow(GID::mask_t src)
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
Definition reco-qc.cxx:37
void customize(std::vector< ConfigParamSpec > &workflowOptions)
Definition reco-qc.cxx:25