Skip to content

Commit b0f13b6

Browse files
wiechulasawenzel
authored andcommitted
Add missing workflow param, dump MC label
1 parent cf85a4c commit b0f13b6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Detectors/TPC/workflow/src/TPCRefitter.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,11 @@ bool TPCRefitterSpec::processTPCTrack(o2::tpc::TrackTPC tr, o2::MCCompLabel lbl,
637637
<< "dcazRef=" << dcazRef;
638638
}
639639

640+
if (mUseMC) {
641+
(*streamer) << "tpc"
642+
<< "mcLabel=" << lbl;
643+
}
644+
640645
(*streamer) << "tpc"
641646
<< "\n";
642647
}

Detectors/TPC/workflow/src/tpc-refitter-workflow.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ void customize(std::vector<ConfigParamSpec>& workflowOptions)
3838
{
3939
// option allowing to set parameters
4040
std::vector<o2::framework::ConfigParamSpec> options{
41-
{"enable-mc", o2::framework::VariantType::Bool, false, {"enable MC propagation"}},
41+
{"use-mc", o2::framework::VariantType::Bool, false, {"use MC information"}},
42+
{"disable-mc", o2::framework::VariantType::Bool, false, {"disable MC usage"}},
4243
{"enable-cosmics", o2::framework::VariantType::Bool, false, {"enable reading cosmics"}},
4344
{"track-sources", VariantType::String, std::string{GID::ALL}, {"comma-separated list of track sources to use"}},
4445
{"cluster-sources", VariantType::String, std::string{GID::ALL}, {"comma-separated list of cluster sources to use"}},
@@ -61,7 +62,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
6162

6263
// Update the (declared) parameters if changed from the command line
6364
o2::conf::ConfigurableParam::updateFromString(configcontext.options().get<std::string>("configKeyValues"));
64-
auto useMC = configcontext.options().get<bool>("enable-mc");
65+
auto useMC = configcontext.options().get<bool>("use-mc");
6566
auto sclOpt = o2::tpc::CorrectionMapsLoader::parseGlobalOptions(configcontext.options());
6667
const auto enableCosmics = configcontext.options().get<bool>("enable-cosmics");
6768

0 commit comments

Comments
 (0)