Skip to content

Commit 56cda86

Browse files
authored
Header files are updated
Headers files are checked with clang-tidy
1 parent d41d1ad commit 56cda86

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

PWGHF/HFL/Tasks/taskSingleMuonMultMc.cxx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,34 @@
1717
#include "Common/DataModel/EventSelection.h"
1818
#include "Common/DataModel/TrackSelectionTables.h"
1919

20-
#include "CommonConstants/PhysicsConstants.h"
21-
#include "Framework/ASoAHelpers.h"
20+
#include "Framework/ASoA.h"
2221
#include "Framework/AnalysisDataModel.h"
22+
#include "Framework/AnalysisHelpers.h"
2323
#include "Framework/AnalysisTask.h"
24+
#include "Framework/Configurable.h"
2425
#include "Framework/HistogramRegistry.h"
26+
#include "Framework/HistogramSpec.h"
27+
#include "Framework/InitContext.h"
2528
#include "Framework/O2DatabasePDGPlugin.h"
29+
#include "Framework/OutputObjHeader.h"
2630
#include "Framework/runDataProcessing.h"
27-
#include "ReconstructionDataFormats/TrackFwd.h"
28-
#include <Framework/ASoA.h>
29-
#include <Framework/Configurable.h>
3031

32+
#include <TPDGCode.h>
3133
#include <TString.h>
3234

35+
#include <Rtypes.h>
36+
37+
#include <cstdint>
38+
#include <cstdlib>
39+
3340
using namespace o2;
3441
using namespace o2::aod;
3542
using namespace o2::framework;
3643
using namespace o2::framework::expressions;
3744
using namespace o2::aod::fwdtrack;
3845

39-
auto static constexpr MinCharge = 3.f;
46+
// Minimum PDG charge (in units of 1/3 e)
47+
auto static constexpr ChargeMin = 3.f;
4048

4149
namespace
4250
{
@@ -343,7 +351,7 @@ struct HfTaskSingleMuonMultMc {
343351
// this particle is unidentified
344352
bool isUnidentified(const uint16_t mask)
345353
{
346-
return ((!TESTBIT(mask, IsIdentified)));
354+
return (!TESTBIT(mask, IsIdentified));
347355
}
348356

349357
// fill the histograms of each particle types
@@ -413,14 +421,14 @@ struct HfTaskSingleMuonMultMc {
413421
registry.fill(HIST("hNEventGenMu"), 1);
414422

415423
for (const auto& muon : muons) {
416-
if (!(muon.has_mcParticle())) {
424+
if (!muon.has_mcParticle()) {
417425
continue;
418426
}
419427
auto mcPart(muon.mcParticle());
420428
auto pdgGen(mcPart.pdgCode());
421429
auto etaGen(mcPart.eta());
422430

423-
if (!(std::abs(pdgGen) == kMuonMinus)) {
431+
if (std::abs(pdgGen) != kMuonMinus) {
424432
continue;
425433
}
426434
if ((etaGen >= etaMax) || (etaGen < etaMin)) {
@@ -443,7 +451,7 @@ struct HfTaskSingleMuonMultMc {
443451
continue;
444452
}
445453

446-
if (!(muon.has_mcParticle())) {
454+
if (!muon.has_mcParticle()) {
447455
continue;
448456
}
449457
const auto pt(muon.pt()), eta(muon.eta()), rAbsorb(muon.rAtAbsorberEnd()), pDca(muon.pDca()), chi2(muon.chi2MatchMCHMFT());
@@ -503,7 +511,7 @@ struct HfTaskSingleMuonMultMc {
503511
charge = p->Charge();
504512
}
505513

506-
if (std::abs(charge) < MinCharge) {
514+
if (std::abs(charge) < ChargeMin) {
507515
continue;
508516
}
509517
if (particle.pt() < ptTrackMin || std::abs(particle.eta()) >= etaTrackMax) {

0 commit comments

Comments
 (0)