CMS 3D CMS Logo

Public Member Functions

DDI::Orb Class Reference

#include <Orb.h>

Inheritance diagram for DDI::Orb:
DDI::Solid

List of all members.

Public Member Functions

 Orb (double rMax)
void stream (std::ostream &os) const
double volume () const
 ~Orb ()

Detailed Description

Definition at line 10 of file Orb.h.


Constructor & Destructor Documentation

DDI::Orb::Orb ( double  rMax) [inline]

Definition at line 13 of file Orb.h.

References DDI::Solid::p_.

     : Solid(ddorb)
    { 
      p_.push_back(rMax);
    }  
DDI::Orb::~Orb ( ) [inline]

Definition at line 18 of file Orb.h.

{ }

Member Function Documentation

void DDI::Orb::stream ( std::ostream &  os) const [virtual]

Reimplemented from DDI::Solid.

Definition at line 5 of file Orb.cc.

References DDI::Solid::p_.

{
  os << " radius[cm]=" << p_[0]/cm;
}
double DDI::Orb::volume ( ) const [inline, virtual]

Reimplemented from DDI::Solid.

Definition at line 20 of file Orb.h.

References DDI::Solid::p_, and Geom::pi().

{ return (4.*Geom::pi()*p_[0]*p_[0]*p_[0])/3.; }