Skip to content

Commit 69edf1e

Browse files
authored
Fix the O2linter warnings
1 parent aa94fd9 commit 69edf1e

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

PWGHF/HFL/Tasks/taskSingleMuonSource.cxx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// In applying this license CERN does not waive the privileges and immunities
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
11-
//
12-
// \file taskSingleMuonSource.cxx
13-
// \brief Task used to seperate single muons source in Monte Carlo simulation.
14-
// \author Maolin Zhang <maolin.zhang@cern.ch>, CCNU
11+
///
12+
/// \file taskSingleMuonSource.cxx
13+
/// \brief Task used to seperate single muons source in Monte Carlo simulation.
14+
/// \author Maolin Zhang <maolin.zhang@cern.ch>, CCNU
1515

1616
#include "Common/Core/RecoDecay.h"
1717
#include "Common/DataModel/TrackSelectionTables.h"
@@ -393,7 +393,7 @@ struct HfTaskSingleMuonSource {
393393
}
394394
return 0;
395395
}
396-
bool Corr(const McMuons::iterator& muon1, const McMuons::iterator& muon2, aod::McParticles const& mcParts)
396+
bool isCorr(const McMuons::iterator& muon1, const McMuons::iterator& muon2, aod::McParticles const& mcParts)
397397
{
398398

399399
int moth11(0), moth12(0), moth21(1), moth22(1);
@@ -431,7 +431,7 @@ struct HfTaskSingleMuonSource {
431431
ROOT::Math::PtEtaPhiMVector mu1Vec(muon.pt(), muon.eta(), muon.phi(), mm);
432432
ROOT::Math::PtEtaPhiMVector mu2Vec(muon2.pt(), muon2.eta(), muon2.phi(), mm);
433433
ROOT::Math::PtEtaPhiMVector dimuVec = mu1Vec + mu2Vec;
434-
auto InvM = dimuVec.M();
434+
auto invMass = dimuVec.M();
435435

436436
if (!muon.has_mcParticle() || !muon2.has_mcParticle()) {
437437
return;
@@ -442,22 +442,22 @@ struct HfTaskSingleMuonSource {
442442
ROOT::Math::PtEtaPhiMVector mu1VecGen(mcPart1.pt(), mcPart1.eta(), mcPart1.phi(), mm);
443443
ROOT::Math::PtEtaPhiMVector mu2VecGen(mcPart2.pt(), mcPart2.eta(), mcPart2.phi(), mm);
444444
ROOT::Math::PtEtaPhiMVector dimuVecGen = mu1VecGen + mu2VecGen;
445-
auto InvMGen = dimuVecGen.M();
445+
auto invMassGen = dimuVecGen.M();
446446

447447
if (isMuon(mask1) && isMuon(mask2)) {
448-
registry.fill(HIST("h1MuonMass"), InvM);
449-
registry.fill(HIST("h1MuonMassGen"), InvMGen);
448+
registry.fill(HIST("h1MuonMass"), invMass);
449+
registry.fill(HIST("h1MuonMassGen"), invMassGen);
450450
}
451451
if (isBeautyMu(mask1) && isBeautyMu(mask2)) {
452-
registry.fill(HIST("h1BeautyMass"), InvM);
453-
registry.fill(HIST("h1BeautyMassGen"), InvMGen);
454-
if (Corr(muon, muon2, mcParts)) {
455-
registry.fill(HIST("h1CorrBeautyMass"), InvM);
456-
registry.fill(HIST("h1CorrBeautyMassGen"), InvMGen);
452+
registry.fill(HIST("h1BeautyMass"), invMass);
453+
registry.fill(HIST("h1BeautyMassGen"), invMassGen);
454+
if (isCorr(muon, muon2, mcParts)) {
455+
registry.fill(HIST("h1CorrBeautyMass"), invMass);
456+
registry.fill(HIST("h1CorrBeautyMassGen"), invMassGen);
457457
}
458458
} else {
459-
registry.fill(HIST("h1OtherMass"), InvM);
460-
registry.fill(HIST("h1OtherMassGen"), InvMGen);
459+
registry.fill(HIST("h1OtherMass"), invMass);
460+
registry.fill(HIST("h1OtherMassGen"), invMassGen);
461461
}
462462
}
463463

0 commit comments

Comments
 (0)