Skip to content

Commit ee53694

Browse files
Update sbncode/CAFMaker/CAFMaker_module.cc with the correct Nan Check
Co-authored-by: Gianluca Petrillo <petrillo@slac.stanford.edu>
1 parent e489c77 commit ee53694

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sbncode/CAFMaker/CAFMaker_module.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,7 @@ void CAFMaker::produce(art::Event& evt) noexcept {
24652465

24662466
if (isRealData && (fDet == kSBND))
24672467
{
2468-
if ((rec.sbnd_frames.frameApplyAtCaf != kSignalingNaN) && (rec.sbnd_frames.frameApplyAtCaf != 0.0)){
2468+
if (!std::isnan(rec.sbnd_frames.frameApplyAtCaf) && (rec.sbnd_frames.frameApplyAtCaf != 0.0)){
24692469
mf::LogInfo("CAFMaker") << "Setting Reference Timing for timing object in SBND \n"
24702470
<< " Shift Apply At Caf Level = " << rec.sbnd_frames.frameApplyAtCaf << " ns\n";
24712471

0 commit comments

Comments
 (0)