Changeset 9382 for trunk/MagicSoft


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9380 r9382  
    5656     - accidentaly used Double_t instead of Short_t when calling
    5757       SetNeighbors
     58     - changed number of pixels from UInt_t to Short_t. It doesn't make
     59       sense to support more pixels than we can store as index for
     60       neighbors
    5861
    5962
  • trunk/MagicSoft/Mars/mgeom/MGeomCamSquare.cc

    r9381 r9382  
    5656//  CreateCam
    5757//
    58 MGeomCamSquare::MGeomCamSquare(UInt_t x, UInt_t y, Double_t diameter, Double_t dist, const char *name)
     58MGeomCamSquare::MGeomCamSquare(Short_t x, Short_t y, Double_t diameter, Double_t dist, const char *name)
    5959    : MGeomCam(x*y, dist, name, "Geometry information of a square camera")
    6060{
     
    8585//  This fills the geometry information from a table into the pixel objects.
    8686//
    87 void MGeomCamSquare::CreateCam(UInt_t nx, UInt_t ny, Double_t diameter)
     87void MGeomCamSquare::CreateCam(Short_t nx, Short_t ny, Double_t diameter)
    8888{
    89     for (UInt_t x=0; x<nx; x++)
    90         for (UInt_t y=0; y<ny; y++)
     89    for (Short_t x=0; x<nx; x++)
     90        for (Short_t y=0; y<ny; y++)
    9191        {
    92             const UInt_t idx = x*ny+y;
     92            const Short_t idx = x*ny+y;
    9393
    9494            SetAt(idx, MGeomRectangle((0.5*nx-x)*diameter, (0.5*ny-y)*diameter, diameter));
Note: See TracChangeset for help on using the changeset viewer.