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

Last change on this file since 855 was 749, checked in by tbretz, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1/* ======================================================================== *\
2!
3! *
4! * This file is part of MARS, the MAGIC Analysis and Reconstruction
5! * Software. It is distributed to you in the hope that it can be a useful
6! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
7! * It is distributed WITHOUT ANY WARRANTY.
8! *
9! * Permission to use, copy, modify and distribute this software and its
10! * documentation for any purpose is hereby granted without fee,
11! * provided that the above copyright notice appear in all copies and
12! * that both that copyright notice and this permission notice appear
13! * in supporting documentation. It is provided "as is" without express
14! * or implied warranty.
15! *
16!
17!
18! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)
19! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)
20!
21! Copyright: MAGIC Software Development, 2000-2001
22!
23!
24\* ======================================================================== */
25
26#include "MGeomPix.h"
27
28#include "MLog.h"
29
30ClassImp(MGeomPix)
31
32MGeomPix::MGeomPix(Float_t x, Float_t y, Float_t r) : fX(x), fY(y), fR(r)
33{
34 // default constructor
35}
36
37void MGeomPix::SetNeighbors(Short_t i0, Short_t i1, Short_t i2,
38 Short_t i3, Short_t i4, Short_t i5)
39{
40 fNeighbors[0] = i0;
41 fNeighbors[1] = i1;
42 fNeighbors[2] = i2;
43 fNeighbors[3] = i3;
44 fNeighbors[4] = i4;
45 fNeighbors[5] = i5;
46
47 int i;
48 for (i=0; i<6; i++)
49 if (fNeighbors[i]<0)
50 break;
51
52 fNumNeighbors = i;
53}
54
55
56void MGeomPix::Print(Option_t *opt)
57{
58 // information about a pixel
59 gLog << "MPixGeom: x= " << fX
60 << " y= " << fY
61 << " r= " << fR
62 << endl ;
63}
64
Note: See TracBrowser for help on using the repository browser.