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

Trd1 Class Reference

Trd1 is the same as the GEANT volume of the same name, but note that GEANT uses half-lengths as parameters, whereas we full lengths. More...

#include <Trd1.h>

Inheritance diagram for Trd1:

Hexahedron Volume Shape SurfaceList GeomObject List of all members.

Public Methods

 Trd1 ( double shortLength, double longLength, double width, double height )
 constructor: shortLength and longLength along x-axis, width along y-axis, and height along z-axis. More...

double shortLength () const
double longLength () const
double width () const
double height () 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...


Detailed Description

Trd1 is the same as the GEANT volume of the same name, but note that GEANT uses half-lengths as parameters, whereas we full lengths.

A Trd1 has a List of 4 Rectangles and 2 Trapezoids which bound it. As with GEANT, the Trapezoids are in the x-z plane.

Definition at line 16 of file Trd1.h.


Constructor & Destructor Documentation

Trd1::Trd1 ( double sl,
double ll,
double w,
double h )
 

constructor: shortLength and longLength along x-axis, width along y-axis, and height along z-axis.

Definition at line 7 of file Trd1.cxx.


Member Function Documentation

double Trd1::height ( ) const
 

Definition at line 43 of file Trd1.cxx.

Referenced by printOn().

double Trd1::longLength ( ) const
 

Definition at line 41 of file Trd1.cxx.

Referenced by printOn().

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

makes name available to subclasses using the type info facility.

Reimplemented from GeomObject.

Definition at line 30 of file Trd1.h.

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

print info about this object.

Reimplemented from Volume.

Definition at line 45 of file Trd1.cxx.

double Trd1::shortLength ( ) const
 

Definition at line 40 of file Trd1.cxx.

Referenced by printOn().

double Trd1::width ( ) const
 

Definition at line 42 of file Trd1.cxx.

Referenced by printOn().


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:14 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000