Changeset 11567 for trunk/Mars/mhist/MHCamera.cc
- Timestamp:
- 07/24/11 18:29:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mhist/MHCamera.cc
r11558 r11567 502 502 503 503 const Double_t val = TestBit(kProfile) ? fArray[i+1]/fBinEntries[i+1] : fArray[i+1]; 504 if (MatchSector(i, sector, aidx) && (ball || IsUsed(i)) && val<minimum )504 if (MatchSector(i, sector, aidx) && (ball || IsUsed(i)) && val<minimum && TMath::Finite(val)) 505 505 minimum = val; 506 506 } … … 530 530 531 531 const Double_t val = TestBit(kProfile) ? fArray[i+1]/fBinEntries[i+1] : fArray[i+1]; 532 if (MatchSector(i, sector, aidx) && (ball || IsUsed(i)) && val>maximum )532 if (MatchSector(i, sector, aidx) && (ball || IsUsed(i)) && val>maximum && TMath::Finite(val)) 533 533 maximum = val; 534 534 } … … 773 773 // Fill the projected histogram 774 774 for (Int_t idx=0; idx<fNcells-2; idx++) 775 if (IsUsed(idx) && MatchSector(idx, sector, aidx) )775 if (IsUsed(idx) && MatchSector(idx, sector, aidx) && TMath::Finite(GetBinContent(idx+1))) 776 776 h1->Fill(GetBinContent(idx+1)); 777 777 … … 864 864 // Fill the projected histogram 865 865 for (Int_t idx=0; idx<fNcells-2; idx++) 866 if (IsUsed(idx) && MatchSector(idx, sector, aidx) )866 if (IsUsed(idx) && MatchSector(idx, sector, aidx) && TMath::Finite(GetBinContent(idx+1))) 867 867 h1->Fill(TMath::Hypot((*fGeomCam)[idx].GetX(),(*fGeomCam)[idx].GetY())*m2d, 868 868 GetBinContent(idx+1)); … … 943 943 for (Int_t idx=0; idx<fNcells-2; idx++) 944 944 { 945 if (IsUsed(idx) && MatchSector(idx, TArrayI(), aidx) )945 if (IsUsed(idx) && MatchSector(idx, TArrayI(), aidx) && TMath::Finite(GetPixContent(idx))) 946 946 h1->Fill(TMath::ATan2((*fGeomCam)[idx].GetY(),(*fGeomCam)[idx].GetX())*TMath::RadToDeg()+180, 947 947 GetPixContent(idx));
Note:
See TracChangeset
for help on using the changeset viewer.