Skip to content

Commit e82d63e

Browse files
jokonigjokonig
andauthored
[PWGEM] Add EOI filter to event selection in AssociateMCInfo task (#18550)
Co-authored-by: jokonig <jokonig@cern.ch>
1 parent b533857 commit e82d63e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎PWGEM/PhotonMeson/TableProducer/associateMCinfoPhoton.cxx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ using namespace o2::soa;
5757
using namespace o2::aod::pwgem::photonmeson::utils::mcutil;
5858
using namespace o2::constants::physics;
5959

60-
using MyCollisionsMC = soa::Join<aod::Collisions, aod::McCollisionLabels, aod::EvSels, aod::PMEvSels>;
60+
using MyCollisionsMC = soa::Join<aod::Collisions, aod::McCollisionLabels, aod::EvSels, aod::PMEvSels, aod::EMEoIs>;
6161
using TracksMC = soa::Join<aod::TracksIU, aod::McTrackLabels>;
6262
using FwdTracksMC = soa::Join<aod::FwdTracks, aod::McFwdTrackLabels>;
6363
using MyEMCClusters = soa::Join<aod::MinClusters, aod::EMCClusterMCLabels_001>;
@@ -95,6 +95,7 @@ struct AssociateMCInfoPhoton {
9595
Configurable<float> maxY{"maxY", 0.9f, "max |rapidity| for BinnedGenPts table"};
9696
Configurable<bool> doStoreAllDaughters{"doStoreAllDaughters", false, "flag to enable storing of all photon, pi0, eta, eta' and omega daughters. This will increase the dervied data size!"};
9797
Configurable<bool> useIsSelected{"useIsSelected", true, "flag to enable the usage of isSelected from our EM event selection. Disabling this will increase the derived data size!"};
98+
Configurable<bool> useIsEOI{"useIsEOI", true, "flag to enable the usage of the EOI table"};
9899

99100
HistogramRegistry registry{"EMMCEvent"};
100101

@@ -172,12 +173,16 @@ struct AssociateMCInfoPhoton {
172173
template <soa::is_iterator TCollision>
173174
bool passesCollisionGate(TCollision const& collisionIter)
174175
{
176+
// event selection same as in createEMEventPhoton
175177
if (!collisionIter.has_mcCollision()) {
176178
return false;
177179
}
178180
if (useIsSelected.value && !collisionIter.isSelected()) {
179181
return false;
180182
}
183+
if (useIsEOI.value && !collisionIter.isEoI()) {
184+
return false;
185+
}
181186
return true;
182187
}
183188

0 commit comments

Comments
 (0)