Skip to content

Commit f2003e7

Browse files
Megalinter happiness
1 parent 3af552a commit f2003e7

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

PWGLF/TableProducer/Strangeness/sigma0builder.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include <TPDGCode.h>
5252
#include <TProfile.h>
5353

54+
#include <vector>
5455
#include <array>
5556
#include <cmath>
5657
#include <cstdlib>
@@ -1961,3 +1962,4 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
19611962
{
19621963
return WorkflowSpec{adaptAnalysisTask<sigma0builder>(cfgc)};
19631964
}
1965+

PWGLF/Tasks/Strangeness/sigmaanalysis.cxx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
#include <TPDGCode.h>
5050
#include <TProfile.h>
5151

52+
#include <vector>
53+
#include <unordered_map>
5254
#include <array>
5355
#include <cmath>
5456
#include <cstdlib>
@@ -130,6 +132,7 @@ struct sigmaanalysis {
130132
Configurable<float> mc_rapidityMin{"mc_rapidityMin", -0.5, "Min generated particle rapidity"};
131133
Configurable<float> mc_rapidityMax{"mc_rapidityMax", 0.5, "Max generated particle rapidity"};
132134
} genSelections;
135+
133136

134137
// QA
135138
Configurable<bool> fdoSigma0QA{"doSigma0QA", false, "if true, perform Sigma0 QA analysis. Only works with MC."};
@@ -549,7 +552,8 @@ struct sigmaanalysis {
549552
histos.add("Gen/h2dGenAntiSigma0VsMultMC_RecoedEvt", "h2dGenAntiSigma0VsMultMC_RecoedEvt", kTH2D, {axisNch, axisPt});
550553
histos.add("Gen/h2dGenSigma0VsMultMC", "h2dGenSigma0VsMultMC", kTH2D, {axisNch, axisPt});
551554
histos.add("Gen/h2dGenAntiSigma0VsMultMC", "h2dGenAntiSigma0VsMultMC", kTH2D, {axisNch, axisPt});
552-
}
555+
556+
}
553557
if (doprocessPi0GeneratedRun3) { // Pi0 specific
554558
histos.add("Gen/h2dGenPi0VsMultMC_RecoedEvt", "h2dGenPi0VsMultMC_RecoedEvt", kTH2D, {axisNch, axisPt});
555559
histos.add("Gen/h2dGenPi0", "h2dGenPi0", kTH2D, {axisCentrality, axisPt});
@@ -1221,15 +1225,15 @@ struct sigmaanalysis {
12211225
"TPCTOFPID", "DCADauToPV", "Mass"};
12221226

12231227
if (PDGRequired == 22) {
1224-
if constexpr (selection_index >= 0 && selection_index < (int)std::size(PhotonSelsLocal)) {
1228+
if constexpr (selection_index >= 0 && selection_index < static_cast<int>(std::size(PhotonSelsLocal))) {
12251229
histos.fill(HIST("Selection/Photon/hCandidateSel"), selection_index);
12261230
histos.fill(HIST("Selection/Photon/h2d") + HIST(PhotonSelsLocal[selection_index]), sigma.photonPt(), sigma.photonMass());
12271231
histos.fill(HIST("Selection/Sigma0/h2dPhoton") + HIST(PhotonSelsLocal[selection_index]), sigma.pt(), sigma.sigma0Mass());
12281232
}
12291233
}
12301234

12311235
if (PDGRequired == 3122) {
1232-
if constexpr (selection_index >= 0 && selection_index < (int)std::size(LambdaSelsLocal)) {
1236+
if constexpr (selection_index >= 0 && selection_index < static_cast<int>(std::size(LambdaSelsLocal))) {
12331237
histos.fill(HIST("Selection/Lambda/hCandidateSel"), selection_index);
12341238
histos.fill(HIST("Selection/Lambda/h2d") + HIST(LambdaSelsLocal[selection_index]), sigma.lambdaPt(), sigma.lambdaMass());
12351239
histos.fill(HIST("Selection/Sigma0/h2dLambda") + HIST(LambdaSelsLocal[selection_index]), sigma.pt(), sigma.sigma0Mass());
@@ -1263,9 +1267,8 @@ struct sigmaanalysis {
12631267
auto sigma0mc = fullSigma0s.rawIteratorAt(sigma0Index[mcid]);
12641268
histos.fill(HIST("Sigma0QA/hDuplicates"), NDuplicates); // how many times a mc sigma0 was reconstructed
12651269

1266-
if (sigma0mc.isSigma0()) {
1267-
}
1268-
histos.fill(HIST("Sigma0QA/hSigma0Duplicates"), NDuplicates); // how many times a mc sigma0 was reconstructed
1270+
if (sigma0mc.isSigma0())
1271+
histos.fill(HIST("Sigma0QA/hSigma0Duplicates"), NDuplicates); // how many times a mc sigma0 was reconstructed
12691272

12701273
if (sigma0mc.isAntiSigma0())
12711274
histos.fill(HIST("Sigma0QA/hASigma0Duplicates"), NDuplicates); // how many times a mc sigma0 was reconstructed
@@ -1730,3 +1733,4 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
17301733
{
17311734
return WorkflowSpec{adaptAnalysisTask<sigmaanalysis>(cfgc)};
17321735
}
1736+

0 commit comments

Comments
 (0)