Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4Scene.cc File Reference

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4Scene &scene)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const G4Scene scene 
)

Definition at line 230 of file G4Scene.cc.

230 {
231
232 size_t i;
233
234 os << "Scene data:";
235
236 os << "\n Run-duration model list:";
237 for (i = 0; i < scene.fRunDurationModelList.size (); i++) {
238 if (scene.fRunDurationModelList[i].fActive) os << "\n Active: ";
239 else os << "\n Inactive: ";
240 os << *(scene.fRunDurationModelList[i].fpModel);
241 }
242
243 os << "\n End-of-event model list:";
244 for (i = 0; i < scene.fEndOfEventModelList.size (); i++) {
245 if (scene.fEndOfEventModelList[i].fActive) os << "\n Active: ";
246 else os << "\n Inactive: ";
247 os << *(scene.fEndOfEventModelList[i].fpModel);
248 }
249
250 os << "\n End-of-run model list:";
251 for (i = 0; i < scene.fEndOfRunModelList.size (); i++) {
252 if (scene.fEndOfRunModelList[i].fActive) os << "\n Active: ";
253 else os << "\n Inactive: ";
254 os << *(scene.fEndOfRunModelList[i].fpModel);
255 }
256
257 os << "\n Extent or bounding box: " << scene.fExtent;
258
259 os << "\n Standard target point: " << scene.fStandardTargetPoint;
260
261 os << "\n End of event action set to \"";
262 if (scene.fRefreshAtEndOfEvent) os << "refresh\"";
263 else {
264 os << "accumulate (maximum number of kept events: ";
265 if (scene.fMaxNumberOfKeptEvents >= 0) os << scene.fMaxNumberOfKeptEvents;
266 else os << "unlimited";
267 os << ")";
268 }
269
270 os << "\n End of run action set to \"";
271 if (scene.fRefreshAtEndOfRun) os << "refresh";
272 else os << "accumulate";
273 os << "\"";
274
275 return os;
276}