Skip to content

Commit f068ec9

Browse files
authored
[PWGJE] Fix compilation warnings (AliceO2Group#8568)
1 parent 6b31f4f commit f068ec9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PWGJE/Tasks/jetchargedv2.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct Jetchargedv2Task {
246246
AxisSpec axisEvtPl{360, -constants::math::PI, constants::math::PI};
247247

248248
histosQA.add("histCentFull", "Centrality distribution for valid events", HistType::kTH1F, {axisCent});
249-
for (auto i = 0; i < cfgnMods->size(); i++) {
249+
for (std::size_t i = 0; i < cfgnMods->size(); i++) {
250250
histosQA.add(Form("histQvecUncorV%d", cfgnMods->at(i)), "", {HistType::kTH3F, {axisQvecF, axisQvecF, axisCent}});
251251
histosQA.add(Form("histQvecRectrV%d", cfgnMods->at(i)), "", {HistType::kTH3F, {axisQvecF, axisQvecF, axisCent}});
252252
histosQA.add(Form("histQvecTwistV%d", cfgnMods->at(i)), "", {HistType::kTH3F, {axisQvecF, axisQvecF, axisCent}});
@@ -351,7 +351,7 @@ struct Jetchargedv2Task {
351351
soa::Join<aod::ChargedJets, aod::ChargedJetConstituents> const& jets,
352352
aod::JetTracks const& tracks)
353353
{
354-
double collnum = 1;
354+
// double collnum = 1;
355355
for (const auto& collision : collisions) {
356356
double leadingJetPt = -1;
357357
double leadingJetPhi = -1;
@@ -370,7 +370,7 @@ struct Jetchargedv2Task {
370370
}
371371

372372
//=====================< evt pln [n=2->\Psi_2, n=3->\Psi_3] >=====================//
373-
for (auto i = 0; i < cfgnMods->size(); i++) {
373+
for (std::size_t i = 0; i < cfgnMods->size(); i++) {
374374
int nmode = cfgnMods->at(i);
375375
int DetInd = DetId * 4 + cfgnTotalSystem * 4 * (nmode - 2);
376376
if (nmode == 2) {
@@ -412,8 +412,8 @@ struct Jetchargedv2Task {
412412
continue;
413413
}
414414
phiMinusPsi2 = jet.phi() - evtPl2;
415-
Double_t jetPtCorr = 0.0;
416-
jetPtCorr = jet.pt() - collision.rho() * jet.area();
415+
// Double_t jetPtCorr = 0.0;
416+
// jetPtCorr = jet.pt() - collision.rho() * jet.area();
417417

418418
if ((phiMinusPsi2 < TMath::Pi() / 4) || (phiMinusPsi2 >= 7 * TMath::Pi() / 4) || (phiMinusPsi2 >= 3 * TMath::Pi() / 4 && phiMinusPsi2 < 5 * TMath::Pi() / 4)) {
419419
registry.fill(HIST("h_jet_pt_in_plane_v2"), jet.pt() - (collision.rho() * jet.area()), 1.0);
@@ -435,8 +435,8 @@ struct Jetchargedv2Task {
435435
continue;
436436
}
437437
phiMinusPsi3 = jet.phi() - evtPl3;
438-
Double_t jetPtCorr = 0.0;
439-
jetPtCorr = jet.pt() - collision.rho() * jet.area();
438+
// Double_t jetPtCorr = 0.0;
439+
// jetPtCorr = jet.pt() - collision.rho() * jet.area();
440440

441441
if ((phiMinusPsi3 < TMath::Pi() / 4) || (phiMinusPsi3 >= 7 * TMath::Pi() / 4) || (phiMinusPsi3 >= 3 * TMath::Pi() / 4 && phiMinusPsi3 < 5 * TMath::Pi() / 4)) {
442442
registry.fill(HIST("h_jet_pt_in_plane_v3"), jet.pt() - (collision.rho() * jet.area()), 1.0);
@@ -475,7 +475,7 @@ struct Jetchargedv2Task {
475475
return;
476476
}
477477

478-
for (auto i = 0; i < cfgnMods->size(); i++) {
478+
for (std::size_t i = 0; i < cfgnMods->size(); i++) {
479479
TRandom3 randomNumber(0);
480480
float randomConeEta = randomNumber.Uniform(trackEtaMin + randomConeR, trackEtaMax - randomConeR);
481481
float randomConePhi = randomNumber.Uniform(0.0, 2 * M_PI);

0 commit comments

Comments
 (0)