CMS 3D CMS Logo

DDI::PseudoTrap Class Reference

#include <DetectorDescription/Core/src/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 ()
 ~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_.

00013      : Solid(ddpseudotrap)
00014      {
00015        p_.push_back(x1);
00016        p_.push_back(x2);
00017        p_.push_back(y1);
00018        p_.push_back(y2);
00019        p_.push_back(z);
00020        p_.push_back(radius);
00021        p_.push_back(minusZ);
00022      }

DDI::PseudoTrap::~PseudoTrap (  )  [inline]

Definition at line 24 of file PseudoTrap.h.

00024 { }


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

00007 {
00008   os << " x1[cm]=" << p_[0]/cm
00009      << " x2[cm]=" << p_[1]/cm
00010      << " y1[cm]=" << p_[2]/cm
00011      << " y2[cm]=" << p_[3]/cm
00012      << " z[cm]=" << p_[4]/cm
00013      << " radius[cm]=" << p_[5]/cm;
00014      
00015   if (p_[6])
00016      os << " minusZ=[yes]";
00017   else
00018      os << " minusZ=[no]";
00019 }

double DDI::PseudoTrap::volume (  )  [inline]

Definition at line 26 of file PseudoTrap.h.

00026 { return -1; }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:37:10 2009 for CMSSW by  doxygen 1.5.4