CMS 3D CMS Logo

DDI::Box Class Reference

#include <DetectorDescription/Core/src/Box.h>

Inheritance diagram for DDI::Box:

DDI::Solid

List of all members.

Public Member Functions

 Box (double xHalf, double yHalf, double zHalf)
void stream (std::ostream &os) const
double volume () const
 ~Box ()


Detailed Description

Definition at line 10 of file Box.h.


Constructor & Destructor Documentation

DDI::Box::Box ( double  xHalf,
double  yHalf,
double  zHalf 
) [inline]

Definition at line 13 of file Box.h.

References DDI::Solid::p_.

00014      : Solid(ddbox)
00015     { 
00016       p_.push_back(xHalf);
00017       p_.push_back(yHalf);
00018       p_.push_back(zHalf);
00019     }  

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

Definition at line 20 of file Box.h.

00020 { }


Member Function Documentation

void DDI::Box::stream ( std::ostream &  os  )  const [virtual]

Reimplemented from DDI::Solid.

Definition at line 6 of file Box.cc.

References DDI::Solid::p_.

00007 {
00008    os << " xhalf[cm]=" << p_[0]/cm
00009       << " yhalf[cm]=" << p_[1]/cm
00010       << " zhalf[cm]=" << p_[2]/cm;
00011 
00012 }

double DDI::Box::volume (  )  const [inline, virtual]

Reimplemented from DDI::Solid.

Definition at line 22 of file Box.h.

References DDI::Solid::p_.

00022 { return 8.*p_[0]*p_[1]*p_[2]; }


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