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

Trd2 Class Reference

A Trd2 is a list of 2 Rectangles and 4 Trapezoids which bound it. More...

#include <Trd2.h>

Inheritance diagram for Trd2:

Hexahedron Volume Shape SurfaceList GeomObject List of all members.

Public Methods

 Trd2 ( double sl, double ll, double sw, double lw, double h )
double shortLength () const
double longLength () const
double longWidth () const
double height () const
double shortWidth () 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

A Trd2 is a list of 2 Rectangles and 4 Trapezoids which bound it.

As with GEANT, the Rectangles are in the x-y plane.

Definition at line 12 of file Trd2.h.


Constructor & Destructor Documentation

Trd2::Trd2 ( double sl,
double ll,
double sw,
double lw,
double h )
 

Definition at line 7 of file Trd2.cxx.


Member Function Documentation

double Trd2::height ( ) const
 

Definition at line 49 of file Trd2.cxx.

Referenced by printOn().

double Trd2::longLength ( ) const
 

Definition at line 46 of file Trd2.cxx.

Referenced by printOn().

double Trd2::longWidth ( ) const
 

Definition at line 48 of file Trd2.cxx.

Referenced by printOn().

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

makes name available to subclasses using the type info facility.

Reimplemented from GeomObject.

Definition at line 26 of file Trd2.h.

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

print info about this object.

Reimplemented from Volume.

Definition at line 52 of file Trd2.cxx.

double Trd2::shortLength ( ) const
 

Definition at line 45 of file Trd2.cxx.

Referenced by printOn().

double Trd2::shortWidth ( ) const
 

Definition at line 47 of file Trd2.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