Skip to content

Commit 7bfcfe1

Browse files
committed
Make linter happy
1 parent c9efd9c commit 7bfcfe1

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

PWGHF/Utils/utilsMcGen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void fillMcMatchGen3Prong(TMcParticles const& mcParticles,
202202
if (std::abs(pdgMother) == Pdg::kDStar) {
203203
std::vector<int> arrResoDaughIndexDStar = {};
204204
RecoDecay::getDaughters(particle, &arrResoDaughIndexDStar, std::array{0}, DepthResoMax);
205-
for (const int iDaug : arrResoDaughIndexDStar) {
205+
for (const int iDaug : arrResoDaughIndexDStar) { // o2-linter: disable=const-ref-in-for-loop (not necessary for int type)
206206
auto daughDstar = mcParticles.rawIteratorAt(iDaug);
207207
if (std::abs(daughDstar.pdgCode()) == Pdg::kD0 || std::abs(daughDstar.pdgCode()) == Pdg::kDPlus) {
208208
RecoDecay::getDaughters(daughDstar, &arrResoDaughIndex, std::array{0}, DepthResoMax);

PWGHF/Utils/utilsMcMatching.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ static const std::unordered_map<DecayChannelMain, const std::vector<int>> daught
160160
{DecayChannelMain::CDeuteronToDeKPi, {+o2::constants::physics::Pdg::kDeuteron, +PDG_t::kKMinus, +PDG_t::kPiPlus}}};
161161

162162
/// resonances in c-deuteron decay are not stored in the particle stack for c-deuteron, but tagged with specific status codes
163-
static constexpr int statusCodeCDeuteronToDeKstar0{95};
164-
static constexpr int statusCodeCDeuteronToNeDeltaplusK{96};
165-
static constexpr int statusCodeCDeuteronToNeL1520Pi{97};
163+
static constexpr int StatusCodeCDeuteronToDeKstar0{95};
164+
static constexpr int StatusCodeCDeuteronToNeDeltaplusK{96};
165+
static constexpr int StatusCodeCDeuteronToNeL1520Pi{97};
166166

167167
/// Returns a map of the possible final states for a specific 3-prong particle specie
168168
/// \param pdgMother PDG code of the mother particle
@@ -339,13 +339,13 @@ template <typename Part>
339339
inline int getResonantDecayCDeuteron(Part const& particle)
340340
{
341341
auto statusCode = std::abs(particle.getGenStatusCode());
342-
if (statusCode == o2::hf_decay::hf_cand_3prong::statusCodeCDeuteronToDeKstar0) {
342+
if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToDeKstar0) {
343343
return o2::hf_decay::hf_cand_3prong::DecayChannelResonant::CDeuteronToDeKstar0;
344344
}
345-
if (statusCode == o2::hf_decay::hf_cand_3prong::statusCodeCDeuteronToNeDeltaplusK) {
345+
if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToNeDeltaplusK) {
346346
return o2::hf_decay::hf_cand_3prong::DecayChannelResonant::CDeuteronToNeDeltaplusK;
347347
}
348-
if (statusCode == o2::hf_decay::hf_cand_3prong::statusCodeCDeuteronToNeL1520Pi) {
348+
if (statusCode == o2::hf_decay::hf_cand_3prong::StatusCodeCDeuteronToNeL1520Pi) {
349349
return o2::hf_decay::hf_cand_3prong::DecayChannelResonant::CDeuteronToNeL1520Pi;
350350
}
351351
return 0;

0 commit comments

Comments
 (0)