Changeset 3513
- Timestamp:
- 03/15/04 18:52:25 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r3500 r3513 633 633 for (Int_t i=0; i<fNcells-2; i++) 634 634 { 635 hex.SetFillStyle(issame ? 4000 : 1001);635 hex.SetFillStyle(issame ? 0 : 1001); 636 636 637 637 if (!issame) … … 1249 1249 return 999999; 1250 1250 1251 const Int_t kMaxDiff = 7;1252 1253 1251 TPaveStats *box = (TPaveStats*)gPad->GetPrimitive("stats"); 1254 1252 if (box) … … 1264 1262 return TH1D::DistancetoPrimitive(px, py); 1265 1263 1266 for (Int_t i=0; i<fNcells-2; i++) 1267 { 1268 MHexagon hex((*fGeomCam)[i]); 1269 if (hex.DistancetoPrimitive(px, py)==0) 1270 return 0; 1271 } 1264 if (GetPixelIndex(px, py)>=0) 1265 return 0; 1272 1266 1273 1267 if (!box) … … 1275 1269 1276 1270 const Int_t dist = box->DistancetoPrimitive(px, py); 1277 if (dist > kMaxDiff)1271 if (dist > TPad::GetMaxPickDistance()) 1278 1272 return 999999; 1279 1273
Note:
See TracChangeset
for help on using the changeset viewer.