Changeset 9884


Ignore:
Timestamp:
08/19/10 22:48:05 (14 years ago)
Author:
tbretz
Message:
Added some debug output in cae of faiölure. Fixed a sanity check.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosy/main/MMoonPointing.cc

    r9561 r9884  
    138138    // This is a sanity check for the case the Interpolation failed
    139139    const Double_t norm = TMath::Hypot(fcos, fsin);
    140     if (TMath::Abs(norm-1)<0.001)
     140    if (TMath::Abs(norm-1)>0.001)
    141141    {
    142142        gLog << warn << "WARNING - Local moon position Zd/Az=";
    143143        gLog << moon.Zd()*TMath::RadToDeg() << "/" << moon.Az()*TMath::RadToDeg();
    144144        gLog << " out of range of table for interpolation." << endl;
     145        gLog << "          fcos=" << fcos << endl;
     146        gLog << "          fsin=" << fsin << endl;
     147        gLog << "          norm=" << norm << endl;
    145148        return kFALSE;
    146149    }
Note: See TracChangeset for help on using the changeset viewer.