// // $Id: TCylindricalShell.tcc,v 1.2 2005/01/30 00:14:40 snyder Exp $ // // File: TCylindricalShell.tcc // Purpose: // Created: 09-SEP-1998 Harry L. Melanson // Stolen and templatized by Hobbs for TTCylindricalShell... // // $Revision: 1.2 $ // // // Include files //////////////////////////////////////////////////////////////////////// template TCylindricalShell::TCylindricalShell(T* surface, const D0Material::Material& material, const float thickness) : d_surface(surface), d_material(material), d_thickness(thickness) {} //////////////////////////////////////////////////////////////////////// template T* TCylindricalShell::get_Surface() const {return d_surface;} //////////////////////////////////////////////////////////////////////// template const D0Material::Material* TCylindricalShell::get_Material() const { const D0Material::Material* matptr = &d_material; return matptr; } //////////////////////////////////////////////////////////////////////// template float TCylindricalShell::get_X0_frac() const {return d_thickness / d_material.getX0_cm();} //////////////////////////////////////////////////////////////////////// template float TCylindricalShell::get_Thickness() const {return d_thickness;} //////////////////////////////////////////////////////////////////////// // template std::ostream& operator<<(std::ostream& os, const TCylindricalShell* me) { os << "TCylindricalShell: " << *(me->d_surface) << std::endl << "TCylindricalShell: " << me->d_material << std::endl << "TCylindricalShell: Thickness = " << me->d_thickness << " cm" << std::endl; return os; } //////////////////////////////////////////////////////////////////////// // templatestd::ostream& operator<<(std::ostream& os, const TCylindricalShell& me) { os << &me; return os; }