Skip to content

Commit

Permalink
[PWGEM/PhotonMeson] Fix Cluster-Collision assignment in emcQC task (#…
Browse files Browse the repository at this point in the history
…8942)

Co-authored-by: Nicolas Strangmann <nicolas.strangmann@.cern.ch>
  • Loading branch information
nstrangm and Nicolas Strangmann authored Dec 11, 2024
1 parent 2791ff2 commit a30ebcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PWGEM/PhotonMeson/Tasks/emcalQC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ struct emcalQC {
o2::aod::pwgem::photonmeson::utils::clusterhistogram::addClusterHistograms(&fRegistry, cfgDo2DQA);
}

Preslice<aod::SkimEMCClusters> perCollision = aod::skimmedcluster::collisionId;
Preslice<MyEMCClusters> perCollision = aod::emccluster::emeventId;

void processQC(MyCollisions const& collisions, aod::SkimEMCClusters const& clusters)
void processQC(MyCollisions const& collisions, MyEMCClusters const& clusters)
{
for (auto& collision : collisions) {

Expand Down
4 changes: 2 additions & 2 deletions PWGEM/PhotonMeson/Utils/ClusterHistograms.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ void addClusterHistograms(HistogramRegistry* fRegistry, bool do2DQA)
fRegistry->addClone("Cluster/before/", "Cluster/after/");
}

template <const int cls_id>
void fillClusterHistograms(HistogramRegistry* fRegistry, SkimEMCCluster cluster, bool do2DQA, float weight = 1.f)
template <const int cls_id, typename TCluster>
void fillClusterHistograms(HistogramRegistry* fRegistry, TCluster cluster, bool do2DQA, float weight = 1.f)
{
static constexpr std::string_view cluster_types[2] = {"before/", "after/"};
fRegistry->fill(HIST("Cluster/") + HIST(cluster_types[cls_id]) + HIST("hE"), cluster.e(), weight);
Expand Down

0 comments on commit a30ebcc

Please sign in to comment.