31void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
37void customize(std::vector<ConfigParamSpec>& workflowOptions)
40 std::vector<o2::framework::ConfigParamSpec> options{
41 {
"track-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of track sources to use"}},
42 {
"cluster-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of cluster sources to use"}},
43 {
"disable-root-input", VariantType::Bool,
false, {
"disable root-files input reader"}},
44 {
"ignore-sv-check", VariantType::Bool,
false, {
"disable check for SV combinatorics"}},
46 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
49 std::swap(workflowOptions, options);
59 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
60 auto checkSV = !configcontext.
options().
get<
bool>(
"ignore-sv-check");
62 throw std::runtime_error(
"MC cannot be disabled for this workflow");
74 if (sclOpt.requestCTPLumi) {
83 if (sclOpt.needTPCScalersWorkflow() && !configcontext.
options().
get<
bool>(
"disable-root-input")) {
91 return std::move(specs);
Helper class to access load maps from CCDB.
Global index for barrel track: provides provenance (detectors combination), index in respective array...
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
static void addGlobalOptions(std::vector< o2::framework::ConfigParamSpec > &options)
static CorrectionMapsLoaderGloOpts parseGlobalOptions(const o2::framework::ConfigParamRegistry &opts)
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
o2::framework::DataProcessorSpec getTPCScalerSpec(bool enableIDCs, bool enableMShape)
o2::framework::DataProcessorSpec getTrackMCStudySpec(o2::dataformats::GlobalTrackID::mask_t srcTracks, o2::dataformats::GlobalTrackID::mask_t srcClus, const o2::tpc::CorrectionMapsLoaderGloOpts &sclOpts, bool checkSV)
create a processor spec
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))
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)