Changeset 2135 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 05/23/03 17:30:31 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r2037 r2135 102 102 const Float_t x = pix.GetX(); 103 103 const Float_t y = pix.GetY(); 104 const Float_t r = pix.GetR();104 const Float_t d = pix.GetD(); 105 105 106 const Float_t maxr = sqrt(x*x+y*y) + r;106 const Float_t maxr = sqrt(x*x+y*y) + d; 107 107 108 108 if (maxr>fMaxRadius) -
trunk/MagicSoft/Mars/mgeom/MGeomCam.h
r1965 r2135 42 42 MGeomPix &operator[](Int_t i) const { return *(MGeomPix*)fPixels->UncheckedAt(i); } 43 43 44 45 46 44 virtual void Print(Option_t *opt=NULL) const; 47 45 -
trunk/MagicSoft/Mars/mgeom/MGeomCamMagic.cc
r2037 r2135 222 222 }; 223 223 224 const Float_t rtemp[577] = {224 const Float_t dtemp[577] = { 225 225 30.00, 30.00, 30.00, 30.00, 30.00, 30.00, 30.00, 30.00, // 0 226 226 30.00, 30.00, 30.00, 30.00, 30.00, 30.00, 30.00, 30.00, // 8 … … 302 302 303 303 for (UInt_t i=0; i<GetNumPixels(); i++) 304 (*this)[i].Set(xtemp[i], ytemp[i], rtemp[i]) ;304 (*this)[i].Set(xtemp[i], ytemp[i], dtemp[i]) ; 305 305 } 306 306 … … 892 892 }; 893 893 894 for (Int_t i=0; i<577; i++)895 (*this)[i].SetNeighbors(nn[i][0], nn[i][1], nn[i][2],896 nn[i][3], nn[i][4], nn[i][5]);897 898 InitOuterRing();894 for (Int_t i=0; i<577; i++) 895 (*this)[i].SetNeighbors(nn[i][0], nn[i][1], nn[i][2], 896 nn[i][3], nn[i][4], nn[i][5]); 897 898 InitOuterRing(); 899 899 } -
trunk/MagicSoft/Mars/mgeom/MGeomPix.cc
r1640 r2135 52 52 // Initializes one pixel 53 53 // 54 MGeomPix::MGeomPix(Float_t x, Float_t y, Float_t r) : fX(x), fY(y), f R(r)54 MGeomPix::MGeomPix(Float_t x, Float_t y, Float_t r) : fX(x), fY(y), fD(r) 55 55 { 56 56 // default constructor … … 63 63 Float_t MGeomPix::GetA() const 64 64 { 65 return f R*fR*tan(60/kRad2Deg);65 return fD*fD*tan(60/kRad2Deg); 66 66 } 67 67 … … 121 121 *fLog << all << "MPixGeom: x= " << fX 122 122 << " y= " << fY 123 << " r= " << fR123 << " d= " << fD 124 124 << endl ; 125 125 } -
trunk/MagicSoft/Mars/mgeom/MGeomPix.h
r1459 r2135 20 20 Float_t fX; // [mm] the x coordinate of the center 21 21 Float_t fY; // [mm] the y coordinate of the center 22 Float_t f R; // [mm] the rcoordinate of the pixel (dist between two parallel sides)22 Float_t fD; // [mm] the d coordinate of the pixel (dist between two parallel sides) 23 23 24 24 Byte_t fNumNeighbors; // number of valid neighbors … … 26 26 27 27 public: 28 MGeomPix(Float_t x=0, Float_t y=0, Float_t r=0);28 MGeomPix(Float_t x=0, Float_t y=0, Float_t d=0); 29 29 30 30 void Print(Option_t *opt=NULL) const; 31 31 32 void Set(Float_t x, Float_t y, Float_t r) { fX=x; fY=y; fR=r; }32 void Set(Float_t x, Float_t y, Float_t d) { fX=x; fY=y; fD=d; } 33 33 34 34 void SetNeighbors(Short_t i0=-1, Short_t i1=-1, Short_t i2=-1, … … 39 39 void SetX(Float_t x) { fX = x; } 40 40 void SetY(Float_t y) { fY = y; } 41 void Set R(Float_t r) { fR = r; }41 void SetD(Float_t d) { fD = d; } 42 42 43 43 Float_t GetX() const { return fX; } 44 44 Float_t GetY() const { return fY; } 45 Float_t Get R() const { return fR; }45 Float_t GetD() const { return fD; } 46 46 47 47 Float_t GetA() const;
Note:
See TracChangeset
for help on using the changeset viewer.