23void customize(std::vector<o2::framework::CallbacksPolicy>& policies)
28void customize(std::vector<ConfigParamSpec>& workflowOptions)
30 std::vector<o2::framework::ConfigParamSpec> options{
32 {
"track-types", VariantType::String, std::string{
GlobalTrackID::NONE}, {
"comma-separated list of track sources to read"}},
33 {
"cluster-types", VariantType::String, std::string{
GlobalTrackID::NONE}, {
"comma-separated list of cluster sources to read"}},
34 {
"primary-vertices", VariantType::Bool,
false, {
"read primary vertices"}},
35 {
"secondary-vertices", VariantType::Bool,
false, {
"read secondary vertices"}},
36 {
"cosmic", VariantType::Bool,
false, {
"read cosmic tracks"}},
37 {
"ir-frames-its", VariantType::Bool,
false, {
"read ITS IR frames"}},
38 {
"disable-root-input",
o2::framework::VariantType::Bool,
false, {
"disable reading root files, essentially making this workflow void, but needed for compatibility"}},
39 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
41 std::swap(workflowOptions, options);
51 bool useMC = !cfgc.
options().
get<
bool>(
"disable-mc");
54 bool pv = cfgc.
options().
get<
bool>(
"primary-vertices");
55 bool sv = cfgc.
options().
get<
bool>(
"secondary-vertices");
56 bool cosm = cfgc.
options().
get<
bool>(
"cosmic");
57 bool irits = cfgc.
options().
get<
bool>(
"ir-frames-its");
59 if (!cfgc.
helpOnCommandLine() && srcTrk.none() && srcCl.none() && !(pv || sv || cosm || irits)) {
60 throw std::runtime_error(
"nothing requested to read");
80 return std::move(specs);
WorkflowSpec defineDataProcessing(ConfigContext const &cfgc)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)
Global index for barrel track: provides provenance (detectors combination), index in respective array...
static void updateFromString(std::string const &)
bool helpOnCommandLine() const
ConfigParamRegistry & options() const
T get(const char *key) const
Defining PrimaryVertex explicitly as messageable.
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))