Skip to content

Commit 3e939b4

Browse files
committed
fix cpplint issue
1 parent 1cace8a commit 3e939b4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

PWGHF/TableProducer/treeCreatorOmegacSt.cxx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <map>
1919
#include <memory>
2020
#include <string>
21+
#include <vector>
2122

2223
#include <TPDGCode.h>
2324

@@ -503,7 +504,7 @@ struct HfTreeCreatorOmegacSt {
503504
}
504505
hCandidatesPrPi->Fill(SVFitting::FitOk);
505506

506-
std::array<double, 2> massesV0Daughters{o2::constants::physics::MassProton, o2::constants::physics::MassPiMinus};
507+
std::array<double, nProngs> massesV0Daughters{o2::constants::physics::MassProton, o2::constants::physics::MassPiMinus};
507508
std::array<std::array<float, 3>, 2> momentaV0Daughters;
508509
o2::track::TrackPar trackParV0Pr = df2.getTrackParamAtPCA(0);
509510
trackParV0Pr.getPxPyPzGlo(momentaV0Daughters[0]);
@@ -538,9 +539,9 @@ struct HfTreeCreatorOmegacSt {
538539
const auto cpaCasc = RecoDecay::cpa(primaryVertexPos, df2.getPCACandidate(), pCasc);
539540
const auto cpaXYCasc = RecoDecay::cpaXY(primaryVertexPos, df2.getPCACandidate(), pCasc);
540541

541-
std::array<double, 2> massesXiDaughters = {o2::constants::physics::MassLambda0, o2::constants::physics::MassPiPlus};
542+
std::array<double, nProngs> massesXiDaughters = {o2::constants::physics::MassLambda0, o2::constants::physics::MassPiPlus};
542543
const auto massXi = RecoDecay::m(momentaCascDaughters, massesXiDaughters);
543-
std::array<double, 2> massesOmegaDaughters = {o2::constants::physics::MassLambda0, o2::constants::physics::MassKPlus};
544+
std::array<double, nProngs> massesOmegaDaughters = {o2::constants::physics::MassLambda0, o2::constants::physics::MassKPlus};
544545
const auto massOmega = RecoDecay::m(momentaCascDaughters, massesOmegaDaughters);
545546

546547
registry.fill(HIST("hDca"), std::sqrt(impactParameterCasc.getR2()));
@@ -558,9 +559,9 @@ struct HfTreeCreatorOmegacSt {
558559
(std::abs(v0TrackPr.tpcNSigmaPr()) < maxNSigmaV0Pr) &&
559560
(std::abs(v0TrackPi.tpcNSigmaPi()) < maxNSigmaV0Pi)) {
560561

561-
std::array<double, 2> massesOmegacToOmegaPi{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassPiPlus};
562-
std::array<double, 2> massesOmegacToOmegaK{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassKPlus};
563-
std::array<double, 2> massesXicDaughters{o2::constants::physics::MassXiMinus, o2::constants::physics::MassPiPlus};
562+
std::array<double, nProngs> massesOmegacToOmegaPi{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassPiPlus};
563+
std::array<double, nProngs> massesOmegacToOmegaK{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassKPlus};
564+
std::array<double, nProngs> massesXicDaughters{o2::constants::physics::MassXiMinus, o2::constants::physics::MassPiPlus};
564565
std::array<std::array<float, 3>, 2> momenta;
565566

566567
auto trackParCovPr = getTrackParCov(v0TrackPr);
@@ -856,7 +857,7 @@ struct HfTreeCreatorOmegacSt {
856857
LOG(debug) << "cascade with PDG code: " << pdgCode;
857858
if (std::abs(pdgCode) == kOmegaMinus) {
858859
LOG(debug) << "found Omega, looking for pions";
859-
std::array<double, 2> masses{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassPiPlus};
860+
std::array<double, nProngs> masses{o2::constants::physics::MassOmegaMinus, o2::constants::physics::MassPiPlus};
860861
std::array<std::array<float, 3>, 2> momenta;
861862
std::array<double, 3> primaryVertexPos = {primaryVertex.getX(), primaryVertex.getY(), primaryVertex.getZ()};
862863
const auto& mcColl = mother.mcCollision();

0 commit comments

Comments
 (0)