- Timestamp:
- 03/03/09 13:36:28 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9380 r9382 56 56 - accidentaly used Double_t instead of Short_t when calling 57 57 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 58 61 59 62 -
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.