Skip to content

Commit b9ae784

Browse files
ginnocenshahor02
authored andcommitted
Add check on return value of track propagation
1 parent ca788fe commit b9ae784

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Analysis/Tasks/PWGHF/HFTrackIndexSkimsCreator.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ struct SelectTracks {
5454
status = 0;
5555
array<float, 2> dca;
5656
auto trackparvar0 = getTrackParCov(track);
57-
trackparvar0.propagateParamToDCA(vtxXYZ, d_bz, &dca, 100.); // get impact parameters
57+
bool isprop = trackparvar0.propagateParamToDCA(vtxXYZ, d_bz, &dca, 100.); // get impact parameters
58+
if(!isprop)
59+
status = 0;
5860
if (abs(dca[0]) < dcatoprimxymin)
5961
status = 0;
6062
if (b_dovalplots) {

0 commit comments

Comments
 (0)