Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-04 02:02:25

0001 #ifndef DDI_Polyhedra_h
0002 #define DDI_Polyhedra_h
0003 
0004 #include <iosfwd>
0005 #include <vector>
0006 
0007 #include "Solid.h"
0008 
0009 namespace DDI {
0010 
0011   class Polyhedra : public Solid {
0012   public:
0013     Polyhedra(int sides,
0014               double startPhi,
0015               double deltaPhi,
0016               const std::vector<double> &z,
0017               const std::vector<double> &rmin,
0018               const std::vector<double> &rmax);
0019 
0020     Polyhedra(int sides, double startPhi, double deltaPhi, const std::vector<double> &z, const std::vector<double> &r);
0021 
0022     double volume() const override;
0023     void stream(std::ostream &) const override;
0024   };
0025 }  // namespace DDI
0026 #endif  // DDI_Polyhedra_h