| Line | |
|---|
| 1 | #ifndef MARS_MHexagon
|
|---|
| 2 | #define MARS_MHexagon
|
|---|
| 3 |
|
|---|
| 4 | //////////////////////////////////////////////////////////////
|
|---|
| 5 | //
|
|---|
| 6 | // MHexagon
|
|---|
| 7 | //
|
|---|
| 8 | // A Hexagon for the MAGIC event display
|
|---|
| 9 | //
|
|---|
| 10 | //////////////////////////////////////////////////////////////
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MARS_MAGIC
|
|---|
| 13 | #include "MAGIC.h"
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | #ifndef ROOT_TObject
|
|---|
| 17 | #include <TObject.h>
|
|---|
| 18 | #endif
|
|---|
| 19 |
|
|---|
| 20 | #ifndef ROOT_TAttLine
|
|---|
| 21 | #include <TAttLine.h>
|
|---|
| 22 | #endif
|
|---|
| 23 |
|
|---|
| 24 | #ifndef ROOT_TAttFill
|
|---|
| 25 | #include <TAttFill.h>
|
|---|
| 26 | #endif
|
|---|
| 27 |
|
|---|
| 28 | class MGeomPix;
|
|---|
| 29 |
|
|---|
| 30 | class MHexagon : public TObject, public TAttLine, public TAttFill
|
|---|
| 31 | {
|
|---|
| 32 | protected:
|
|---|
| 33 |
|
|---|
| 34 | Float_t fX; // X coordinate of center
|
|---|
| 35 | Float_t fY; // Y coordinate of center
|
|---|
| 36 | Float_t fD; // diameter D or better distance between opposite sides
|
|---|
| 37 |
|
|---|
| 38 | public:
|
|---|
| 39 |
|
|---|
| 40 | MHexagon();
|
|---|
| 41 | MHexagon(Float_t x, Float_t y, Float_t d);
|
|---|
| 42 | MHexagon(MGeomPix &pix);
|
|---|
| 43 | MHexagon(const MHexagon &hexagon);
|
|---|
| 44 | virtual ~MHexagon();
|
|---|
| 45 |
|
|---|
| 46 | virtual void Copy(TObject &hexagon);
|
|---|
| 47 |
|
|---|
| 48 | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
|
|---|
| 49 | virtual void DrawHexagon(Float_t x, Float_t y, Float_t d);
|
|---|
| 50 |
|
|---|
| 51 | //virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
|
|---|
| 52 |
|
|---|
| 53 | virtual void ls(const Option_t *Option="") const;
|
|---|
| 54 | virtual void Paint(Option_t *Option="");
|
|---|
| 55 | virtual void PaintHexagon(Float_t x, Float_t y, Float_t d);
|
|---|
| 56 | virtual void Print(Option_t *Option="") const; // *MENU*
|
|---|
| 57 | virtual void SavePrimitive(ofstream &out, Option_t *);
|
|---|
| 58 |
|
|---|
| 59 | ClassDef(MHexagon, 0) // A hexagon for MAGIC
|
|---|
| 60 | };
|
|---|
| 61 |
|
|---|
| 62 | #endif
|
|---|
| 63 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.