Ignore:
Timestamp:
03/15/04 18:52:25 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r3500 r3513  
    633633    for (Int_t i=0; i<fNcells-2; i++)
    634634    {
    635         hex.SetFillStyle(issame ? 4000 : 1001);
     635        hex.SetFillStyle(issame ? 0 : 1001);
    636636
    637637        if (!issame)
     
    12491249        return 999999;
    12501250
    1251     const Int_t kMaxDiff = 7;
    1252 
    12531251    TPaveStats *box = (TPaveStats*)gPad->GetPrimitive("stats");
    12541252    if (box)
     
    12641262        return TH1D::DistancetoPrimitive(px, py);
    12651263
    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;
    12721266
    12731267    if (!box)
     
    12751269
    12761270    const Int_t dist = box->DistancetoPrimitive(px, py);
    1277     if (dist > kMaxDiff)
     1271    if (dist > TPad::GetMaxPickDistance())
    12781272        return 999999;
    12791273
Note: See TracChangeset for help on using the changeset viewer.