source: trunk/MagicSoft/Mars/mgui/MGeomPix.cc@ 724

Last change on this file since 724 was 715, checked in by tbretz, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 728 bytes
Line 
1#include "MGeomPix.h"
2
3#include "MLog.h"
4
5ClassImp(MGeomPix)
6
7MGeomPix::MGeomPix(Float_t x, Float_t y, Float_t r) : fX(x), fY(y), fR(r)
8{
9 // default constructor
10}
11
12void MGeomPix::SetNeighbors(Short_t i0, Short_t i1, Short_t i2,
13 Short_t i3, Short_t i4, Short_t i5)
14{
15 fNeighbors[0] = i0;
16 fNeighbors[1] = i1;
17 fNeighbors[2] = i2;
18 fNeighbors[3] = i3;
19 fNeighbors[4] = i4;
20 fNeighbors[5] = i5;
21
22 for (int i=0; i<6; i++)
23 if (fNeighbors[i]<0)
24 break;
25
26 fNumNeighbors = i;
27}
28
29
30void MGeomPix::Print(Option_t *opt)
31{
32 // information about a pixel
33 gLog << "MPixGeom: x= " << fX
34 << " y= " << fY
35 << " r= " << fR
36 << endl ;
37}
38
Note: See TracBrowser for help on using the repository browser.