BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
BesCircle2D.h
Go to the documentation of this file.
1//
2// BesCircle2D.h
3//
4// $Author: tianhl $
5// 2005/7/16
6// Modified from zevis 2D shape
7
8#ifndef BESCIRCLE2D_H
9#define BESCIRCLE2D_H
10
11#ifndef ROOT_TNamed
12#include <TNamed.h>
13#endif
14#ifndef ROOT_TAttLine
15#include <TAttLine.h>
16#endif
17#ifndef ROOT_TAttFill
18#include <TAttFill.h>
19#endif
20
21class TString;
22class TView;
23class TPad;
24
25class BesCircle2D : public TNamed, public TAttLine, public TAttFill {
26
27private:
28 Double_t *f_innerCircleX;
29 Double_t *f_innerCircleY;
30 Double_t *f_outerCircleX;
31 Double_t *f_outerCircleY;
32 Double_t *f_areaX;
33 Double_t *f_areaY;
34 Double_t *fInnerRadius; //[3] inner Radius of circle
35 Double_t *fOuterRadius; //[3] outer Radius of circle
36 Double_t *fCenter; //[3] center of circle
37 Int_t fNSegment;
38
39public:
41 BesCircle2D(const char* name, const char* title, Double_t innerRadius, Double_t outerRadius, Double_t *center);
42 virtual ~BesCircle2D();
43
44 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
45 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
46 virtual void Draw(Option_t *option = "");
47 virtual void Paint(Option_t *option = "");
48 virtual char *GetObjectInfo(Int_t px, Int_t py) const;
49
50 virtual void SetCenter(Double_t x, Double_t y, Double_t z);
51 virtual void GetCenter(Double_t *center);
52 virtual void SetNSegment(Int_t np) {
53 fNSegment = np;
54 }
55
56 ClassDef(BesCircle2D,2) // Circle in 2D
57};
58
59#endif
virtual void Paint(Option_t *option="")
virtual void SetNSegment(Int_t np)
Definition: BesCircle2D.h:52
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Definition: BesCircle2D.cxx:81
virtual void SetCenter(Double_t x, Double_t y, Double_t z)
virtual char * GetObjectInfo(Int_t px, Int_t py) const
virtual ~BesCircle2D()
Definition: BesCircle2D.cxx:69
virtual void GetCenter(Double_t *center)
c1_1 Draw()