Skip to content

Commit 5f455bc

Browse files
authored
[PWGLF] SpectraTOF: allow FT0 in MC (#16041)
1 parent cc33590 commit 5f455bc

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

PWGLF/Tasks/Nuspex/spectraTOF.cxx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ struct tofSpectra {
265265
LOG(info) << "\tminITSnClusters=" << minITSnClusters.value;
266266
LOG(info) << "\tminTPCNClsFound=" << minTPCNClsFound.value;
267267
LOG(info) << "\tmaxChi2PerClusterITS=" << maxChi2PerClusterITS.value;
268-
LOG(info) << "\tmaxDcaZ=" << maxDcaZ;
268+
LOG(info) << "\tmaxDcaZ=" << maxDcaZ.value;
269269
LOG(info) << "\tmakeTHnSparseChoice=" << makeTHnSparseChoice.value;
270270

271271
customTrackCuts = getGlobalTrackSelectionRun3ITSMatch(itsPattern.value);
@@ -280,7 +280,7 @@ struct tofSpectra {
280280
customTrackCuts.SetMinNClustersTPC(minTPCNClsFound.value);
281281
customTrackCuts.SetMinNCrossedRowsOverFindableClustersTPC(minNCrossedRowsOverFindableClustersTPC.value);
282282
customTrackCuts.SetMaxDcaXYPtDep([](float /*pt*/) { return 10000.f; }); // No DCAxy cut will be used, this is done via the member function of the task
283-
customTrackCuts.SetMaxDcaZ(maxDcaZ);
283+
customTrackCuts.SetMaxDcaZ(maxDcaZ.value);
284284
customTrackCuts.print();
285285
}
286286
// Histograms
@@ -1888,11 +1888,7 @@ struct tofSpectra {
18881888
}
18891889
break;
18901890
case MultCodes::kCentralityFT0C: // Centrality FT0C
1891-
if constexpr (!isMC) {
1892-
return collision.centFT0C();
1893-
} else {
1894-
return 50.f; // Not implemented yet
1895-
}
1891+
return collision.centFT0C();
18961892
break;
18971893
case MultCodes::kCentralityFT0M: // Centrality FT0M
18981894
return collision.centFT0M();
@@ -1903,7 +1899,7 @@ struct tofSpectra {
19031899
}
19041900
}
19051901

1906-
using GenMCCollisions = soa::Join<aod::McCollisions, aod::McCentFT0Ms, aod::MultsExtraMC>;
1902+
using GenMCCollisions = soa::Join<aod::McCollisions, aod::McCentFT0Ms, aod::McCentFT0Cs, aod::MultsExtraMC>;
19071903
float getMultiplicityMC(const GenMCCollisions::iterator& collision) { return getMultiplicity<GenMCCollisions::iterator, true>(collision); }
19081904

19091905
template <std::size_t id>

0 commit comments

Comments
 (0)