Skip to content

Commit f812e66

Browse files
authored
[PWGLF] Init PID ITS in LFNucleiBATask (#11796)
1 parent 7a5595f commit f812e66

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ struct LFNucleiBATask {
112112
} kinemOptions;
113113

114114
Configurable<bool> isPVContributorCut{"isPVContributorCut", false, "Flag to enable isPVContributor cut."};
115+
Configurable<bool> initITSPID{"initITSPID", false, "Flag to init the ITS PID response"};
115116

116117
struct : ConfigurableGroup {
117118
Configurable<float> nsigmaTPCPr{"nsigmaTPCPr", 3.f, "Value of the Nsigma TPC cut for protons"};
@@ -241,8 +242,11 @@ struct LFNucleiBATask {
241242
}
242243
}
243244

244-
void init(o2::framework::InitContext&)
245+
void init(o2::framework::InitContext& context)
245246
{
247+
if (initITSPID) {
248+
o2::aod::ITSResponse::setParameters(context);
249+
}
246250
if (skimmingOptions.applySkimming) {
247251
zorroSummary.setObject(zorro.getZorroSummary());
248252
}

0 commit comments

Comments
 (0)