Skip to content

Commit

Permalink
[PWGEM/PhotonMeson] Allow for configuration of event cuts in emcalQC …
Browse files Browse the repository at this point in the history
…task (AliceO2Group#9550)

Co-authored-by: Nicolas Strangmann <[email protected]>
  • Loading branch information
nstrangm and Nicolas Strangmann authored Jan 28, 2025
1 parent f5333a1 commit a18cbd6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PWGEM/PhotonMeson/Tasks/emcalQC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,17 @@ struct EmcalQC {
}

fRegistry.fill(HIST("Event/hEMCCollisionCounter"), 1);
if (collision.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {
if (!eventcuts.cfgRequireFT0AND || collision.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {
fRegistry.fill(HIST("Event/hEMCCollisionCounter"), 2);
if (std::abs(collision.posZ()) < eventcuts.cfgZvtxMax) {
fRegistry.fill(HIST("Event/hEMCCollisionCounter"), 3);
if (collision.sel8()) {
if (!eventcuts.cfgRequireSel8 || collision.sel8()) {
fRegistry.fill(HIST("Event/hEMCCollisionCounter"), 4);
if (collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) {
if (!eventcuts.cfgRequireGoodZvtxFT0vsPV || collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) {
fRegistry.fill(HIST("Event/hEMCCollisionCounter"), 5);
if (collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup)) {
if (!eventcuts.cfgRequireNoSameBunchPileup || collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup)) {
fRegistry.fill(HIST("Event/hEMCCollisionCounter"), 6);
if (collision.alias_bit(kTVXinEMC))
if (!eventcuts.cfgRequireEMCReadoutInMB || collision.alias_bit(kTVXinEMC))
fRegistry.fill(HIST("Event/hEMCCollisionCounter"), 7);
}
}
Expand Down

0 comments on commit a18cbd6

Please sign in to comment.