CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
DDI::PseudoTrap Class Reference

#include <PseudoTrap.h>

Inheritance diagram for DDI::PseudoTrap:
DDI::Solid

Public Member Functions

 PseudoTrap (double x1, double x2, double y1, double y2, double z, double radius, bool minusZ)
 
void stream (std::ostream &os) const
 
double volume () const
 
 ~PseudoTrap ()
 
- Public Member Functions inherited from DDI::Solid
const std::vector< double > & parameters () const
 
void setParameters (std::vector< double > const &p)
 
DDSolidShape shape () const
 
 Solid ()
 
 Solid (DDSolidShape shape)
 
virtual ~Solid ()
 

Additional Inherited Members

- Protected Attributes inherited from DDI::Solid
std::vector< double > p_
 
DDSolidShape shape_
 

Detailed Description

Definition at line 9 of file PseudoTrap.h.

Constructor & Destructor Documentation

DDI::PseudoTrap::PseudoTrap ( double  x1,
double  x2,
double  y1,
double  y2,
double  z,
double  radius,
bool  minusZ 
)
inline

Definition at line 12 of file PseudoTrap.h.

References DDI::Solid::p_.

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  }
float float float z
Solid()
Definition: Solid.h:14
std::vector< double > p_
Definition: Solid.h:32
DDI::PseudoTrap::~PseudoTrap ( )
inline

Definition at line 24 of file PseudoTrap.h.

24 { }

Member Function Documentation

void DDI::PseudoTrap::stream ( std::ostream &  os) const
virtual

Reimplemented from DDI::Solid.

Definition at line 6 of file PseudoTrap.cc.

References DDI::Solid::p_.

7 {
8  os << " x1[cm]=" << p_[0]/cm
9  << " x2[cm]=" << p_[1]/cm
10  << " y1[cm]=" << p_[2]/cm
11  << " y2[cm]=" << p_[3]/cm
12  << " z[cm]=" << p_[4]/cm
13  << " radius[cm]=" << p_[5]/cm;
14 
15  if (p_[6])
16  os << " minusZ=[yes]";
17  else
18  os << " minusZ=[no]";
19 }
std::vector< double > p_
Definition: Solid.h:32
double DDI::PseudoTrap::volume ( void  ) const
inlinevirtual

Reimplemented from DDI::Solid.

Definition at line 26 of file PseudoTrap.h.

26 { return -1; }