Go to the source code of this file.
◆ operator<<()
Definition at line 1280 of file G4SmartVoxelHeader.cc.
1281{
1284 std::size_t collectNodeNo = 0;
1285 std::size_t collectHeadNo = 0;
1286 std::size_t i, j;
1287 G4bool haveHeaders =
false;
1288
1289 for (i=0; i<h.
fslices.size(); ++i)
1290 {
1291 os << "Slice #" << i << " = ";
1293 {
1294 if (h.
fslices[i]!=collectNode)
1295 {
1296 os << "{";
1297 for (std::size_t k=0; k<h.
fslices[i]->GetNode()->GetNoContained(); ++k)
1298 {
1299 os <<
" " << h.
fslices[i]->GetNode()->GetVolume((
G4int)k);
1300 }
1303 collectNodeNo = i;
1304 }
1305 else
1306 {
1307 os <<
"As slice #" << collectNodeNo <<
G4endl;
1308 }
1309 }
1310 else
1311 {
1312 haveHeaders=true;
1313 if (h.
fslices[i] != collectHead)
1314 {
1315 os <<
"Header" <<
G4endl;
1317 collectHeadNo = i;
1318 }
1319 else
1320 {
1321 os <<
"As slice #" << collectHeadNo <<
G4endl;
1322 }
1323 }
1324 }
1325
1326 if (haveHeaders)
1327 {
1328 collectHead=nullptr;
1329 for (j=0; j<h.
fslices.size(); ++j)
1330 {
1332 {
1333 os << "Header at Slice #" << j << " = ";
1334 if (h.
fslices[j] != collectHead)
1335 {
1337 << (*(h.
fslices[j]->GetHeader()));
1339 collectHeadNo = j;
1340 }
1341 else
1342 {
1343 os <<
"As slice #" << collectHeadNo <<
G4endl;
1344 }
1345 }
1346 }
1347 }
1348 return os;
1349}