Skip to content

Commit 744e3cb

Browse files
committed
replacing return with continueinside jet loop
1 parent f0eb376 commit 744e3cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PWGJE/Tasks/fullJetSpectra.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,13 +1631,13 @@ struct FullJetSpectra {
16311631

16321632
for (auto const& jet : jets) {
16331633
if (!jetfindingutilities::isInEtaAcceptance(jet, jetEtaMin, jetEtaMax, trackEtaMin, trackEtaMax)) {
1634-
return;
1634+
continue;
16351635
}
16361636
if (!isAcceptedPartJet<aod::JetParticles>(jet)) {
1637-
return;
1637+
continue;
16381638
}
16391639
if (doMBGapTrigger && jet.eventWeight() == 1) {
1640-
return;
1640+
continue;
16411641
}
16421642
fillMCPHistograms(jet, jet.eventWeight());
16431643
}
@@ -1745,7 +1745,7 @@ struct FullJetSpectra {
17451745

17461746
for (const auto& mcpjet : mcdjet.template matchedJetGeo_as<jetMcpPerMcCollision>()) {
17471747
if (!isAcceptedPartJet<aod::JetParticles>(mcpjet)) {
1748-
return;
1748+
continue;
17491749
}
17501750
// apply emcal fiducial cuts to the matched particle level jets
17511751
if (mcpjet.eta() > jetEtaMax || mcpjet.eta() < jetEtaMin || mcpjet.phi() > jetPhiMax || mcpjet.phi() < jetPhiMin) {
@@ -1866,7 +1866,7 @@ struct FullJetSpectra {
18661866

18671867
for (const auto& mcpjet : mcdjet.template matchedJetGeo_as<JetTableMCPMatchedWeightedJoined>()) {
18681868
if (!isAcceptedPartJet<aod::JetParticles>(mcpjet)) {
1869-
return;
1869+
continue;
18701870
}
18711871
// apply emcal fiducial cuts to the matched particle level jets - if the matched mcp jet lies outside of the EMCAL fiducial, flag it as a fake jet
18721872
if (mcpjet.eta() > jetEtaMax || mcpjet.eta() < jetEtaMin || mcpjet.phi() > jetPhiMax || mcpjet.phi() < jetPhiMin) {

0 commit comments

Comments
 (0)