pyg4ometry.io.ROOTTGeo

Classes

Functions

_isClose(a, b[, relativeTolerance, absoluteTolerance])

return True if values are close to each other. As judged by the

rootMatrix2pyg4ometry(matrix, reader)

rootShape2pyg4ometry(shape, reader[, warnAboutBadShapes])

Module Contents

pyg4ometry.io.ROOTTGeo._isClose(a, b, relativeTolerance=1e-05, absoluteTolerance=0.0)

return True if values are close to each other. As judged by the absolute difference between a and b is greater than relative_tolerance times that difference. Implementation from PEP 485 (python > 3.5)

pyg4ometry.io.ROOTTGeo.rootMatrix2pyg4ometry(matrix, reader)
pyg4ometry.io.ROOTTGeo.rootShape2pyg4ometry(shape, reader, warnAboutBadShapes=True)
class pyg4ometry.io.ROOTTGeo.Reader(fileName, upgradeVacuumToG4Galactic=True, solidsToTessellate=None, suffixSeparator='__', warnAboutBadShapes=True, maximumDepth=1000000.0, dontLoadOverlapNodes=True)
solidsToTessellate
suffixSeparator
maximumDepth
tgm
first = True
_registry
_g4Galactic = None
objectNames
shapes
logicalVolumes
matrices
physicalVolumes
materials
materialSubstitutions
elements
isotopes
tv
getRegistry()
load(upgradeVacuumToG4Galactic=True, warnAboutBadShapes=True, dontLoadOverlapNodes=True)
_ROOTMatStateToGeant4MatState(rootMaterialState)

Based on https://root.cern.ch/doc/master/classTGeoMaterial.html#a8b69c72f90711a29726087e029e39c61 enum TGeoMaterial::EGeoMaterialState

loadMaterials(upgradeVacuumToG4Galactic)
_makeG4Element(rootElement)
_makeG4Isotope(rootIsotope)
recurseVolumeTree(volume, thisDepth, maximumDepth, warnAboutBadShapes=True, dontLoadOverlapNodes=True)