Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ALICE3/TableProducer/alice3-centrality.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ struct ALICE3Centrality {
if (!hCumMultALICE3) {
LOGF(fatal, "ALICE 3 centrality calibration is not available in CCDB, failed!");
}

bool enoughcontribs = true;
int nTracks = 0;
if (collision.numContrib() < 1) {
return;
enoughcontribs = false;
}
for (const auto& track : tracks) {
if (track.eta() < MinEta || track.eta() > MaxEta) {
Expand All @@ -65,10 +65,13 @@ struct ALICE3Centrality {
}
nTracks++;
}

LOG(info) << nevs++ << ") Event " << collision.globalIndex() << " has " << nTracks << " tracks";
histos.fill(HIST("centrality/numberOfTracks"), nTracks);

float centALICE3 = hCumMultALICE3->GetBinContent(nTracks);
if (!enoughcontribs)
centALICE3 = 101; //not enough contribs
cent(centALICE3);
}
};
Expand Down