Changeset 7346 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 09/09/05 19:24:18 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r7345 r7346 67 67 // -------------------------------------------------------------------------- 68 68 // 69 // Default Constructor 70 /* 71 MGeomCam::MGeomCam() 72 : fNumPixels(0), fCamDist(0), fConvMm2Deg(0), fMaxRadius(1), fMinRadius(1) 73 { 74 fName = "MGeomCam"; 75 fTitle = "Storage container for a camera geometry"; 76 } 77 */ 78 // -------------------------------------------------------------------------- 79 // 80 // Initializes a Camera Geometry with npix pixels. All pixels 81 // are deleted when the corresponding array is deleted. 69 // Default Constructor. Initializes a Camera Geometry with npix pixels. All 70 // pixels are deleted when the corresponding array is deleted. 82 71 // 83 72 MGeomCam::MGeomCam(UInt_t npix, Float_t dist, const char *name, const char *title) … … 141 130 // -------------------------------------------------------------------------- 142 131 // 143 // Returns the distance between the pixels i and j. -1 if an index144 // doesn't exist. The default for j is 0. Assuming that 0 is the index145 // for a central pixel you can get the distance to the camera center.146 //147 Float_t MGeomCam::GetDist(UShort_t i, UShort_t j) const148 {149 if (i>=fNumPixels || j>=fNumPixels)150 return -1;151 152 return (*this)[i].GetDist((*this)[j]);153 }154 155 // --------------------------------------------------------------------------156 //157 132 // Set the kIsOuterRing flag for all pixels which have a outermost pixel 158 133 // as Next Neighbor and don't have the kIsOutermostRing flag itself. … … 244 219 fMaxRadius[0] = maxr; 245 220 } 221 } 222 223 // -------------------------------------------------------------------------- 224 // 225 // Returns the distance between the pixels i and j. -1 if an index 226 // doesn't exist. The default for j is 0. Assuming that 0 is the index 227 // for a central pixel you can get the distance to the camera center. 228 // 229 Float_t MGeomCam::GetDist(UShort_t i, UShort_t j) const 230 { 231 if (i>=fNumPixels || j>=fNumPixels) 232 return -1; 233 234 return (*this)[i].GetDist((*this)[j]); 246 235 } 247 236 -
trunk/MagicSoft/Mars/mgeom/MGeomCam.h
r7342 r7346 35 35 36 36 protected: 37 38 37 void CalcMaxRadius(); 39 38 void CalcNumSectors(); … … 41 40 void InitOuterRing(); 42 41 43 44 42 public: 45 //MGeomCam();46 43 MGeomCam(UInt_t npix=0, Float_t dist=1, const char *name=NULL, const char *title=NULL); 47 44 … … 70 67 71 68 Float_t GetDist(UShort_t i, UShort_t j=0) const; 72 69 73 70 UInt_t GetNumSectors() const { return fNumSectors; } 74 71 UInt_t GetNumAreas() const { return fNumAreas; } -
trunk/MagicSoft/Mars/mgeom/MGeomPix.cc
r7342 r7346 103 103 fNumNeighbors = i; 104 104 105 if (fNumNeighbors<5) 106 SetBit(kIsInOutermostRing); 105 fNumNeighbors<5 ? SetBit(kIsInOutermostRing) : ResetBit(kIsInOutermostRing); 107 106 } 108 107 … … 116 115 if (IsInOutermostRing()) 117 116 return; 117 118 ResetBit(kIsInOuterRing); 118 119 119 120 for (int i=0; i<fNumNeighbors; i++)
Note:
See TracChangeset
for help on using the changeset viewer.