Skip to content

Commit fa364e1

Browse files
author
Stefanie Mrozinski
committed
Bug fix: fix double filling of hSparse_DEtaDPhi_qinv_kT in MC pairing
1 parent 32c9d4d commit fa364e1

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

PWGEM/PhotonMeson/Tasks/photonhbt.cxx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ struct Photonhbt {
302302
Configurable<float> cfgMaxAsymmetry{"cfgMaxAsymmetry", -1.f, "max |p_{T, 1} - p_{T, 2}|/(p_{T, 1} + p_{T, 2}) asymmetry cut"};
303303
} ggpaircuts;
304304

305-
305+
306306

307307
EMPhotonEventCut fEMEventCut;
308308
struct : ConfigurableGroup {
@@ -984,14 +984,6 @@ struct Photonhbt {
984984
} else {
985985
fRegistryPairMC.fill(HIST(mcDir) + HIST("CF_1D"), hbtanalysis.cfgUseLCMS ? qabs_lcms : qinv, kt, weight);
986986
}
987-
float deta_pair = v1.Eta() - v2.Eta();
988-
float dphi_pair = v1.Phi() - v2.Phi();
989-
dphi_pair = RecoDecay::constrainAngle(dphi_pair, -o2::constants::math::PI);
990-
if constexpr (ev_id == 0) {
991-
fRegistry.fill(HIST("Pair/same/hSparse_DEtaDPhi_qinv_kT"), deta_pair, dphi_pair, qinv, kt, weight);
992-
} else {
993-
fRegistry.fill(HIST("Pair/mix/hSparse_DEtaDPhi_qinv_kT"), deta_pair, dphi_pair, qinv, kt, weight);
994-
}
995987
}
996988

997989
template <typename TG1, typename TG2>

0 commit comments

Comments
 (0)