Skip to content

Commit 0e34104

Browse files
committed
fix warnings 2
1 parent bd9d348 commit 0e34104

File tree

3 files changed

+37
-36
lines changed

3 files changed

+37
-36
lines changed

PWGLF/Tasks/Strangeness/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ o2physics_add_dpl_workflow(v0ptinvmassplots
119119
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
120120
COMPONENT_NAME Analysis)
121121

122-
o2physics_add_dpl_workflow(strange-yield-pbpb
123-
SOURCES strange-yield-pbpb.cxx
122+
o2physics_add_dpl_workflow(derivedupcanalysis
123+
SOURCES derivedupcanalysis.cxx
124124
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
125125
COMPONENT_NAME Analysis)
126126

PWGLF/Tasks/Strangeness/derivedupcanalysis.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111
//
12-
/// \file strange-yield-pbpb.cxx
12+
/// \file derivedupcanalysis.cxx
1313
/// \brief Strangeness in UPC analysis task
1414
/// \author Roman Nepeivoda ([email protected])
1515

@@ -200,7 +200,7 @@ struct Derivedupcanalysis {
200200

201201
// Kinematic axes
202202
ConfigurableAxis axisPt{"axisPt", {VARIABLE_WIDTH, 0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f, 1.1f, 1.2f, 1.3f, 1.4f, 1.5f, 1.6f, 1.7f, 1.8f, 1.9f, 2.0f, 2.2f, 2.4f, 2.6f, 2.8f, 3.0f, 3.2f, 3.4f, 3.6f, 3.8f, 4.0f, 4.4f, 4.8f, 5.2f, 5.6f, 6.0f, 6.5f, 7.0f, 7.5f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 17.0f, 19.0f, 21.0f, 23.0f, 25.0f, 30.0f, 35.0f, 40.0f, 50.0f}, "pt axis for v0 analysis"};
203-
ConfigurableAxis axisPtXi{"axisPtCasc", {VARIABLE_WIDTH, 0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f, 1.1f, 1.2f, 1.3f, 1.4f, 1.5f, 1.6f, 1.7f, 1.8f, 1.9f, 2.0f, 2.2f, 2.4f, 2.6f, 2.8f, 3.0f, 3.2f, 3.4f, 3.6f, 3.8f, 4.0f, 4.4f, 4.8f, 5.2f, 5.6f, 6.0f, 6.5f, 7.0f, 7.5f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 17.0f, 19.0f, 21.0f, 23.0f, 25.0f, 30.0f, 35.0f, 40.0f, 50.0f}, "pt axis for cascade analysis"};
203+
ConfigurableAxis axisPtXi{"axisPtXi", {VARIABLE_WIDTH, 0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f, 1.1f, 1.2f, 1.3f, 1.4f, 1.5f, 1.6f, 1.7f, 1.8f, 1.9f, 2.0f, 2.2f, 2.4f, 2.6f, 2.8f, 3.0f, 3.2f, 3.4f, 3.6f, 3.8f, 4.0f, 4.4f, 4.8f, 5.2f, 5.6f, 6.0f, 6.5f, 7.0f, 7.5f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 17.0f, 19.0f, 21.0f, 23.0f, 25.0f, 30.0f, 35.0f, 40.0f, 50.0f}, "pt axis for cascade analysis"};
204204
ConfigurableAxis axisPtCoarse{"axisPtCoarse", {VARIABLE_WIDTH, 0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 7.0f, 10.0f, 15.0f}, "pt axis for QA"};
205205
ConfigurableAxis axisEta{"axisEta", {100, -2.0f, 2.0f}, "#eta"};
206206
ConfigurableAxis axisRap{"axisRap", {100, -2.0f, 2.0f}, "y"};
@@ -248,7 +248,7 @@ struct Derivedupcanalysis {
248248
// Track quality axes
249249
ConfigurableAxis axisTPCrows{"axisTPCrows", {160, -0.5f, 159.5f}, "N TPC rows"};
250250
ConfigurableAxis axisITSclus{"axisITSclus", {7, -0.5f, 6.5f}, "N ITS Clusters"};
251-
ConfigurableAxis axisITScluMap{"axisITSMap", {128, -0.5f, 127.5f}, "ITS Cluster map"};
251+
ConfigurableAxis axisITScluMap{"axisITScluMap", {128, -0.5f, 127.5f}, "ITS Cluster map"};
252252
ConfigurableAxis axisDetMap{"axisDetMap", {16, -0.5f, 15.5f}, "Detector use map"};
253253
ConfigurableAxis axisITScluMapCoarse{"axisITScluMapCoarse", {16, -3.5f, 12.5f}, "ITS Coarse cluster map"};
254254
ConfigurableAxis axisDetMapCoarse{"axisDetMapCoarse", {5, -0.5f, 4.5f}, "Detector Coarse user map"};
@@ -890,7 +890,7 @@ struct Derivedupcanalysis {
890890
}
891891

892892
if (doprocessGenerated) {
893-
for (Int_t partID = 0; partID <= 6; partID++) {
893+
for (int partID = 0; partID <= 6; partID++) {
894894
histos.add(Form("%s/mc/h6dGen", kParticlenames[partID].data()), "h6dGen", kTHnSparseF, {axisFT0Cqa, axisNchInvMass, axisNchInvMass, axisPt, axisSelGap, axisRap});
895895
}
896896
}
@@ -1216,9 +1216,9 @@ struct Derivedupcanalysis {
12161216
auto negpt = std::sqrt(std::pow(casc.pxneg(), 2) + std::pow(casc.pyneg(), 2));
12171217
auto bachpt = std::sqrt(std::pow(casc.pxbach(), 2) + std::pow(casc.pybach(), 2));
12181218

1219-
double posDcaXYLimit = 0.0105f + 0.035f / pow(pospt, 1.1f);
1220-
double negDcaXYLimit = 0.0105f + 0.035f / pow(negpt, 1.1f);
1221-
double bachDcaXYLimit = 0.0105f + 0.035f / pow(bachpt, 1.1f);
1219+
double posDcaXYLimit = 0.0105f + 0.035f / std::pow(pospt, 1.1f);
1220+
double negDcaXYLimit = 0.0105f + 0.035f / std::pow(negpt, 1.1f);
1221+
double bachDcaXYLimit = 0.0105f + 0.035f / std::pow(bachpt, 1.1f);
12221222

12231223
// TODO: separate xy and z //
12241224
if ((std::abs(casc.dcapostopv()) > posDcaXYLimit) &&
@@ -1376,8 +1376,8 @@ struct Derivedupcanalysis {
13761376
auto pospt = std::sqrt(std::pow(v0.pxpos(), 2) + std::pow(v0.pypos(), 2));
13771377
auto negpt = std::sqrt(std::pow(v0.pxneg(), 2) + std::pow(v0.pyneg(), 2));
13781378

1379-
double posDcaXYLimit = 0.0105f + 0.035f / pow(pospt, 1.1f);
1380-
double negDcaXYLimit = 0.0105f + 0.035f / pow(negpt, 1.1f);
1379+
double posDcaXYLimit = 0.0105f + 0.035f / std::pow(pospt, 1.1f);
1380+
double negDcaXYLimit = 0.0105f + 0.035f / std::pow(negpt, 1.1f);
13811381

13821382
// TODO: separate xy and z //
13831383
if ((std::abs(v0.dcapostopv()) > posDcaXYLimit) &&

PWGLF/Utils/strangenessMasks.h

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019-2024 CERN and copyright holders of ALICE O2.
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
22
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
33
// All rights not expressly granted are reserved.
44
//
@@ -8,14 +8,15 @@
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-
///
11+
//
12+
/// \file strangenessMasks.cxx
13+
/// \brief Defines selection criteria and bit masks for identifying v0 and cascade particles
1214
/// \author Roman Nepeivoda ([email protected])
13-
/// \since August 27, 2024
1415

1516
#ifndef PWGLF_UTILS_STRANGENESSMASKS_H_
1617
#define PWGLF_UTILS_STRANGENESSMASKS_H_
1718

18-
enum selectionsCombined : int { selV0CosPA = 0,
19+
enum SelectionsCombined : int { selV0CosPA = 0,
1920
selV0Radius,
2021
selV0RadiusMax,
2122
selDCANegToPV,
@@ -116,36 +117,36 @@ enum selectionsCombined : int { selV0CosPA = 0,
116117
selCount,
117118
};
118119

119-
static constexpr int selNum = static_cast<int>(selectionsCombined::selCount);
120+
static constexpr int kSelNum = static_cast<int>(SelectionsCombined::selCount);
120121

121122
// constants
122123
const float ctauxiPDG = 4.91; // from PDG
123124
const float ctauomegaPDG = 2.461; // from PDG
124125

125126
// bit masks
126-
std::bitset<selNum> maskTopologicalV0;
127-
std::bitset<selNum> maskTopologicalCasc;
127+
std::bitset<kSelNum> maskTopologicalV0;
128+
std::bitset<kSelNum> maskTopologicalCasc;
128129

129-
std::bitset<selNum> maskKinematicV0;
130-
std::bitset<selNum> maskKinematicCasc;
130+
std::bitset<kSelNum> maskKinematicV0;
131+
std::bitset<kSelNum> maskKinematicCasc;
131132

132-
std::bitset<selNum> maskTrackPropertiesV0;
133-
std::bitset<selNum> maskTrackPropertiesCasc;
133+
std::bitset<kSelNum> maskTrackPropertiesV0;
134+
std::bitset<kSelNum> maskTrackPropertiesCasc;
134135

135-
std::bitset<selNum> maskK0ShortSpecific;
136-
std::bitset<selNum> maskLambdaSpecific;
137-
std::bitset<selNum> maskAntiLambdaSpecific;
138-
std::bitset<selNum> maskXiSpecific;
139-
std::bitset<selNum> maskAntiXiSpecific;
140-
std::bitset<selNum> maskOmegaSpecific;
141-
std::bitset<selNum> maskAntiOmegaSpecific;
136+
std::bitset<kSelNum> maskK0ShortSpecific;
137+
std::bitset<kSelNum> maskLambdaSpecific;
138+
std::bitset<kSelNum> maskAntiLambdaSpecific;
139+
std::bitset<kSelNum> maskXiSpecific;
140+
std::bitset<kSelNum> maskAntiXiSpecific;
141+
std::bitset<kSelNum> maskOmegaSpecific;
142+
std::bitset<kSelNum> maskAntiOmegaSpecific;
142143

143-
std::bitset<selNum> maskSelectionK0Short;
144-
std::bitset<selNum> maskSelectionLambda;
145-
std::bitset<selNum> maskSelectionAntiLambda;
146-
std::bitset<selNum> maskSelectionXi;
147-
std::bitset<selNum> maskSelectionAntiXi;
148-
std::bitset<selNum> maskSelectionOmega;
149-
std::bitset<selNum> maskSelectionAntiOmega;
144+
std::bitset<kSelNum> maskSelectionK0Short;
145+
std::bitset<kSelNum> maskSelectionLambda;
146+
std::bitset<kSelNum> maskSelectionAntiLambda;
147+
std::bitset<kSelNum> maskSelectionXi;
148+
std::bitset<kSelNum> maskSelectionAntiXi;
149+
std::bitset<kSelNum> maskSelectionOmega;
150+
std::bitset<kSelNum> maskSelectionAntiOmega;
150151

151152
#endif // PWGLF_UTILS_STRANGENESSMASKS_H_

0 commit comments

Comments
 (0)