40void customize(std::vector<ConfigParamSpec>& workflowOptions)
43 std::vector<o2::framework::ConfigParamSpec> options{
44 {
"input-from-upstream", VariantType::Bool,
false, {
"read clusters from the clusterer"}},
45 {
"track-sources", VariantType::String, std::string{
"ITS,ITS-TPC-TRD-TOF,ITS-TPC-TOF,ITS-TPC,ITS-TPC-TRD"}, {
"comma-separated list of track sources to use"}},
46 {
"cluster-sources", VariantType::String, std::string{
"ITS"}, {
"comma-separated list of cluster sources to use"}},
47 {
"disable-root-input", VariantType::Bool,
false, {
"disable root-files input reader"}},
48 {
"disable-mc", VariantType::Bool,
false, {
"disable MC propagation even if available"}},
49 {
"cluster-size-study", VariantType::Bool,
false, {
"Perform the average cluster size study"}},
50 {
"pid-study", VariantType::Bool,
false, {
"Perform the PID study"}},
51 {
"track-study", VariantType::Bool,
false, {
"Perform the track study"}},
52 {
"impact-parameter-study", VariantType::Bool,
false, {
"Perform the impact parameter study"}},
53 {
"anomaly-study", VariantType::Bool,
false, {
"Perform the anomaly study"}},
54 {
"track-extension-study", VariantType::Bool,
false, {
"Perform the track extension study"}},
55 {
"efficiency-study", VariantType::Bool,
false, {
"Perform the efficiency study"}},
56 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
58 std::swap(workflowOptions, options);
69 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
71 std::shared_ptr<o2::steer::MCKinematicsReader> mcKinematicsReader;
73 mcKinematicsReader = std::make_shared<o2::steer::MCKinematicsReader>(
"collisioncontext.root");
77 if (configcontext.
options().
get<
bool>(
"impact-parameter-study")) {
84 if (configcontext.
options().
get<
bool>(
"cluster-size-study")) {
91 if (configcontext.
options().
get<
bool>(
"pid-study")) {
98 if (configcontext.
options().
get<
bool>(
"track-study")) {
102 if (!configcontext.
options().
get<
bool>(
"input-from-upstream")) {
107 if (configcontext.
options().
get<
bool>(
"anomaly-study")) {
110 if (!configcontext.
options().
get<
bool>(
"input-from-upstream")) {
115 if (configcontext.
options().
get<
bool>(
"track-extension-study")) {
117 LOGP(fatal,
"Track Extension Study needs MC!");
125 if (configcontext.
options().
get<
bool>(
"efficiency-study")) {
129 if (!configcontext.
options().
get<
bool>(
"input-from-upstream")) {
135 LOGP(info,
"No study selected, dryrunning");
142 return std::move(specs);
ConfigParamRegistry & options() const
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)