Changeset 9382 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 03/03/09 13:36:28 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomCamSquare.cc
r9381 r9382 56 56 // CreateCam 57 57 // 58 MGeomCamSquare::MGeomCamSquare( UInt_t x, UInt_t y, Double_t diameter, Double_t dist, const char *name)58 MGeomCamSquare::MGeomCamSquare(Short_t x, Short_t y, Double_t diameter, Double_t dist, const char *name) 59 59 : MGeomCam(x*y, dist, name, "Geometry information of a square camera") 60 60 { … … 85 85 // This fills the geometry information from a table into the pixel objects. 86 86 // 87 void MGeomCamSquare::CreateCam( UInt_t nx, UInt_t ny, Double_t diameter)87 void MGeomCamSquare::CreateCam(Short_t nx, Short_t ny, Double_t diameter) 88 88 { 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++) 91 91 { 92 const UInt_t idx = x*ny+y;92 const Short_t idx = x*ny+y; 93 93 94 94 SetAt(idx, MGeomRectangle((0.5*nx-x)*diameter, (0.5*ny-y)*diameter, diameter));
Note:
See TracChangeset
for help on using the changeset viewer.