Skip to content

Commit 0c5dd81

Browse files
authored
Add fallback return in angle difference calculation
Added a fallback return statement for unexpected cases.
1 parent 52b117d commit 0c5dd81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PWGLF/Tasks/Strangeness/strangenessInJets.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ struct StrangenessInJets {
417417
return diff;
418418
if (diff > PI)
419419
return TwoPI - diff;
420+
return diff; // should not happen
420421
}
421422

422423
struct ParticlePositionWithRespectToJet {

0 commit comments

Comments
 (0)