Changeset 2236 for trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
- Timestamp:
- 06/26/03 16:21:57 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r2234 r2236 97 97 // -------------------------------------------------------------------------- 98 98 // 99 // Calculate the highest sector index+1 of all pixels, please make sure 100 // the the sector numbers are continous. 101 // 102 void MGeomCam::CalcNumSectors() 103 { 104 fNumSectors = 0; 105 106 for (UInt_t i=0; i<fNumPixels; i++) 107 { 108 const MGeomPix &pix = (*this)[i]; 109 const UInt_t s = pix.GetSector(); 110 111 if (s>fNumSectors) 112 fNumSectors = s; 113 } 114 115 fNumSectors++; 116 } 117 118 // -------------------------------------------------------------------------- 119 // 99 120 // Calculate the maximum radius of the camera. This is ment for GUI layout. 100 121 //
Note:
See TracChangeset
for help on using the changeset viewer.