Changeset 963 for trunk/MagicSoft/Mars/mgui/MGeomCam.cc
- Timestamp:
- 10/16/01 10:42:09 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MGeomCam.cc
r749 r963 24 24 \* ======================================================================== */ 25 25 26 /////////////////////////////////////////////////////////////////////// 27 // 28 // MGeomCam 29 // 30 // This is the base class of different camera geometries. It creates 31 // a pixel object for a given number of pixels and defines the 32 // interface of how to acccess the geometry information. 33 // 34 /////////////////////////////////////////////////////////////////////// 35 26 36 #include "MGeomCam.h" 27 37 … … 29 39 #include "MHexagon.h" 30 40 31 ClassImp(MGeomCam) 41 ClassImp(MGeomCam); 32 42 43 // -------------------------------------------------------------------------- 44 // 45 // Initializes a Camera Geometry with npix pixels. All pixels 46 // are deleted when the corresponding array is deleted. 47 // 33 48 MGeomCam::MGeomCam(UInt_t npix, const char *name, const char *title) 34 49 { … … 48 63 } 49 64 50 void MGeomCam::Draw( Option_t * ) 51 { 52 // 53 // Draw the Camera 54 // 55 for (UInt_t i=0; i<fNumPixels; i++) 56 { 57 MHexagon *el = new MHexagon((*this)[i]); 58 el->Draw(); 59 } 60 } 61 65 // -------------------------------------------------------------------------- 66 // 67 // Prints the Geometry information of all pixels in the camera 68 // 62 69 void MGeomCam::Print(Option_t *) 63 70 { … … 65 72 // Print Information about the Geometry of the camera 66 73 // 67 *fLog << " Number of Pixels : " << fNumPixels << endl;74 *fLog << " Number of Pixels (" << GetTitle() << "): " << fNumPixels << endl; 68 75 69 for (UInt_t i=0; i<fNumPixels; i++ 76 for (UInt_t i=0; i<fNumPixels; i++) 70 77 { 71 78 *fLog << " Pixel: " << i << " "; 72 (*this)[i].Print() 79 (*this)[i].Print(); 73 80 } 74 81 }
Note:
See TracChangeset
for help on using the changeset viewer.