Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Sphe Class Reference

Segment of a sphere defined by inner and outer radii and azimuthal and polar angle limits. More...

#include <Sphe.h>

Inheritance diagram for Sphe:

Volume Shape SurfaceList GeomObject List of all members.

Public Methods

 Sphe ( double ri, double ro, double th1=0, double th2=M_PI, double ph1=0, double ph2=2*M_PI )
 constructor: inner, outer radii; limits in theta, phi (defaults: full solid angle). More...

double innerRadius () const
double outerRadius () const
double theta1 () const
double theta2 () const
double phi1 () const
double phi2 () const
int fullAzimuth () const
int fullPolar () const
virtual const char* nameOf () const
 makes name available to subclasses using the type info facility. More...

virtual void printOn ( std::ostream& os = std::cout ) const
 print info about this object. More...


Private Attributes

double inner_radius
double outer_radius
double theta_1
double theta_2
double phi_1
double phi_2
int full_azimuth
int full_polar

Detailed Description

Segment of a sphere defined by inner and outer radii and azimuthal and polar angle limits.

It is not clear if this Sphe is the same as the GEANT volume of the same name.

Definition at line 18 of file Sphe.h.


Constructor & Destructor Documentation

Sphe::Sphe ( double ri,
double ro,
double th1 = 0,
double th2 = M_PI,
double ph1 = 0,
double ph2 = 2*M_PI )
 

constructor: inner, outer radii; limits in theta, phi (defaults: full solid angle).

Definition at line 9 of file Sphe.cxx.


Member Function Documentation

int Sphe::fullAzimuth ( ) const
 

int Sphe::fullPolar ( ) const
 

double Sphe::innerRadius ( ) const [inline]
 

Definition at line 28 of file Sphe.h.

Referenced by printOn().

const char * Sphe::nameOf ( ) const [inline, virtual]
 

makes name available to subclasses using the type info facility.

Reimplemented from GeomObject.

Definition at line 40 of file Sphe.h.

double Sphe::outerRadius ( ) const [inline]
 

Definition at line 29 of file Sphe.h.

Referenced by printOn().

double Sphe::phi1 ( ) const [inline]
 

Definition at line 32 of file Sphe.h.

Referenced by printOn().

double Sphe::phi2 ( ) const [inline]
 

Definition at line 33 of file Sphe.h.

Referenced by printOn().

void Sphe::printOn ( std::ostream & os = std::cout ) const [virtual]
 

print info about this object.

Reimplemented from Volume.

Definition at line 47 of file Sphe.cxx.

double Sphe::theta1 ( ) const [inline]
 

Definition at line 30 of file Sphe.h.

Referenced by printOn().

double Sphe::theta2 ( ) const [inline]
 

Definition at line 31 of file Sphe.h.

Referenced by printOn().


Member Data Documentation

int Sphe::full_azimuth [private]
 

Definition at line 60 of file Sphe.h.

int Sphe::full_polar [private]
 

Definition at line 62 of file Sphe.h.

double Sphe::inner_radius [private]
 

Definition at line 43 of file Sphe.h.

double Sphe::outer_radius [private]
 

Definition at line 44 of file Sphe.h.

double Sphe::phi_1 [private]
 

Definition at line 52 of file Sphe.h.

double Sphe::phi_2 [private]
 

Definition at line 55 of file Sphe.h.

double Sphe::theta_1 [private]
 

Definition at line 46 of file Sphe.h.

double Sphe::theta_2 [private]
 

Definition at line 49 of file Sphe.h.


The documentation for this class was generated from the following files:
Generated at Mon Nov 26 18:18:25 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000