Last change
on this file since 744 was 729, checked in by tbretz, 24 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
735 bytes
|
Line | |
---|
1 | #include "MGeomPix.h"
|
---|
2 |
|
---|
3 | #include "MLog.h"
|
---|
4 |
|
---|
5 | ClassImp(MGeomPix)
|
---|
6 |
|
---|
7 | MGeomPix::MGeomPix(Float_t x, Float_t y, Float_t r) : fX(x), fY(y), fR(r)
|
---|
8 | {
|
---|
9 | // default constructor
|
---|
10 | }
|
---|
11 |
|
---|
12 | void 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 | int i;
|
---|
23 | for (i=0; i<6; i++)
|
---|
24 | if (fNeighbors[i]<0)
|
---|
25 | break;
|
---|
26 |
|
---|
27 | fNumNeighbors = i;
|
---|
28 | }
|
---|
29 |
|
---|
30 |
|
---|
31 | void MGeomPix::Print(Option_t *opt)
|
---|
32 | {
|
---|
33 | // information about a pixel
|
---|
34 | gLog << "MPixGeom: x= " << fX
|
---|
35 | << " y= " << fY
|
---|
36 | << " r= " << fR
|
---|
37 | << endl ;
|
---|
38 | }
|
---|
39 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.