Skip to content

Commit a30ebcc

Browse files
nstrangmNicolas Strangmann
andauthored
[PWGEM/PhotonMeson] Fix Cluster-Collision assignment in emcQC task (#8942)
Co-authored-by: Nicolas Strangmann <nicolas.strangmann@.cern.ch>
1 parent 2791ff2 commit a30ebcc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

PWGEM/PhotonMeson/Tasks/emcalQC.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ struct emcalQC {
152152
o2::aod::pwgem::photonmeson::utils::clusterhistogram::addClusterHistograms(&fRegistry, cfgDo2DQA);
153153
}
154154

155-
Preslice<aod::SkimEMCClusters> perCollision = aod::skimmedcluster::collisionId;
155+
Preslice<MyEMCClusters> perCollision = aod::emccluster::emeventId;
156156

157-
void processQC(MyCollisions const& collisions, aod::SkimEMCClusters const& clusters)
157+
void processQC(MyCollisions const& collisions, MyEMCClusters const& clusters)
158158
{
159159
for (auto& collision : collisions) {
160160

PWGEM/PhotonMeson/Utils/ClusterHistograms.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ void addClusterHistograms(HistogramRegistry* fRegistry, bool do2DQA)
5555
fRegistry->addClone("Cluster/before/", "Cluster/after/");
5656
}
5757

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

0 commit comments

Comments
 (0)