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