Skip to content

Commit dbc204f

Browse files
fgrosaalibuild
authored andcommitted
[PWGHF] Fix event selection with zorro in track index skim creator (AliceO2Group#14408)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 3092668 commit dbc204f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "Common/CCDB/TriggerAliases.h"
3434
#include "Common/Core/RecoDecay.h"
3535
#include "Common/Core/TrackSelectorPID.h"
36+
#include "Common/Core/ZorroSummary.h"
3637
#include "Common/Core/trackUtilities.h"
3738
#include "Common/DataModel/Centrality.h"
3839
#include "Common/DataModel/CollisionAssociationTables.h"
@@ -134,6 +135,7 @@ struct HfTrackIndexSkimCreatorTagSelCollisions {
134135

135136
// QA histos
136137
HistogramRegistry registry{"registry"};
138+
OutputObj<ZorroSummary> zorroSummary{"zorroSummary"};
137139

138140
void init(InitContext const&)
139141
{
@@ -148,9 +150,8 @@ struct HfTrackIndexSkimCreatorTagSelCollisions {
148150
hfEvSel.triggerClass.value = std::distance(aliasLabels, triggerAlias);
149151
}
150152

153+
hfEvSel.init(registry, &zorroSummary); // collision monitoring
151154
if (fillHistograms) {
152-
hfEvSel.addHistograms(registry); // collision monitoring
153-
154155
if (doprocessTrigAndCentFT0ASel || doprocessTrigAndCentFT0CSel || doprocessTrigAndCentFT0MSel || doprocessTrigAndCentFV0ASel) {
155156
const AxisSpec axisCentrality{200, 0., 100., "centrality percentile"};
156157
registry.add("hCentralitySelected", "Centrality percentile of selected events in the centrality interval; centrality percentile;entries", {HistType::kTH1D, {axisCentrality}});

0 commit comments

Comments
 (0)