Skip to content

Commit 7af0aaa

Browse files
authored
Merge pull request #65 from DUNE/no-int-NaN
don't assign NaN to an int type
2 parents 51e85e9 + 26ba7f8 commit 7af0aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

duneanaobj/StandardRecord/SRTrack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace caf
3131
// Track characteristics
3232
float qual = NaN; ///< Reco-specific quality metric (in TMS, equivalent to "hits in track"/"total hits in event"
3333

34-
short int charge = NaN; ///< Reconstructed charge for the track, values are (-1, 0, 1) for negative/neutral/positive tracks
34+
short int charge = std::numeric_limits<short int>::lowest(); ///< Reconstructed charge for the track, expected values are (-1, 0, 1) for negative/neutral/positive tracks
3535

3636
float len_gcm2 = NaN; ///< Track length in g/cm2
3737
float len_cm = NaN; ///< Track length in centimeter (actual physical distance)

0 commit comments

Comments
 (0)