Skip to content

Commit 99326d0

Browse files
committed
Adds MC QA hists. + selection on particle vertex
1 parent a16fca4 commit 99326d0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGLF/Tasks/Nuspex/piKpRAA.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ struct PiKpRAA {
15111511
//---------------------------
15121512
for (const auto& collision : collisions) {
15131513

1514-
int nChMCTPCAcc{0};
1514+
int mcNchInTPCAcc{0};
15151515
for (const auto& particle : mcParticles) {
15161516

15171517
auto charge{0.};
@@ -1543,7 +1543,7 @@ struct PiKpRAA {
15431543

15441544
const float eta{particle.eta()};
15451545
if (std::abs(eta) < tpcNchAcceptance) {
1546-
nChMCTPCAcc++;
1546+
mcNchInTPCAcc++;
15471547
}
15481548
}
15491549

@@ -1554,7 +1554,7 @@ struct PiKpRAA {
15541554
registry.fill(HIST("EventCounterMC"), 1.5);
15551555
// To calculate the amount of charged-primary MC particles (|eta|<0.5)
15561556
// that belongs to a MC event that was reconstructed at least once
1557-
registry.fill(HIST("NchMC_WithRecColl"), nChMCTPCAcc);
1557+
registry.fill(HIST("NchMC_WithRecColl"), mcNchInTPCAcc);
15581558
}
15591559

15601560
//---------------------------
@@ -1565,7 +1565,7 @@ struct PiKpRAA {
15651565
// To calculate the amount of charged-primary MC particles (|eta|<0.5)
15661566
// that belongs to a MC event that was reconstructed
15671567
// and only from the with the largest number of contributors
1568-
registry.fill(HIST("NchMC_WithOnlyRecColl"), nChMCTPCAcc);
1568+
registry.fill(HIST("NchMC_WithOnlyRecColl"), mcNchInTPCAcc);
15691569
}
15701570

15711571
//---------------------------

0 commit comments

Comments
 (0)