ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
TPARA.h
Go to the documentation of this file.
1
// @(#)root/g3d:$Id$
2
// Author: Nenad Buncic 19/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_TPARA
13
#define ROOT_TPARA
14
15
16
////////////////////////////////////////////////////////////////////////////
17
// //
18
// TPARA //
19
// //
20
// PARA is parallelepiped. It has 6 parameters, the half length in x, //
21
// the half length in y, the half length in z, the angle w.r.t. the y //
22
// axis from the centre of the low y edge to the centre of the high y //
23
// edge, and the theta phi polar angles from the centre of the low //
24
// z face to the centre of the high z face. //
25
// //
26
////////////////////////////////////////////////////////////////////////////
27
28
#include "
TBRIK.h
"
29
30
class
TPARA :
public
TBRIK {
31
protected
:
32
Float_t fAlpha;
// angle w.r.t. the y axis from the centre of the low y to the high y
33
Float_t fTheta;
// polar angle from the centre of the low z to the high z
34
Float_t fPhi;
// polar angle from the centre of the low z to the high z
35
36
virtual
void
SetPoints(Double_t *points)
const
;
37
38
public
:
39
TPARA();
40
TPARA(
const
char
*name,
const
char
*title,
const
char
*material, Float_t dx, Float_t dy, Float_t dz,
41
Float_t alpha, Float_t theta, Float_t phi);
42
virtual
~TPARA();
43
44
virtual
Float_t GetAlpha()
const
{
return
fAlpha;}
45
virtual
Float_t GetTheta()
const
{
return
fTheta;}
46
virtual
Float_t GetPhi()
const
{
return
fPhi;}
47
48
ClassDef(TPARA,1)
//PARA shape
49
};
50
51
#endif
TBRIK.h
graf3d
g3d
inc
TPARA.h
Generated on Tue May 5 2020 14:02:39 for ROOT by
1.8.5