diff --git a/PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx b/PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx index f3f57325bac..407b13fcb77 100644 --- a/PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx +++ b/PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx @@ -112,6 +112,7 @@ struct LFNucleiBATask { } kinemOptions; Configurable isPVContributorCut{"isPVContributorCut", false, "Flag to enable isPVContributor cut."}; + Configurable initITSPID{"initITSPID", false, "Flag to init the ITS PID response"}; struct : ConfigurableGroup { Configurable nsigmaTPCPr{"nsigmaTPCPr", 3.f, "Value of the Nsigma TPC cut for protons"}; @@ -241,8 +242,11 @@ struct LFNucleiBATask { } } - void init(o2::framework::InitContext&) + void init(o2::framework::InitContext& context) { + if (initITSPID) { + o2::aod::ITSResponse::setParameters(context); + } if (skimmingOptions.applySkimming) { zorroSummary.setObject(zorro.getZorroSummary()); }