Skip to content

Commit 0c508d6

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

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
@@ -2464,7 +2464,7 @@ void CAFMaker::produce(art::Event& evt) noexcept {
24642464

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

0 commit comments

Comments
 (0)