Skip to content

Commit 10ec894

Browse files
vkuceraDelloStritto
authored andcommitted
[PWGJE] Fix unused variables, parameters, values (#18644)
1 parent f9a1c5a commit 10ec894

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎PWGJE/Tasks/fullJetSpectra.cxx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,16 +1381,16 @@ struct FullJetSpectra {
13811381

13821382
if (jetderiveddatautilities::selectTrigger(collision, jetderiveddatautilities::JTrigSel::JetChLowPt)) {
13831383
registry.fill(HIST("hDetTrigcollisionCounter"), 13.5); // EMCAcceptedDetTrigCollWithLowChargedJetTriggers
1384-
eventAccepted = true;
1384+
// eventAccepted = true; // FIXME: unused
13851385
}
13861386
if (jetderiveddatautilities::selectTrigger(collision, jetderiveddatautilities::JTrigSel::JetChHighPt)) {
13871387
registry.fill(HIST("hDetTrigcollisionCounter"), 14.5); // EMCAcceptedDetTrigCollWithHighChargedJetTriggers
1388-
eventAccepted = true;
1388+
// eventAccepted = true; // FIXME: unused
13891389
}
13901390

13911391
if (jetderiveddatautilities::selectTrigger(collision, jetderiveddatautilities::JTrigSel::JetFullLowPt) && jetderiveddatautilities::selectTrigger(collision, jetderiveddatautilities::JTrigSel::JetFullHighPt)) {
13921392
registry.fill(HIST("hDetTrigcollisionCounter"), 15.5); // EMCAcceptedDetTrigCollWithLow+HighFullJetTriggers
1393-
eventAccepted = true;
1393+
// eventAccepted = true; // FIXME: unused
13941394
}
13951395

13961396
for (auto const& jet : jets) {

‎PWGJE/Tasks/statPromptPhoton.cxx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ struct statPromptPhoton {
15521552

15531553
while (chase) {
15541554
if (visited.count(chaseindex)) {
1555-
chase = false;
1555+
// chase = false; // FIXME: unused
15561556
break;
15571557
}
15581558
visited.insert(chaseindex);
@@ -1677,7 +1677,7 @@ struct statPromptPhoton {
16771677

16781678
while (chase) {
16791679
if (visited.count(chaseindex)) {
1680-
chase = false;
1680+
// chase = false; // FIXME: unused
16811681
break;
16821682
}
16831683
visited.insert(chaseindex);

‎PWGJE/Tasks/v0QA.cxx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ struct V0QA {
16011601
if (!v0.has_mcParticle())
16021602
continue;
16031603

1604-
int pdg = v0.mcParticle().pdgCode();
1604+
// int pdg = v0.mcParticle().pdgCode(); // FIXME: unused
16051605

16061606
// Check V0 decay kinematics
16071607
if (v0.isRejectedCandidate())
@@ -1612,7 +1612,7 @@ struct V0QA {
16121612

16131613
auto pv0 = v0.mcParticle();
16141614
auto mother = v0.mcMotherParticle();
1615-
pdg = mother.pdgCode();
1615+
auto pdg = mother.pdgCode();
16161616

16171617
if (pdg == PDG_t::kXiMinus) {
16181618
registry.fill(HIST("feeddown/XiMinusPtYLambdaPt"), mother.pt(), mother.y(), pv0.pt(), weight);
@@ -1638,7 +1638,7 @@ struct V0QA {
16381638
if (!v0.has_mcParticle())
16391639
continue;
16401640

1641-
int pdg = v0.mcParticle().pdgCode();
1641+
// int pdg = v0.mcParticle().pdgCode(); // FIXME: unused
16421642

16431643
// Check V0 decay kinematics
16441644
if (v0.isRejectedCandidate())
@@ -1649,7 +1649,7 @@ struct V0QA {
16491649

16501650
auto pv0 = v0.mcParticle();
16511651
auto mother = v0.mcMotherParticle();
1652-
pdg = mother.pdgCode();
1652+
auto pdg = mother.pdgCode();
16531653

16541654
if (pdg == PDG_t::kXiMinus) {
16551655
registry.fill(HIST("feeddown/JetPtXiMinusPtLambdaPt"), mcdjet.pt(), mother.pt(), pv0.pt(), weight);
@@ -1683,14 +1683,14 @@ struct V0QA {
16831683
if (!v0sAreMatched(v0, pv0, jTracks))
16841684
continue;
16851685

1686-
int pdg = v0.mcParticle().pdgCode();
1686+
// int pdg = v0.mcParticle().pdgCode(); // FIXME: unused
16871687

16881688
// Check V0 decay kinematics
16891689
if (v0.isRejectedCandidate())
16901690
continue;
16911691

16921692
auto mother = v0.mcMotherParticle();
1693-
pdg = mother.pdgCode();
1693+
auto pdg = mother.pdgCode();
16941694
if (pdg == PDG_t::kXiMinus) {
16951695
registry.fill(HIST("feeddown/JetsPtXiMinusPtLambdaPt"), mcpjet.pt(), mcdjet.pt(), mother.pt(), pv0.pt(), weight);
16961696
}

0 commit comments

Comments
 (0)