CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EllipticalTube.h
Go to the documentation of this file.
1 #ifndef DDI_EllipticalTube_h
2 #define DDI_EllipticalTube_h
3 
5 #include <iosfwd>
6 #include <vector>
7 
9 #include "Solid.h"
10 
11 namespace DDI {
12 
13  class EllipticalTube : public Solid
14  {
15  public:
16  EllipticalTube(double xSemiAxis, double ySemiAxis, double zHeight)
18  {
19  p_.push_back(xSemiAxis);
20  p_.push_back(ySemiAxis);
21  p_.push_back(zHeight);
22  }
24 
26  double volume() const ;
27  void stream(std::ostream & os) const;
28  };
29 
30 }
31 #endif // DDI_EllipticalTube_h
void stream(std::ostream &os) const
double volume() const
Not as flexible and possibly less accurate than G4 volume.
std::vector< double > p_
Definition: Solid.h:32
EllipticalTube(double xSemiAxis, double ySemiAxis, double zHeight)