Skip to content

Commit e3476dc

Browse files
author
Stefanie Mrozinski
committed
Fix o2-linter findings
1 parent b6a67e0 commit e3476dc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

PWGEM/PhotonMeson/Tasks/photonhbt.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ struct Photonhbt {
673673
template <int ev_id>
674674
inline void fillPairSep(PairSep const& s, PairQAObservables const& obs)
675675
{
676-
if (!pairsep.cfgDoPairSepQA.value || obs.qinv >= 0.5f)
676+
if (!pairsep.cfgDoPairSepQA.value || obs.qinv >= cfgMaxQinvForMCQA.value)
677677
return;
678678
fRegistry.fill(HIST(pairsep_types[ev_id]) + HIST("hDEtaDPhiKt_PP"), s.dEtaPP, s.dPhiPP, obs.kt);
679679
fRegistry.fill(HIST(pairsep_types[ev_id]) + HIST("hDEtaDPhiKt_NN"), s.dEtaNN, s.dPhiNN, obs.kt);
@@ -832,7 +832,8 @@ struct Photonhbt {
832832

833833
fRegistry.addClone("Pair/same/", "Pair/mix/");
834834

835-
for (const std::string sm : {"PairSep/same/", "PairSep/mix/"}) {
835+
const std::array<std::string, 2> pairSepDirs = {"PairSep/same/", "PairSep/mix/"};
836+
for (const auto& sm : pairSepDirs) {
836837
fRegistry.add((sm + "hDEtaDPhiKt_PP").c_str(), "e^{+}e^{+};#Delta#eta;#Delta#phi (rad);k_{T} (GeV/c)",
837838
kTHnSparseF, {{160, -0.4f, 0.4f}, {160, -0.4f, 0.4f}, axisKt}, true);
838839
fRegistry.add((sm + "hDEtaDPhiKt_NN").c_str(), "e^{-}e^{-};#Delta#eta;#Delta#phi (rad);k_{T} (GeV/c)",

0 commit comments

Comments
 (0)