CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Parallelepiped.h
Go to the documentation of this file.
1 #ifndef DDI_Parallelepiped_h
2 #define DDI_Parallelepiped_h
3 
4 #include <iosfwd>
5 #include "Solid.h"
7 
8 namespace DDI {
9 
10  class Parallelepiped : public Solid
11  {
12  public:
13  Parallelepiped(double xHalf, double yHalf, double zHalf,
14  double alpha, double theta, double phi)
16  {
17  p_.push_back(xHalf);
18  p_.push_back(yHalf);
19  p_.push_back(zHalf);
20  p_.push_back(alpha);
21  p_.push_back(theta);
22  p_.push_back(phi);
23  }
25 
27  double volume() const ;
28  void stream(std::ostream & os) const;
29  };
30 
31 }
32 #endif // DDI_Parallelepiped_h
float alpha
Definition: AMPTWrapper.h:95
Geom::Theta< T > theta() const
Parallelepiped(double xHalf, double yHalf, double zHalf, double alpha, double theta, double phi)
void stream(std::ostream &os) const
std::vector< double > p_
Definition: Solid.h:32
double volume() const
Not as flexible and possibly less accurate than G4 volume.
Definition: DDAxes.h:10