CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DetectorDescription/Core/src/Orb.h

Go to the documentation of this file.
00001 #ifndef DDI_Orb_h
00002 #define DDI_Orb_h
00003 
00004 #include <iosfwd>
00005 #include "Solid.h"
00006 #include <DataFormats/GeometryVector/interface/Pi.h>
00007 
00008 namespace DDI {
00009 
00010   class Orb : public Solid
00011   {
00012   public:
00013     Orb(double rMax)
00014      : Solid(ddorb)
00015     { 
00016       p_.push_back(rMax);
00017     }  
00018     ~Orb() { }
00019     
00020     double volume() const { return (4.*Geom::pi()*p_[0]*p_[0]*p_[0])/3.; }
00021     void stream(std::ostream & os) const;
00022   };
00023 
00024 }
00025 #endif // DDI_Orb_h