Skip to content

Commit ccf0798

Browse files
Please consider the following warning fixes
1 parent 112f747 commit ccf0798

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

PWGLF/TableProducer/Strangeness/strangederivedbuilder.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ struct strangederivedbuilder {
470470
// Figure out the numbering of the new tracks table
471471
// assume filling per order
472472
int nTracks = 0;
473-
for (int i = 0; i < trackMap.size(); i++) {
473+
for (int i = 0; i < int(trackMap.size()); i++) {
474474
if (trackMap[i] >= 0) {
475475
trackMap[i] = nTracks++;
476476
}
@@ -545,7 +545,7 @@ struct strangederivedbuilder {
545545
// Figure out the numbering of the new tracks table
546546
// assume filling per order
547547
int nTracks = 0;
548-
for (int i = 0; i < trackMap.size(); i++) {
548+
for (int i = 0; i < int(trackMap.size()); i++) {
549549
if (trackMap[i] >= 0) {
550550
trackMap[i] = nTracks++;
551551
}
@@ -637,7 +637,7 @@ struct strangederivedbuilder {
637637
// Figure out the numbering of the new mcMother table
638638
// assume filling per order
639639
int nParticles = 0;
640-
for (int i = 0; i < motherReference.size(); i++) {
640+
for (int i = 0; i < int(motherReference.size()); i++) {
641641
if (motherReference[i] >= 0) {
642642
motherReference[i] = nParticles++; // count particles of interest
643643
}

PWGLF/Tasks/Strangeness/derivedlambdakzeroanalysis.cxx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,51 +1497,51 @@ struct derivedlambdakzeroanalysis {
14971497
auto hOmegaMinus = histos.get<TH2>(HIST("h2dGeneratedOmegaMinus"));
14981498
auto hOmegaPlus = histos.get<TH2>(HIST("h2dGeneratedOmegaPlus"));
14991499
for (auto& gVec : geK0Short) {
1500-
if (gVec.generatedK0Short().size() != hK0Short->GetNcells())
1500+
if (int(gVec.generatedK0Short().size()) != hK0Short->GetNcells())
15011501
LOGF(fatal, "K0Short: Number of elements in generated array and number of cells in receiving histogram differ: %i vs %i!", gVec.generatedK0Short().size(), hK0Short->GetNcells());
1502-
for (uint64_t iv = 0; iv < hK0Short->GetNcells(); iv++) {
1502+
for (int iv = 0; iv < hK0Short->GetNcells(); iv++) {
15031503
hK0Short->SetBinContent(iv, hK0Short->GetBinContent(iv) + gVec.generatedK0Short()[iv]);
15041504
}
15051505
}
15061506
for (auto& gVec : geLambda) {
1507-
if (gVec.generatedLambda().size() != hLambda->GetNcells())
1507+
if (int(gVec.generatedLambda().size()) != hLambda->GetNcells())
15081508
LOGF(fatal, "Lambda: Number of elements in generated array and number of cells in receiving histogram differ: %i vs %i!", gVec.generatedLambda().size(), hLambda->GetNcells());
1509-
for (uint64_t iv = 0; iv < hLambda->GetNcells(); iv++) {
1509+
for (int iv = 0; iv < hLambda->GetNcells(); iv++) {
15101510
hLambda->SetBinContent(iv, hLambda->GetBinContent(iv) + gVec.generatedLambda()[iv]);
15111511
}
15121512
}
15131513
for (auto& gVec : geAntiLambda) {
1514-
if (gVec.generatedAntiLambda().size() != hAntiLambda->GetNcells())
1514+
if (int(gVec.generatedAntiLambda().size()) != hAntiLambda->GetNcells())
15151515
LOGF(fatal, "AntiLambda: Number of elements in generated array and number of cells in receiving histogram differ: %i vs %i!", gVec.generatedAntiLambda().size(), hAntiLambda->GetNcells());
1516-
for (uint64_t iv = 0; iv < hAntiLambda->GetNcells(); iv++) {
1516+
for (int iv = 0; iv < hAntiLambda->GetNcells(); iv++) {
15171517
hAntiLambda->SetBinContent(iv, hAntiLambda->GetBinContent(iv) + gVec.generatedAntiLambda()[iv]);
15181518
}
15191519
}
15201520
for (auto& gVec : geXiMinus) {
1521-
if (gVec.generatedXiMinus().size() != hXiMinus->GetNcells())
1521+
if (int(gVec.generatedXiMinus().size()) != hXiMinus->GetNcells())
15221522
LOGF(fatal, "XiMinus: Number of elements in generated array and number of cells in receiving histogram differ: %i vs %i!", gVec.generatedXiMinus().size(), hXiMinus->GetNcells());
1523-
for (uint64_t iv = 0; iv < hXiMinus->GetNcells(); iv++) {
1523+
for (int iv = 0; iv < hXiMinus->GetNcells(); iv++) {
15241524
hXiMinus->SetBinContent(iv, hXiMinus->GetBinContent(iv) + gVec.generatedXiMinus()[iv]);
15251525
}
15261526
}
15271527
for (auto& gVec : geXiPlus) {
1528-
if (gVec.generatedXiPlus().size() != hXiPlus->GetNcells())
1528+
if (int(gVec.generatedXiPlus().size()) != hXiPlus->GetNcells())
15291529
LOGF(fatal, "XiPlus: Number of elements in generated array and number of cells in receiving histogram differ: %i vs %i!", gVec.generatedXiPlus().size(), hXiPlus->GetNcells());
1530-
for (uint64_t iv = 0; iv < hXiPlus->GetNcells(); iv++) {
1530+
for (int iv = 0; iv < hXiPlus->GetNcells(); iv++) {
15311531
hXiPlus->SetBinContent(iv, hXiPlus->GetBinContent(iv) + gVec.generatedXiPlus()[iv]);
15321532
}
15331533
}
15341534
for (auto& gVec : geOmegaMinus) {
1535-
if (gVec.generatedOmegaMinus().size() != hOmegaMinus->GetNcells())
1535+
if (int(gVec.generatedOmegaMinus().size()) != hOmegaMinus->GetNcells())
15361536
LOGF(fatal, "OmegaMinus: Number of elements in generated array and number of cells in receiving histogram differ: %i vs %i!", gVec.generatedOmegaMinus().size(), hOmegaMinus->GetNcells());
1537-
for (uint64_t iv = 0; iv < hOmegaMinus->GetNcells(); iv++) {
1537+
for (int iv = 0; iv < hOmegaMinus->GetNcells(); iv++) {
15381538
hOmegaMinus->SetBinContent(iv, hOmegaMinus->GetBinContent(iv) + gVec.generatedOmegaMinus()[iv]);
15391539
}
15401540
}
15411541
for (auto& gVec : geOmegaPlus) {
1542-
if (gVec.generatedOmegaPlus().size() != hOmegaPlus->GetNcells())
1542+
if (int(gVec.generatedOmegaPlus().size()) != hOmegaPlus->GetNcells())
15431543
LOGF(fatal, "OmegaPlus: Number of elements in generated array and number of cells in receiving histogram differ: %i vs %i!", gVec.generatedOmegaPlus().size(), hOmegaPlus->GetNcells());
1544-
for (uint64_t iv = 0; iv < hOmegaPlus->GetNcells(); iv++) {
1544+
for (int iv = 0; iv < hOmegaPlus->GetNcells(); iv++) {
15451545
hOmegaPlus->SetBinContent(iv, hOmegaPlus->GetBinContent(iv) + gVec.generatedOmegaPlus()[iv]);
15461546
}
15471547
}

0 commit comments

Comments
 (0)