42void customize(std::vector<ConfigParamSpec>& workflowOptions)
45 std::vector<o2::framework::ConfigParamSpec> options{
46 {
"input-from-upstream", VariantType::Bool,
false, {
"read clusters from the clusterer"}},
47 {
"track-sources", VariantType::String, std::string{
"ITS,ITS-TPC-TRD-TOF,ITS-TPC-TOF,ITS-TPC,ITS-TPC-TRD,ZDC"}, {
"comma-separated list of track sources to use"}},
48 {
"cluster-sources", VariantType::String, std::string{
"ITS"}, {
"comma-separated list of cluster sources to use"}},
49 {
"disable-root-input", VariantType::Bool,
false, {
"disable root-files input reader"}},
50 {
"disable-mc", VariantType::Bool,
false, {
"disable MC propagation even if available"}},
51 {
"cluster-size-study", VariantType::Bool,
false, {
"Perform the average cluster size study"}},
52 {
"pid-study", VariantType::Bool,
false, {
"Perform the PID study"}},
53 {
"track-study", VariantType::Bool,
false, {
"Perform the track study"}},
54 {
"impact-parameter-study", VariantType::Bool,
false, {
"Perform the impact parameter study"}},
55 {
"anomaly-study", VariantType::Bool,
false, {
"Perform the anomaly study"}},
56 {
"its-beambkg-study", VariantType::Bool,
false, {
"Perform the ITS beam background study"}},
57 {
"track-extension-study", VariantType::Bool,
false, {
"Perform the track extension study"}},
58 {
"efficiency-study", VariantType::Bool,
false, {
"Perform the efficiency study"}},
59 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings ..."}}};
62 std::swap(workflowOptions, options);
73 auto useMC = !configcontext.
options().
get<
bool>(
"disable-mc");
75 std::shared_ptr<o2::steer::MCKinematicsReader> mcKinematicsReader;
77 mcKinematicsReader = std::make_shared<o2::steer::MCKinematicsReader>(
"collisioncontext.root");
81 if (configcontext.
options().
get<
bool>(
"impact-parameter-study")) {
88 if (configcontext.
options().
get<
bool>(
"cluster-size-study")) {
95 if (configcontext.
options().
get<
bool>(
"pid-study")) {
102 if (configcontext.
options().
get<
bool>(
"track-study")) {
106 if (!configcontext.
options().
get<
bool>(
"input-from-upstream")) {
111 if (configcontext.
options().
get<
bool>(
"anomaly-study")) {
114 if (!configcontext.
options().
get<
bool>(
"input-from-upstream")) {
119 if (configcontext.
options().
get<
bool>(
"its-beambkg-study")) {
125 if (!configcontext.
options().
get<
bool>(
"input-from-upstream")) {
130 if (configcontext.
options().
get<
bool>(
"track-extension-study")) {
132 LOGP(fatal,
"Track Extension Study needs MC!");
140 if (configcontext.
options().
get<
bool>(
"efficiency-study")) {
144 if (!configcontext.
options().
get<
bool>(
"input-from-upstream")) {
150 LOGP(info,
"No study selected, dryrunning");
157 return std::move(specs);
ConfigParamRegistry & options() const
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
void customize(std::vector< o2::framework::CallbacksPolicy > &policies)