CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DetectorDescription/Core/src/Parallelepiped.h

Go to the documentation of this file.
00001 #ifndef DDI_Parallelepiped_h
00002 #define DDI_Parallelepiped_h
00003 
00004 #include <iosfwd>
00005 #include "Solid.h"
00006 #include <DataFormats/GeometryVector/interface/Pi.h>
00007 
00008 namespace DDI {
00009 
00010   class Parallelepiped : public Solid
00011   {
00012   public:
00013     Parallelepiped(double xHalf, double yHalf, double zHalf,
00014                    double alpha, double theta, double phi)
00015      : Solid(ddparallelepiped)
00016     { 
00017       p_.push_back(xHalf);
00018       p_.push_back(yHalf);
00019       p_.push_back(zHalf);
00020       p_.push_back(alpha);
00021       p_.push_back(theta);
00022       p_.push_back(phi);
00023     }  
00024     ~Parallelepiped() { }
00025 
00027     double volume() const ;
00028     void stream(std::ostream & os) const;
00029   };
00030 
00031 }
00032 #endif // DDI_Parallelepiped_h