Changeset 2470 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 11/04/03 17:08:27 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r2463 r2470 24 24 \* ======================================================================== */ 25 25 26 /////////////////////////////////////////////////////////////////////// 26 ///////////////////////////////////////////////////////////////////////////// 27 27 // 28 28 // MGeomCam … … 32 32 // interface of how to acccess the geometry information. 33 33 // 34 // We use a TObjArray for possible future usage (it is much more flexible 35 // than a TClonesArray so that it can store more types of pixels (eg 36 // fake pixels which are not really existing) 34 37 // 35 38 // Version 1: … … 42 45 // - added fPixRatioSqrt 43 46 // 44 // 45 /////////////////////////////////////////////////////////////////////// 47 ///////////////////////////////////////////////////////////////////////////// 46 48 #include "MGeomCam.h" 47 49 … … 57 59 using namespace std; 58 60 61 // -------------------------------------------------------------------------- 62 // 63 // Default Constructor 64 // 59 65 MGeomCam::MGeomCam() 60 66 : fNumPixels(0), fCamDist(0), fConvMm2Deg(0) … … 62 68 } 63 69 64 65 66 70 // -------------------------------------------------------------------------- 67 71 // … … 86 90 } 87 91 92 // -------------------------------------------------------------------------- 93 // 94 // Returns a reference of the i-th entry (the pixel with the software idx i) 95 // The access is unchecked (for speed reasons!) accesing non existing 96 // entries may crash the program! 97 // 88 98 MGeomPix &MGeomCam::operator[](Int_t i) 89 99 { … … 91 101 } 92 102 103 // -------------------------------------------------------------------------- 104 // 105 // Returns a reference of the i-th entry (the pixel with the software idx i) 106 // The access is unchecked (for speed reasons!) accesing non existing 107 // entries may crash the program! 108 // 93 109 MGeomPix &MGeomCam::operator[](Int_t i) const 94 110 { … … 208 224 } 209 225 226 // -------------------------------------------------------------------------- 227 // 228 // Create a clone of this container. This is very easy, because we 229 // simply have to create a new object of the same type. 230 // 210 231 TObject *MGeomCam::Clone(const char *newname) const 211 232 { -
trunk/MagicSoft/Mars/mgeom/MGeomPix.cc
r2463 r2470 45 45 // 46 46 // 47 // FIXME: According to an agreement we have to change the name 'Id' 48 // to 'idx' 47 // FIXME: According to an agreement we have to change the name 'Id' to 'idx' 49 48 // 50 49 //////////////////////////////////////////////////////////////////////////// … … 127 126 { 128 127 // information about a pixel 129 *fLog << all << "MPixGeom: x= " << fX 130 << " y= " << fY 131 << " d= " << fD 132 << " A= " << fA 133 << endl ; 128 *fLog << all << "MPixGeom: x= " << fX << "mm y= " << fY << "mm "; 129 *fLog << "d= " << fD << "mm A= " << fA << "mm²" << endl; 134 130 } 135
Note:
See TracChangeset
for help on using the changeset viewer.