CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PseudoTrap.h
Go to the documentation of this file.
1 #ifndef DDI_PseudoTrap_h
2 #define DDI_PseudoTrap_h
3 
4 #include <iostream>
5 #include "Solid.h"
6 
7 namespace DDI {
8 
9  class PseudoTrap : public Solid
10  {
11  public:
12  PseudoTrap(double x1, double x2, double y1, double y2, double z, double radius, bool minusZ)
14  {
15  p_.push_back(x1);
16  p_.push_back(x2);
17  p_.push_back(y1);
18  p_.push_back(y2);
19  p_.push_back(z);
20  p_.push_back(radius);
21  p_.push_back(minusZ);
22  }
23 
25 
26  double volume() const { return -1; }
27 
28  void stream(std::ostream & os) const;
29  };
30 
31 }
32 
33 #endif // DDI_PseudoTrap_h
double volume() const
Definition: PseudoTrap.h:26
float float float z
PseudoTrap(double x1, double x2, double y1, double y2, double z, double radius, bool minusZ)
Definition: PseudoTrap.h:12
void stream(std::ostream &os) const
Definition: PseudoTrap.cc:6
std::vector< double > p_
Definition: Solid.h:32