Skip to content

Commit ab89135

Browse files
Jinhyun ParkJinhyun Park
authored andcommitted
Update return value for default case in switch statement
1 parent 4fc0b25 commit ab89135

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PWGHF/TableProducer/candidateCreatorXic0Omegac0Qa.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,8 @@ struct HfCandidateCreatorXic0Omegac0Qa {
511511
case kOmegaMinus:
512512
return o2::track::PID::OmegaMinus;
513513
default:
514-
LOGF(fatal, "Undefined PDG value from KFParticle given for conversion: %d", kfPdg);
514+
LOGF(fatal, "Undefined PDG value from KFParticle given for conversion(%d). Replace it with PID of Pion", kfPdg);
515+
return o2::track::PID::Pion;
515516
}
516517
}
517518

0 commit comments

Comments
 (0)