Changeset 1048 for trunk/MagicSoft/Mars/mgui
- Timestamp:
- 11/07/01 11:50:28 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MGeomCam.cc
r1027 r1048 36 36 #include "MGeomCam.h" 37 37 38 #include <TObjArray.h>39 40 38 #include "MLog.h" 41 39 #include "MGeomPix.h" … … 73 71 { 74 72 delete fPixels; 75 }76 77 // --------------------------------------------------------------------------78 //79 // Return the i-th pixel object80 //81 MGeomPix &MGeomCam::operator[](Int_t i)82 {83 return *(MGeomPix*)fPixels->At(i);84 }85 86 // --------------------------------------------------------------------------87 //88 // Return the i-th pixel object89 //90 MGeomPix &MGeomCam::operator[](Int_t i) const91 {92 return *(MGeomPix*)fPixels->At(i);93 73 } 94 74 -
trunk/MagicSoft/Mars/mgui/MGeomCam.h
r1015 r1048 5 5 #include "MParContainer.h" 6 6 #endif 7 #ifndef ROOT_TObjArray 8 #include "TObjArray.h" 9 #endif 7 10 8 11 class MGeomPix; 9 class TObjArray;10 12 11 13 class MGeomCam : public MParContainer … … 29 31 Float_t GetMaxRadius() const { return fMaxRadius; } 30 32 31 MGeomPix &operator[](Int_t i) ;32 MGeomPix &operator[](Int_t i) const ;33 MGeomPix &operator[](Int_t i) { return *(MGeomPix*)fPixels->UncheckedAt(i); } 34 MGeomPix &operator[](Int_t i) const { return *(MGeomPix*)fPixels->UncheckedAt(i); } 33 35 34 36 virtual void Print(Option_t *opt=NULL) const;
Note:
See TracChangeset
for help on using the changeset viewer.