68 G4bool regionSensitive =
false;
73 struct shape_mat_info_t
104 G4String material_name = { };
106 const G4String& GetName() {
return material_name; }
108 G4String GetName(
G4int column_width)
110 auto input_name_length = (
G4int)material_name.length();
111 if( input_name_length < column_width) {
return material_name; }
113 G4String formatted_name;
114 for (std::size_t i = 0; i < material_name.length(); i += column_width)
117 formatted_name += material_name.substr(i, column_width);
118 if (i + column_width < material_name.length())
120 formatted_name +=
'\n';
125 formatted_name+=G4String( column_width-(input_name_length%column_width),
' ');
128 return formatted_name;
131 std::vector<shape_mat_info_t> shape_mat_info_v;