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 
4 #include <iosfwd>
5 #include "Solid.h"
7 
8 namespace DDI {
9 
10  class EllipticalTube : public Solid
11  {
12  public:
13  EllipticalTube(double xSemiAxis, double ySemiAxis, double zHeight)
15  {
16  p_.push_back(xSemiAxis);
17  p_.push_back(ySemiAxis);
18  p_.push_back(zHeight);
19  }
21 
23  double volume() const ;
24  void stream(std::ostream & os) const;
25  };
26 
27 }
28 #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)