Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VoxelLimits.cc File Reference
#include "G4VoxelLimits.hh"
#include "G4ios.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4VoxelLimits &pLim)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const G4VoxelLimits pLim 
)

Definition at line 286 of file G4VoxelLimits.cc.

287{
288 os << "{";
289 if (pLim.IsXLimited())
290 {
291 os << "(" << pLim.GetMinXExtent()
292 << "," << pLim.GetMaxXExtent() << ") ";
293 }
294 else
295 {
296 os << "(-,-) ";
297 }
298 if (pLim.IsYLimited())
299 {
300 os << "(" << pLim.GetMinYExtent()
301 << "," << pLim.GetMaxYExtent() << ") ";
302 }
303 else
304 {
305 os << "(-,-) ";
306 }
307 if (pLim.IsZLimited())
308 {
309 os << "(" << pLim.GetMinZExtent()
310 << "," << pLim.GetMaxZExtent() << ")";
311 }
312 else
313 {
314 os << "(-,-)";
315 }
316 os << "}";
317 return os;
318}
G4bool IsYLimited() const
G4double GetMinZExtent() const
G4bool IsXLimited() const
G4double GetMaxYExtent() const
G4double GetMaxZExtent() const
G4double GetMinYExtent() const
G4double GetMinXExtent() const
G4bool IsZLimited() const
G4double GetMaxXExtent() const