25void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
29void customize(std::vector<ConfigParamSpec>& workflowOptions)
31 std::vector<o2::framework::ConfigParamSpec> options{
33 {
"track-sources", VariantType::String, std::string{
GID::ALL}, {
"comma-separated list of track sources to use"}},
34 {
"cluster-sources", VariantType::String,
"ITS", {
"comma-separated list of cluster sources to use"}},
35 {
"with-its", VariantType::Bool,
false, {
"ITS alignment mode"}},
36 {
"without-pv", VariantType::Bool,
false, {
"Do not use in track refit the PV as an additional constraint"}},
37 {
"output", VariantType::String,
"", {
"output steering"}},
38 {
"disable-root-input", VariantType::Bool,
false, {
"disable root-files input reader"}},
39 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
41 std::swap(workflowOptions, options);
52 const auto useMC = !cfg.
options().
get<
bool>(
"disable-mc");
53 const auto withPV = !cfg.
options().
get<
bool>(
"without-pv");
54 const auto withITS = cfg.
options().
get<
bool>(
"with-its");
58 if (!
output[OutputOpt::MilleRes]) {
60 if (withPV && !useMC) {
70 return std::move(specs);
WorkflowSpec defineDataProcessing(ConfigContext const &cfg)
This function hooks up the the workflow specifications into the DPL driver.
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
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getNoInpDummyOutSpec(int nloop=-1)
create a processor spec
o2::framework::DataProcessorSpec getAlignmentSpec(o2::dataformats::GlobalTrackID::mask_t srcTracks, o2::dataformats::GlobalTrackID::mask_t srcClus, bool useMC, bool withPV, bool withITS3, OutputEnum out)
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))