31void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
37void customize(std::vector<ConfigParamSpec>& workflowOptions)
40 std::vector<o2::framework::ConfigParamSpec> options{
44 {
"track-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of track sources to use"}},
45 {
"cluster-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of cluster sources to use"}},
46 {
"disable-root-input", VariantType::Bool,
false, {
"disable root-files input reader"}},
47 {
"enable-M-shape-correction", VariantType::Bool,
false, {
"Enable M-shape distortion correction"}},
48 {
"disable-IDC-scalers", VariantType::Bool,
false, {
"Disable TPC scalers for space-charge distortion fluctuation correction"}},
49 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
52 std::swap(workflowOptions, options);
65 auto useMC = configcontext.
options().
get<
bool>(
"use-mc");
67 const auto enableCosmics = configcontext.
options().
get<
bool>(
"enable-cosmics");
72 allowedSourcesTrc = allowedSourcesTrc |
GID::getSourcesMask(
"ITS-TPC-TRD,ITS-TPC-TOF,ITS-TPC-TRD-TOF");
77 if (sclOpt.requestCTPLumi) {
82 if (sclOpt.lumiType == 2) {
83 const auto enableMShape = configcontext.
options().
get<
bool>(
"enable-M-shape-correction");
84 const auto enableIDCs = !configcontext.
options().
get<
bool>(
"disable-IDC-scalers");
98 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 getTPCRefitterSpec(o2::dataformats::GlobalTrackID::mask_t srcTracks, o2::dataformats::GlobalTrackID::mask_t srcClus, bool useMC, const o2::tpc::CorrectionMapsLoaderGloOpts &sclOpts, bool requestCosmics=false)
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)
This function hooks up the the workflow specifications into the DPL driver.
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)