Skip to content

Commit 1ee2533

Browse files
committed
fix cppcheck error
1 parent efb47f6 commit 1ee2533

1 file changed

Lines changed: 4 additions & 21 deletions

File tree

‎PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx‎

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -662,12 +662,11 @@ struct DndetaMFTPbPb {
662662
registryMC.add({"Tracks/hEtaVsNchGenRecEvt", "; #eta; mult gen w/ Rec evt", {HistType::kTH2F, {etaAxis, multFT0cAxis}}});
663663
}
664664
if (doprocessMcReassocDCA) {
665-
registryMC.add({"Events/Centrality/EvtGenRecReassoc", ";status;centrality", {HistType::kTHnSparseF, {{4, 0.5, 4.5}, centralityAxis}}});
665+
registryMC.add({"Events/Centrality/EvtGenRecReassoc", ";status;centrality", {HistType::kTHnSparseF, {{3, 0.5, 3.5}, centralityAxis}}});
666666
auto heff = registryMC.get<THnSparse>(HIST("Events/Centrality/EvtGenRecReassoc"));
667-
heff->GetAxis(0)->SetBinLabel(1, "All generated");
668-
heff->GetAxis(0)->SetBinLabel(2, "All reconstructed");
669-
heff->GetAxis(0)->SetBinLabel(3, "Selected reconstructed");
670-
heff->GetAxis(0)->SetBinLabel(4, "Remove split vertices");
667+
heff->GetAxis(0)->SetBinLabel(1, "All reconstructed");
668+
heff->GetAxis(0)->SetBinLabel(2, "Selected reconstructed");
669+
heff->GetAxis(0)->SetBinLabel(3, "Remove split vertices");
671670

672671
registryMC.add("Events/hCentBest", "; centrality", HistType::kTH1F, {centralityAxis});
673672
registryMC.add("Events/hGenMult", "Sel rec evt. vs generated mult; mult", HistType::kTH1F, {multAxis});
@@ -2677,24 +2676,8 @@ struct DndetaMFTPbPb {
26772676
MftBestTracksLabeled const& besttracks,
26782677
MftTracksLabeled const& /*tracks*/)
26792678
{
2680-
float cGen = -1;
2681-
float crecMin = 105.f;
2682-
for (const auto& collision : collisions) {
2683-
if (isGoodEvent<false>(collision)) {
2684-
float c = getRecoCent(collision);
2685-
if (c < crecMin) {
2686-
crecMin = c;
2687-
}
2688-
}
2689-
}
2690-
if (cGen < 0) {
2691-
cGen = crecMin;
2692-
}
2693-
26942679
createMCIds(mcCollisions, collisions, particles);
26952680

2696-
registryMC.fill(HIST("Events/Centrality/EvtGenRecReassoc"), 1., cGen);
2697-
26982681
int nNoMC{0};
26992682
for (const auto& collision : collisions) {
27002683
auto crec = getRecoCent(collision);

0 commit comments

Comments
 (0)