Changeset 9380


Ignore:
Timestamp:
03/03/09 13:32:58 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9379 r9380  
    4949   * mhist/Makefile:
    5050     - removed accidental MHQuality
     51
     52   * mhist/MHCamera.cc:
     53     - fixed a warning when calling DistancetoPrimitive
     54
     55   * mgeom/MGeomCamSquare.cc:
     56     - accidentaly used Double_t instead of Short_t when calling
     57       SetNeighbors
    5158
    5259
  • trunk/MagicSoft/Mars/mgeom/MGeomCamSquare.cc

    r9369 r9380  
    9494            SetAt(idx, MGeomRectangle((0.5*nx-x)*diameter, (0.5*ny-y)*diameter, diameter));
    9595
    96             const Double_t n0 = x==nx-1 ? -1. : idx+ny;
    97             const Double_t n1 = x==0    ? -1. : idx-ny;
    98             const Double_t n2 = y==ny-1 ? -1. : idx+1;
    99             const Double_t n3 = y==0    ? -1. : idx-1;
     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;
    100100
    101             Double_t n[4] = { n0, n1, n2, n3 };
     101            Short_t n[4] = { n0, n1, n2, n3 };
    102102
    103103            // Sort -1's to the end
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r9374 r9380  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.120 2009-03-02 14:32:50 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCamera.cc,v 1.121 2009-03-03 13:32:00 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    20282028
    20292029    for (Int_t i=0; i<fNcells-2; i++)
    2030         if ((*fGeomCam)[i].DistancetoPrimitive(px*conv, py*conv)<=0)
     2030        if ((*fGeomCam)[i].DistancetoPrimitive(TMath::Nint(px*conv), TMath::Nint(py*conv))<=0)
    20312031            return i;
    20322032
Note: See TracChangeset for help on using the changeset viewer.