Skip to content

Commit

Permalink
Add occupancy selections (+ extra event selections) in MC
Browse files Browse the repository at this point in the history
  • Loading branch information
romainschotter committed Jun 13, 2024
1 parent 96159ed commit 1a6d3e9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,39 @@ struct derivedlambdakzeroanalysis {
return;
}
histos.fill(HIST("hEventSelection"), 4 /* Not at TF border */);

Check failure on line 1149 in PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

View workflow job for this annotation

GitHub Actions / PR formatting / whitespace

Trailing spaces

Remove the trailing spaces at the end of the line.
if (requireIsVertexITSTPC && !collision.selection_bit(o2::aod::evsel::kIsVertexITSTPC)) {
return;
}
histos.fill(HIST("hEventSelection"), 5 /* Contains at least one ITS-TPC track */);

if (requireIsGoodZvtxFT0VsPV && !collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) {
return;
}
histos.fill(HIST("hEventSelection"), 6 /* PV position consistency check */);

if (requireIsVertexTOFmatched && !collision.selection_bit(o2::aod::evsel::kIsVertexTOFmatched)) {
return;
}
histos.fill(HIST("hEventSelection"), 7 /* PV with at least one contributor matched with TOF */);

if (requireIsVertexTRDmatched && !collision.selection_bit(o2::aod::evsel::kIsVertexTRDmatched)) {
return;
}
histos.fill(HIST("hEventSelection"), 8 /* PV with at least one contributor matched with TRD */);

if (rejectSameBunchPileup && !collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup)) {
return;
}
histos.fill(HIST("hEventSelection"), 9 /* Not at same bunch pile-up */);

if (minOccupancy > 0 && collision.trackOccupancyInTimeRange() < minOccupancy) {
return;
}
histos.fill(HIST("hEventSelection"), 10 /* Below min occupancy */);
if (maxOccupancy > 0 && collision.trackOccupancyInTimeRange() > maxOccupancy) {
return;
}

float centrality = collision.centFT0C();
if (qaCentrality) {
Expand Down

0 comments on commit 1a6d3e9

Please sign in to comment.