Skip to content

Commit fda164e

Browse files
authored
Update the MC closure test function
1 parent 412212d commit fda164e

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎PWGLF/Tasks/Nuspex/spectraTOF.cxx‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,9 +2212,7 @@ struct tofSpectra {
22122212
if (!mcParticle.isPhysicalPrimary()) { // Is not physical primary
22132213
if (mcParticle.getProcess() == kPDecay) { // Is from decay
22142214
if (includeCentralityMC) {
2215-
if (includeCentralityMC) {
2216-
histos.fill(HIST(hpt_num_str[i]), track.pt(), multiplicity, track.dcaXY());
2217-
}
2215+
histos.fill(HIST(hpt_num_str[i]), track.pt(), multiplicity, track.dcaXY());
22182216
} else {
22192217
histos.fill(HIST(hpt_num_str[i]), track.pt(), multiplicity);
22202218
}
@@ -2749,8 +2747,6 @@ struct tofSpectra {
27492747
}
27502748
histos.fill(HIST("MC/Multiplicity"), getMultiplicityMC(mcCollision));
27512749
const auto& particlesInCollision = mcParticles.sliceByCached(aod::mcparticle::mcCollisionId, mcCollision.globalIndex(), cache);
2752-
bool hasParticleInFT0C = false;
2753-
bool hasParticleInFT0A = false;
27542750
if (evselOptions.cfgINELCut.value == EvSelInelGt0Cut) {
27552751
if (!o2::pwglf::isINELgt0mc(particlesInCollision, pdgDB)) {
27562752
continue;
@@ -2777,9 +2773,6 @@ struct tofSpectra {
27772773
if (mcCollision.isInelGt1()) {
27782774
histos.fill(HIST("MC/GenRecoCollisions"), 4.f);
27792775
}
2780-
if (hasParticleInFT0C && hasParticleInFT0A) {
2781-
histos.fill(HIST("MC/GenRecoCollisions"), 5.f);
2782-
}
27832776
}
27842777
}
27852778
PROCESS_SWITCH(tofSpectra, processMC, "Process MC", false);

0 commit comments

Comments
 (0)