CMS 3D CMS Logo

Polyhedra.h
Go to the documentation of this file.
1 #ifndef DDI_Polyhedra_h
2 #define DDI_Polyhedra_h
3 
4 #include <iosfwd>
5 #include <vector>
6 
7 #include "Solid.h"
8 
9 namespace DDI {
10 
11  class Polyhedra : public Solid {
12  public:
13  Polyhedra(int sides,
14  double startPhi,
15  double deltaPhi,
16  const std::vector<double> &z,
17  const std::vector<double> &rmin,
18  const std::vector<double> &rmax);
19 
20  Polyhedra(int sides, double startPhi, double deltaPhi, const std::vector<double> &z, const std::vector<double> &r);
21 
22  double volume() const override;
23  void stream(std::ostream &) const override;
24  };
25 } // namespace DDI
26 #endif // DDI_Polyhedra_h
Definition: Assembly.h:7
Polyhedra(int sides, double startPhi, double deltaPhi, const std::vector< double > &z, const std::vector< double > &rmin, const std::vector< double > &rmax)
Definition: Polyhedra.cc:19
double volume() const override
Definition: Polyhedra.cc:56
void stream(std::ostream &) const override
Definition: Polyhedra.cc:164