Loading [MathJax]/extensions/tex2jax.js
ROOT
6.08/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
2
3
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
2
3
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
v
x
+
Enumerations
a
d
e
f
g
h
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
u
v
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
graf3d
g3d
inc
TPGON.h
Go to the documentation of this file.
1
// @(#)root/g3d:$Id$
2
// Author: Nenad Buncic 29/09/95
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_TPGON
13
#define ROOT_TPGON
14
15
16
////////////////////////////////////////////////////////////////////////////
17
// //
18
// TPGON //
19
// //
20
// PGON is a polygone. It has at least 10 parameters, the lower phi limit,//
21
// the range in phi, the number of straight sides (of equal length) //
22
// between those phi limits, the number (at least two) of z planes where //
23
// the radius is changing for each z boundary and the z coordinate, the //
24
// minimum radius and the maximum radius. //
25
// //
26
////////////////////////////////////////////////////////////////////////////
27
28
#ifndef ROOT_TPCON
29
#include "
TPCON.h
"
30
#endif
31
32
class
TPGON
:
public
TPCON
{
33
protected
:
34
virtual
void
FillTableOfCoSin
(
Double_t
phi,
Double_t
angstep,
Int_t
n
)
const
;
// Fill the table of cosin
35
36
public
:
37
TPGON
();
38
TPGON
(
const
char
*
name
,
const
char
*title,
const
char
*material,
Float_t
phi1,
Float_t
dphi1,
39
Int_t
npdv,
Int_t
nz);
40
virtual
~TPGON
();
41
ClassDef
(
TPGON
,1)
//PGON shape
42
};
43
44
#endif
Float_t
float Float_t
Definition:
RtypesCore.h:53
TPGON::FillTableOfCoSin
virtual void FillTableOfCoSin(Double_t phi, Double_t angstep, Int_t n) const
Fill the table of cos and sin to prepare drawing.
Definition:
TPGON.cxx:71
Int_t
int Int_t
Definition:
RtypesCore.h:41
TPGON::~TPGON
virtual ~TPGON()
PGON shape default destructor.
Definition:
TPGON.cxx:64
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
TPCON
A polycone.
Definition:
TPCON.h:35
TPGON
A polygon.
Definition:
TPGON.h:32
TPCON.h
Double_t
double Double_t
Definition:
RtypesCore.h:55
n
const Int_t n
Definition:
legend1.C:16
name
char name[80]
Definition:
TGX11.cxx:109
TPGON::TPGON
TPGON()
PGON shape default constructor.
Definition:
TPGON.cxx:45