// // $Id: CylindricalShell.cpp,v 1.4 2005/01/30 00:14:39 snyder Exp $ // // File: CylindricalShell.cpp // Purpose: // Created: 09-SEP-1998 Harry L. Melanson // // $Revision: 1.4 $ // // // Include files #include "thinshells/CylindricalShell.hpp" #include #include using namespace D0Material; using namespace dgs; using namespace std; //////////////////////////////////////////////////////////////////////// CylindricalShell::CylindricalShell(Handle surface, const Material& material, const float thickness) : d_surface(surface), d_material(material), d_thickness(thickness) {} //////////////////////////////////////////////////////////////////////// Handle CylindricalShell::get_Surface() const {return d_surface;} //////////////////////////////////////////////////////////////////////// const Material* CylindricalShell::get_Material() const { const Material* matptr = &d_material; return matptr; } //////////////////////////////////////////////////////////////////////// float CylindricalShell::get_X0_frac() const {return d_thickness / d_material.getX0_cm();} //////////////////////////////////////////////////////////////////////// float CylindricalShell::get_Thickness() const {return d_thickness;} //////////////////////////////////////////////////////////////////////// // ostream& operator<<(ostream& os, const CylindricalShell* me) { os << "CylindricalShell: " << *(me->d_surface) << endl << "CylindricalShell: " << me->d_material << endl << "CylindricalShell: Thickness = " << me->d_thickness << " cm" << endl; return os; } //////////////////////////////////////////////////////////////////////// // ostream& operator<<(ostream& os, const CylindricalShell& me) { os << &me; return os; }