Skip to content

Commit d8e488f

Browse files
authored
[PWGLF,PWGMM] Add Collision posZ configurable (#15670)
1 parent ff905f9 commit d8e488f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

PWGMM/UE/Tasks/uecharged.cxx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/// \file uecharged.cxx
1414
/// \brief Underlying event analysis task
1515
/// \since November 2021
16-
/// \last update: March 2026
16+
/// \last update: April 2026
1717

1818
#include "PWGLF/Utils/inelGt.h"
1919

@@ -61,6 +61,7 @@ struct ueCharged {
6161
Configurable<bool> sel8{"event_sel8", true, "Apply the sel8 event selection"};
6262
Configurable<bool> removeITSROFBorder{"event_removeITSROFBorder", false, "Remove ITS Read-Out Frame border and only apply kIsTriggerTVX & kNoTimeFrameBorder (recommended for MC)"};
6363
Configurable<int> cfgINELCut{"event_cfgINELCut", 0, "INEL event selection: 0 no sel, 1 INEL>0, 2 INEL>1"};
64+
Configurable<float> CollPosZ{"event_CollPosZ", 10.f, "Cut on the z component of the vertex position"};
6465
Configurable<bool> analyzeEvandTracksel{"analyzeEvandTracksel", true, "Analyze the event and track selection"};
6566

6667
// Track selection configurables
@@ -418,7 +419,7 @@ struct ueCharged {
418419
ue.fill(HIST("hCounter"), 4);
419420

420421
ue.fill(HIST("hStat"), collision.size());
421-
if ((std::abs(collision.posZ()) > 10.f)) {
422+
if ((std::abs(collision.posZ()) > CollPosZ)) {
422423
return false;
423424
}
424425

@@ -464,7 +465,7 @@ struct ueCharged {
464465
ue.fill(HIST("hCounter"), 4);
465466

466467
ue.fill(HIST("hStat"), collision.size());
467-
if ((std::abs(collision.posZ()) > 10.f)) {
468+
if ((std::abs(collision.posZ()) > CollPosZ)) {
468469
return false;
469470
}
470471

@@ -665,7 +666,7 @@ struct ueCharged {
665666
if (cfgINELCut == 2 && !o2::pwglf::isINELgt1mc(GenParticles, pdg)) {
666667
return;
667668
}
668-
if (std::abs(mcCollision.posZ()) > 10.f) {
669+
if (std::abs(mcCollision.posZ()) > CollPosZ) {
669670
return;
670671
}
671672
ue.fill(HIST("hStat"), mcCollision.size());
@@ -1010,7 +1011,7 @@ struct ueCharged {
10101011
if (cfgINELCut == 2 && !o2::pwglf::isINELgt1mc(GenParticles, pdg)) {
10111012
return;
10121013
}
1013-
if (std::abs(mcCollision.posZ()) > 10.f) {
1014+
if (std::abs(mcCollision.posZ()) > CollPosZ) {
10141015
return;
10151016
}
10161017

@@ -1147,7 +1148,7 @@ struct ueCharged {
11471148
ue.fill(HIST("hVtxFT0VsVtxCol_afterGoodZvtx"), foundBC.ft0().posZ(), collision.posZ());
11481149
}
11491150

1150-
if (std::abs(collision.posZ()) > 10.f) {
1151+
if (std::abs(collision.posZ()) > CollPosZ) {
11511152
return;
11521153
}
11531154

0 commit comments

Comments
 (0)