Skip to content

Commit 6dc198f

Browse files
committed
Further changes for clang/MegaLinter checks
1 parent b1e234b commit 6dc198f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎PWGUD/Tasks/CMakeLists.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,4 +307,5 @@ o2physics_add_dpl_workflow(pt-spectra-inclusive-upc
307307
o2physics_add_dpl_workflow(sg-deuteron-spectra
308308
SOURCES sgDeuteronSpectra.cxx
309309
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
310-
COMPONENT_NAME Analysis)
310+
COMPONENT_NAME Analysis)
311+

‎PWGUD/Tasks/sgDeuteronSpectra.cxx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include <Framework/InitContext.h>
2626
#include <Framework/runDataProcessing.h>
2727

28+
#include <vector>
29+
2830
using namespace o2;
2931
using namespace o2::framework;
3032
using namespace o2::framework::expressions;
@@ -97,7 +99,6 @@ struct SGDeuteronSpectra {
9799
int truegapSide = sgSelector.trueGap(coll, FIT_cut[0], FIT_cut[1], FIT_cut[2], ZDC_cut);
98100
registry.fill(HIST("collisions/TrueGapSide"), truegapSide, 1.);
99101

100-
101102
std::vector<float> parameters = {PV_cut, dcaZ_cut, dcaXY_cut, tpcChi2_cut, tpcNClsFindable_cut, itsChi2_cut, eta_cut, pt_cut};
102103

103104
for (const auto& t : tracks) {
@@ -138,7 +139,8 @@ struct SGDeuteronSpectra {
138139
if (t.sign() > 0) {
139140
registry.fill(HIST("tracks/Deut_Pt_TPC_DoubleGap"), t.pt(), t.tpcNSigmaDe());
140141
registry.fill(HIST("tracks/Deut_Pt_TOF_DoubleGap"), t.pt(), t.tofNSigmaDe());
141-
if (TMath::Abs(t.tpcNSigmaDe()) < 3.0) { registry.fill(HIST("tracks/Deut_Pt_TOF_DoubleGap_TPCpresel"), t.pt(), t.tofNSigmaDe());
142+
if (TMath::Abs(t.tpcNSigmaDe()) < 3.0) {
143+
registry.fill(HIST("tracks/Deut_Pt_TOF_DoubleGap_TPCpresel"), t.pt(), t.tofNSigmaDe());
142144
}
143145
} else {
144146
registry.fill(HIST("tracks/Antideut_Pt_TPC_DoubleGap"), t.pt(), t.tpcNSigmaDe());

0 commit comments

Comments
 (0)