Ignore:
Timestamp:
03/04/09 18:46:07 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgeom/MGeomCamSquare.cc

    r9382 r9385  
    8989    for (Short_t x=0; x<nx; x++)
    9090        for (Short_t y=0; y<ny; y++)
    91         {
    92             const Short_t idx = x*ny+y;
    93 
    94             SetAt(idx, MGeomRectangle((0.5*nx-x)*diameter, (0.5*ny-y)*diameter, diameter));
    95 
    96             const Short_t n0 = x==nx-1 ? -1 : idx+ny;
    97             const Short_t n1 = x==0    ? -1 : idx-ny;
    98             const Short_t n2 = y==ny-1 ? -1 : idx+1;
    99             const Short_t n3 = y==0    ? -1 : idx-1;
    100 
    101             Short_t n[4] = { n0, n1, n2, n3 };
    102 
    103             // Sort -1's to the end
    104             MMath::ReSort(4, n, kTRUE);
    105 
    106             (*this)[idx].SetNeighbors(n[0], n[1], n[2], n[3]);
    107         }
     91            SetAt(x*ny+y, MGeomRectangle((0.5*nx-x)*diameter, (0.5*ny-y)*diameter, diameter));
    10892}
Note: See TracChangeset for help on using the changeset viewer.