CMS 3D CMS Logo

Public Member Functions

DDI::PseudoTrap Class Reference

#include <PseudoTrap.h>

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

List of all members.

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 ()

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_.

     : Solid(ddpseudotrap)
     {
       p_.push_back(x1);
       p_.push_back(x2);
       p_.push_back(y1);
       p_.push_back(y2);
       p_.push_back(z);
       p_.push_back(radius);
       p_.push_back(minusZ);
     }
DDI::PseudoTrap::~PseudoTrap ( ) [inline]

Definition at line 24 of file PseudoTrap.h.

{ }

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_.

{
  os << " x1[cm]=" << p_[0]/cm
     << " x2[cm]=" << p_[1]/cm
     << " y1[cm]=" << p_[2]/cm
     << " y2[cm]=" << p_[3]/cm
     << " z[cm]=" << p_[4]/cm
     << " radius[cm]=" << p_[5]/cm;
     
  if (p_[6])
     os << " minusZ=[yes]";
  else
     os << " minusZ=[no]";
}
double DDI::PseudoTrap::volume ( void  ) const [inline, virtual]

Reimplemented from DDI::Solid.

Definition at line 26 of file PseudoTrap.h.

{ return -1; }