CMS 3D CMS Logo

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 <vector>
6 
8 #include "Solid.h"
9 
10 namespace DDI {
11 
12  class PseudoTrap : public Solid
13  {
14  public:
15  PseudoTrap(double x1, double x2, double y1, double y2, double z, double radius, bool minusZ)
17  {
18  p_.push_back(x1);
19  p_.push_back(x2);
20  p_.push_back(y1);
21  p_.push_back(y2);
22  p_.push_back(z);
23  p_.push_back(radius);
24  p_.push_back(minusZ);
25  }
26 
28 
29  double volume() const { return -1; }
30 
31  void stream(std::ostream & os) const;
32  };
33 
34 }
35 
36 #endif // DDI_PseudoTrap_h
double volume() const
Definition: PseudoTrap.h:29
PseudoTrap(double x1, double x2, double y1, double y2, double z, double radius, bool minusZ)
Definition: PseudoTrap.h:15
void stream(std::ostream &os) const
Definition: PseudoTrap.cc:8
std::vector< double > p_
Definition: Solid.h:32