Skip to content

Commit 5678d31

Browse files
NucleiTask - Fix O2Lint errors
1 parent 4b515a9 commit 5678d31

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

PWGLF/DataModel/LFNucleiTables.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(IsInelGt0, isInelGt0, // is INEL > 0
3838
[](int multPveta1) -> bool { return multPveta1 > 0; });
3939
DECLARE_SOA_DYNAMIC_COLUMN(IsInelGt1, isInelGt1, // is INEL > 1
4040
[](int multPveta1) -> bool { return multPveta1 > 1; });
41-
DECLARE_SOA_DYNAMIC_COLUMN(Selection_Bit, selection_bit, // o2-linter: disable=name/o2-column
41+
DECLARE_SOA_DYNAMIC_COLUMN(Selection_bit, selection_bit, // o2-linter: disable=name/o2-column
4242
[](o2::aod::evsel::EventSelectionFlags /*v*/) -> bool { return true; });
4343
} // namespace fullEvent
4444
DECLARE_SOA_TABLE(LfNuclEvents, "AOD", "LFNUCLEvent",
@@ -54,7 +54,7 @@ DECLARE_SOA_TABLE(LfNuclEvents, "AOD", "LFNUCLEvent",
5454
fullEvent::IsInelGt1<fullEvent::MultNTracksPVeta1>,
5555
fullEvent::IsEventReject,
5656
fullEvent::RunNumber,
57-
fullEvent::Selection_Bit<>);
57+
fullEvent::Selection_bit<>);
5858
using LfNuclEvent = LfNuclEvents::iterator;
5959

6060
namespace full

PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
/// \brief Analysis task for the measurement of the coalescence parameter B2/B3 in pp collisions for (anti)deuteron/(anti)helium-3
1616
///
1717
/// \author Giovanni Malfattore <giovanni.malfattore@cern.ch> and Rutuparna Rath <rutuparna.rath@cern.ch>
18-
///
18+
19+
// o2-linter: disable=name/workflow-file
1920

2021
#include "PWGLF/DataModel/LFNucleiTables.h"
2122
#include "PWGLF/DataModel/LFParticleIdentification.h"
@@ -92,8 +93,8 @@ struct LFNucleiBATask {
9293
Configurable<bool> enableHe{"enableHe", true, "Flag to enable helium-3 analysis."};
9394
Configurable<bool> enableAl{"enableAl", true, "Flag to enable alpha analysis."};
9495

95-
Configurable<bool> enableTrackingEff{"enableTrackingEff", 0, "Flag to enable tracking efficiency histos."};
96-
Configurable<std::string> ccdbUrl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
96+
Configurable<bool> enableTrackingEff{"enableTrackingEff", false, "Flag to enable tracking efficiency histos."};
97+
Configurable<std::string> ccdbUrl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"}; // o2-linter: disable=name/configurable (fast fix)
9798

9899
// Set the triggered events skimming scheme
99100
struct : ConfigurableGroup {
@@ -238,7 +239,7 @@ struct LFNucleiBATask {
238239

239240
Configurable<bool> enablePtShiftPID{"enablePtShiftPID", true, "Flag to enable wrong PID in tracking pT correction shift"};
240241
Configurable<std::vector<float>> parShiftPtPID{"parShiftPtPID", {0.0f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f}, "Parameters for helium3-Pt wrong pid shift (if enabled)."};
241-
Configurable<float> CfgPtShiftPID{"CfgPtShiftPID", 1.25f, "Default upper limit for PID pt-shift correction"};
242+
Configurable<float> cfgPtShiftPID{"cfgPtShiftPID", 1.25f, "Default upper limit for PID pt-shift correction"};
242243

243244
Configurable<bool> enableCentrality{"enableCentrality", true, "Flag to enable centrality 3D histos)"};
244245

@@ -2578,7 +2579,7 @@ struct LFNucleiBATask {
25782579
}
25792580
if (enablePtShiftPID && fShiftPtPID) {
25802581
shiftPtPID = fShiftPtPID->Eval(2 * track.pt());
2581-
if (tritonPID && (track.pt() <= CfgPtShiftPID)) {
2582+
if (tritonPID && (track.pt() <= cfgPtShiftPID)) {
25822583
hePt = track.pt() - shiftPtPID / 2.f;
25832584
antihePt = track.pt() - shiftPtPID / 2.f;
25842585
}

0 commit comments

Comments
 (0)