Skip to content

Commit

Permalink
PWGEM/PhotonMeson: improve event mixing
Browse files Browse the repository at this point in the history
  • Loading branch information
dsekihat committed Jan 22, 2024
1 parent 1033829 commit 8ca142d
Show file tree
Hide file tree
Showing 5 changed files with 308 additions and 258 deletions.
5 changes: 5 additions & 0 deletions PWGEM/PhotonMeson/TableProducer/skimmerDalitzEE.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ struct skimmerDalitzEE {
"fRegistry",
{
{"hNpairs", "hNpairs;pair type;Number of Pairs", {HistType::kTH1F, {{3, -1.5f, +1.5f}}}},
{"hNele", "hNele;centrality FT0C;Number of electrons", {HistType::kTH2F, {{110, 0, 110}, {101, -0.5f, +100.5f}}}},
{"hNpos", "hNpos;centrality FT0C;Number of positrons", {HistType::kTH2F, {{110, 0, 110}, {101, -0.5f, +100.5f}}}},
},
};

Expand Down Expand Up @@ -133,6 +135,9 @@ struct skimmerDalitzEE {
for (auto& collision : collisions) {
auto posTracks_per_coll = posTracks->sliceByCached(o2::aod::emprimaryelectron::emreducedeventId, collision.globalIndex(), cache);
auto negTracks_per_coll = negTracks->sliceByCached(o2::aod::emprimaryelectron::emreducedeventId, collision.globalIndex(), cache);
fRegistry.fill(HIST("hNpos"), collision.centFT0C(), posTracks_per_coll.size());
fRegistry.fill(HIST("hNele"), collision.centFT0C(), negTracks_per_coll.size());
// LOGF(info, "collision.centFT0C() = %f, posTracks_per_coll.size() = %d, negTracks_per_coll.size() = %d", collision.centFT0C() , posTracks_per_coll.size(), negTracks_per_coll.size());

int npair_uls = 0, npair_lspp = 0, npair_lsmm = 0;
npair_uls = fillPairTable<EM_EEPairType::kULS, false>(collision, posTracks_per_coll, negTracks_per_coll); // ULS
Expand Down
2 changes: 1 addition & 1 deletion PWGEM/PhotonMeson/Tasks/TaggingPi0.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ using namespace o2::aod::photonpair;
using MyCollisions = soa::Join<aod::EMReducedEvents, aod::EMReducedEventsMult, aod::EMReducedEventsCent, aod::EMReducedEventsNgPCM, aod::EMReducedEventsNgPHOS, aod::EMReducedEventsNgEMC>;
using MyCollision = MyCollisions::iterator;

using MyV0Photons = soa::Join<aod::V0PhotonsKF, aod::V0Recalculation, aod::V0KFEMReducedEventIds>;
using MyV0Photons = soa::Join<aod::V0PhotonsKF, aod::V0KFEMReducedEventIds>;
using MyV0Photon = MyV0Photons::iterator;

using MyDalitzEEs = soa::Join<aod::DalitzEEs, aod::DalitzEEEMReducedEventIds>;
Expand Down
2 changes: 1 addition & 1 deletion PWGEM/PhotonMeson/Tasks/TaggingPi0MC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ using namespace o2::aod::photonpair;
using MyCollisions = soa::Join<aod::EMReducedEvents, aod::EMReducedEventsMult, aod::EMReducedEventsCent, aod::EMReducedMCEventLabels>;
using MyCollision = MyCollisions::iterator;

using MyV0Photons = soa::Join<aod::V0PhotonsKF, aod::V0Recalculation, aod::V0KFEMReducedEventIds>;
using MyV0Photons = soa::Join<aod::V0PhotonsKF, aod::V0KFEMReducedEventIds>;
using MyV0Photon = MyV0Photons::iterator;

using MyDalitzEEs = soa::Join<aod::DalitzEEs, aod::DalitzEEEMReducedEventIds>;
Expand Down
Loading

0 comments on commit 8ca142d

Please sign in to comment.