Skip to content

Commit 408545e

Browse files
authored
[PWGEM/PhotonMeson] add cfgRequireTVXinEMC (#12688)
1 parent 801df54 commit 408545e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PWGEM/Dilepton/TableProducer/eventSelection.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ struct EMEventSelection {
6161
Configurable<float> cfgFT0COccupancyMax{"cfgFT0COccupancyMax", 1000000000, "max. occupancy"};
6262
Configurable<bool> cfgRequireNoCollInTimeRangeStandard{"cfgRequireNoCollInTimeRangeStandard", false, "require no collision in time range standard"};
6363

64+
Configurable<bool> cfgRequireTVXinEMC{"cfgRequireTVXinEMC", false, "require kTVXinEMC (only for EMC analyses)"};
65+
6466
o2::aod::rctsel::RCTFlagsChecker rctChecker;
6567

6668
void init(InitContext&)
@@ -113,6 +115,10 @@ struct EMEventSelection {
113115
return false;
114116
}
115117

118+
if (cfgRequireTVXinEMC && !collision.alias_bit(triggerAliases::kTVXinEMC)) {
119+
return false;
120+
}
121+
116122
if constexpr (std::is_same_v<std::decay_t<TCollision>, MyCollisions_Cent::iterator>) {
117123
const float centralities[3] = {collision.centFT0M(), collision.centFT0A(), collision.centFT0C()};
118124
if (centralities[cfgCentEstimator] < cfgCentMin || cfgCentMax < centralities[cfgCentEstimator]) {

0 commit comments

Comments
 (0)