Skip to content

Commit 2c8b343

Browse files
committed
Avoid init the RCT checker when not needed
1 parent 9ffcc93 commit 2c8b343

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

PWGHF/Utils/utilsEvSelHf.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
207207
void init(o2::framework::HistogramRegistry& registry)
208208
{
209209
// we initialise the RCT checker
210-
rctChecker.init(rctLabel.value, rctCheckZDC.value, rctTreatLimitedAcceptanceAsBad.value);
210+
if (requireGoodRct) {
211+
rctChecker.init(rctLabel.value, rctCheckZDC.value, rctTreatLimitedAcceptanceAsBad.value);
212+
}
211213

212214
// we initialise the summary object
213215
if (softwareTrigger.value != "") {
@@ -439,7 +441,9 @@ struct HfEventSelectionMc {
439441
configureFromDevice(device);
440442

441443
// we initialise the RCT checker
442-
rctChecker.init(rctLabel, rctCheckZDC, rctTreatLimitedAcceptanceAsBad);
444+
if (requireGoodRct) {
445+
rctChecker.init(rctLabel, rctCheckZDC, rctTreatLimitedAcceptanceAsBad);
446+
}
443447

444448
// we initialise histograms
445449
addHistograms(registry);

0 commit comments

Comments
 (0)