CMS 3D CMS Logo

PseudoTrap.h

Go to the documentation of this file.
00001 #ifndef DDI_PseudoTrap_h
00002 #define DDI_PseudoTrap_h
00003 
00004 #include <iostream>
00005 #include "Solid.h"
00006 
00007 namespace DDI {
00008 
00009   class PseudoTrap : public Solid
00010   {
00011   public:
00012     PseudoTrap(double x1, double x2, double y1, double y2, double z, double radius, bool minusZ)
00013      : Solid(ddpseudotrap)
00014      {
00015        p_.push_back(x1);
00016        p_.push_back(x2);
00017        p_.push_back(y1);
00018        p_.push_back(y2);
00019        p_.push_back(z);
00020        p_.push_back(radius);
00021        p_.push_back(minusZ);
00022      }
00023     
00024     ~PseudoTrap(){ }
00025     
00026     double volume() { return -1; }
00027     
00028     void stream(std::ostream & os) const;
00029   };
00030    
00031 }
00032 
00033 #endif // DDI_PseudoTrap_h

Generated on Tue Jun 9 17:32:21 2009 for CMSSW by  doxygen 1.5.4