Skip to content

Commit 0efd8af

Browse files
authored
[PWGCF] Fix int8_t configurables (#8521)
1 parent 74a4311 commit 0efd8af

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniverseEfficiencyBase.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct femtoUniverseEfficiencyBase {
7070

7171
/// Particle 1
7272
Configurable<int32_t> ConfPDGCodePartOne{"ConfPDGCodePartOne", 2212, "Particle 1 - PDG code"};
73-
Configurable<uint8_t> ConfParticleTypePartOne{"ConfParticleTypePartOne", aod::femtouniverseparticle::ParticleType::kTrack, "Particle 1 - particle type: 0 - track, 2 - V0, 6 - phi"};
73+
Configurable<uint> ConfParticleTypePartOne{"ConfParticleTypePartOne", aod::femtouniverseparticle::ParticleType::kTrack, "Particle 1 - particle type: 0 - track, 2 - V0, 6 - phi"};
7474
Configurable<bool> ConfNoPDGPartOne{"ConfNoPDGPartOne", false, "0: selecting part one by PDG, 1: no PID selection"};
7575
Configurable<float> ConfPtLowPart1{"ConfPtLowPart1", 0.2, "Lower limit for Pt for the first particle"};
7676
Configurable<float> ConfPtHighPart1{"ConfPtHighPart1", 2.5, "Higher limit for Pt for the first particle"};
@@ -91,7 +91,7 @@ struct femtoUniverseEfficiencyBase {
9191
/// Particle 2
9292
Configurable<bool> ConfIsSame{"ConfIsSame", false, "Pairs of the same particle"};
9393
Configurable<int32_t> ConfPDGCodePartTwo{"ConfPDGCodePartTwo", 333, "Particle 2 - PDG code"};
94-
Configurable<uint8_t> ConfParticleTypePartTwo{"ConfParticleTypePartTwo", aod::femtouniverseparticle::ParticleType::kTrack, "Particle 2 - particle type: 0 - track, 2 - V0, 6 - phi"};
94+
Configurable<uint> ConfParticleTypePartTwo{"ConfParticleTypePartTwo", aod::femtouniverseparticle::ParticleType::kTrack, "Particle 2 - particle type: 0 - track, 2 - V0, 6 - phi"};
9595
Configurable<bool> ConfNoPDGPartTwo{"ConfNoPDGPartTwo", false, "0: selecting part two by PDG, 1: no PID selection"};
9696
Configurable<float> ConfPtLowPart2{"ConfPtLowPart2", 0.2, "Lower limit for Pt for the second particle"};
9797
Configurable<float> ConfPtHighPart2{"ConfPtHighPart2", 2.5, "Higher limit for Pt for the second particle"};

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackD0.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct femtoUniversePairTaskTrackD0 {
109109
Configurable<bool> ConfIsSame{"ConfIsSame", false, "Pairs of the same particle"};
110110
Configurable<int> ConfPDGCodeTrack{"ConfPDGCodeTrack", 2212, "Particle 2 - PDG code"};
111111
Configurable<int> ConfPIDTrack{"ConfPIDTrack", 2, "Particle 2 - Read from cutCulator"}; // we also need the possibility to specify whether the bit is true/false ->std>>vector<std::pair<int, int>>
112-
Configurable<int8_t> ConfTrackSign{"ConfTrackSign", 1, "Track sign"};
112+
Configurable<int> ConfTrackSign{"ConfTrackSign", 1, "Track sign"};
113113
Configurable<bool> ConfIsTrackIdentified{"ConfIsTrackIdentified", true, "Enable PID for the track"};
114114
} ConfTrack;
115115

@@ -133,7 +133,7 @@ struct femtoUniversePairTaskTrackD0 {
133133
} ConfD0D0barSideBand;
134134

135135
Configurable<std::vector<double>> binsPt{"binsPt", std::vector<double>{hf_cuts_d0_to_pi_k::vecBinsPt}, "pT bin limits"};
136-
Configurable<uint8_t> ConfChooseD0trackCorr{"ConfChooseD0trackCorr", 3, "If 0 - only D0s, 1 - only D0bars, 2 - D0/D0bar (one mass hypo.), 3 - all D0/D0bar cand."};
136+
Configurable<uint> ConfChooseD0trackCorr{"ConfChooseD0trackCorr", 3, "If 0 - only D0s, 1 - only D0bars, 2 - D0/D0bar (one mass hypo.), 3 - all D0/D0bar cand."};
137137
Configurable<bool> ConfUsePtCutForD0D0bar{"ConfUsePtCutForD0D0bar", false, "Include pT cut for D0/D0bar in same and mixed processes."};
138138
Configurable<bool> ConfUseMassCutForD0D0bar{"ConfUseMassCutForD0D0bar", false, "Switch to save D0/D0bar within declared inv. mass range"};
139139

PWGCF/TwoParticleCorrelations/Tasks/r2p2-4-id.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12+
#include <memory>
13+
1214
#include "Framework/runDataProcessing.h"
1315
#include "Framework/AnalysisTask.h"
1416
#include "Common/DataModel/EventSelection.h"
@@ -258,8 +260,8 @@ struct r2p24id {
258260
Configurable<float> maxpT{"maxpT", 2.0, "Maximum pT"};
259261
Configurable<float> trackpartition{"trackpartition", 1.0, "where(in pT) to partition"};
260262

261-
Configurable<int8_t> pid_particle1{"pid_particle1", 1, "Define particle1 type"}; // 1->Pion, 2->Kaon, 3->Proton
262-
Configurable<int8_t> pid_particle2{"pid_particle2", 1, "Define particle2 type"};
263+
Configurable<int> pid_particle1{"pid_particle1", 1, "Define particle1 type"}; // 1->Pion, 2->Kaon, 3->Proton
264+
Configurable<int> pid_particle2{"pid_particle2", 1, "Define particle2 type"};
263265

264266
Configurable<bool> iftrackpartition{"iftrackpartition", false, "If track partition is needed"};
265267
Configurable<bool> ifpid{"ifpid", false, "If PID is needed"};

0 commit comments

Comments
 (0)