packages/MC/geometry/RTK_Cell.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Output pin cell for diagnostics.
 */
\brief Output pin cell for diagnostics.
\ brief Output pin cell for diagnostics .
void RTK_Cell::output(std::ostream &out,
                      int           array_id,
                      int           pin_id) const
{
    using std::endl; using std::setw; using std::setprecision;
    using std::fixed; using std::left; using std::right;
    using def::I; using def::J; using def::K;
    out << "++++++++++++++++++++++++++++++++++++++++"
        << "++++++++++++++++++++++++++++++++++++++++" << endl;
    out << endl;
    out << "Pin " << setw(3) << pin_id << " from pin-cell array "
        << setw(3) << array_id << endl;
    out << endl;
    out << left;
    out << "dimensions   = " << setw(9) << setprecision(5) << fixed << d_xy[0]
        << setw(9) << setprecision(5) << fixed << d_xy[1]
        << setw(9) << setprecision(5) << fixed << d_z
        << endl;
    out << "num regions  = " << setw(4) << d_num_regions << endl;
    out << "mod-id       = " << setw(4) << d_mod_id << endl;
    if (!d_r.empty())
    {
        out << "shell radii  = ";
        for (int n = 0; n < d_r.size(); ++n)
        {
            out << setw(8) << setprecision(5) << fixed << d_r[n];
        }
        out << endl;
        out << "shell matids = ";
        for (int n = 0; n < d_r.size(); ++n)
        {
            out << setw(4) << d_ids[n];
        }
        out << endl;
    }
    out << right;
    out << endl;
    out << "++++++++++++++++++++++++++++++++++++++++"
        << "++++++++++++++++++++++++++++++++++++++++" << endl;
}
void RTK_Cell :: output ( std :: ostream & out , int array_id , int pin_id ) const { using std :: endl ; using std :: setw ; using std :: setprecision ; using std :: fixed ; using std :: left ; using std :: right ; using def :: I ; using def :: J ; using def :: K ; out << " " << " " << endl ; out << endl ; out << " " << setw ( 3 ) << pin_id << " " << setw ( 3 ) << array_id << endl ; out << endl ; out << left ; out << " " << setw ( 9 ) << setprecision ( 5 ) << fixed << d_xy [ 0 ] << setw ( 9 ) << setprecision ( 5 ) << fixed << d_xy [ 1 ] << setw ( 9 ) << setprecision ( 5 ) << fixed << d_z << endl ; out << " " << setw ( 4 ) << d_num_regions << endl ; out << " " << setw ( 4 ) << d_mod_id << endl ; if ( ! d_r . empty ( ) ) { out << " " ; for ( int n = 0 ; n < d_r . size ( ) ; ++ n ) { out << setw ( 8 ) << setprecision ( 5 ) << fixed << d_r [ n ] ; } out << endl ; out << " " ; for ( int n = 0 ; n < d_r . size ( ) ; ++ n ) { out << setw ( 4 ) << d_ids [ n ] ; } out << endl ; } out << right ; out << endl ; out << " " << " " << endl ; }
\brief Output pin cell for diagnostics.
\ brief Output pin cell for diagnostics .