Changeset 8021 for trunk/MagicSoft/Mars/mhist/MHCamera.cc
- Timestamp:
- 10/08/06 14:22:25 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r7877 r8021 938 938 if (!issame) 939 939 { 940 const Bool_t isnan = TMath::IsNaN(fArray[i+1]);940 const Bool_t isnan = !TMath::Finite(fArray[i+1]); 941 941 if (!IsUsed(i) || !iscol || isnan) 942 942 { … … 944 944 945 945 if (isnan) 946 gLog << warn << "MHCamera::Update: " << GetName() << " <" << GetTitle() << "> - Pixel Index #" << i << " contents is NaN (Not a Number)..." << endl;946 gLog << warn << "MHCamera::Update: " << GetName() << " <" << GetTitle() << "> - Pixel Index #" << i << " contents is not finite..." << endl; 947 947 } 948 948 else … … 960 960 hex.PaintHexagon(x, y, d); 961 961 else 962 if (IsUsed(i) && !TMath::IsNaN(fArray[i+1]))962 if (IsUsed(i) && TMath::Finite(fArray[i+1])) 963 963 { 964 964 Float_t size = d*(GetBinContent(i+1)-min)/(max-min); … … 1643 1643 Int_t MHCamera::GetColor(Float_t val, Float_t min, Float_t max, Bool_t islog) 1644 1644 { 1645 if ( TMath::IsNaN(val)) // FIXME: gLog!1646 return 10;1645 if (!TMath::Finite(val)) // FIXME: gLog! 1646 return maxcolidx/2; 1647 1647 1648 1648 //
Note:
See TracChangeset
for help on using the changeset viewer.