Geant4-11
|
#include <G4tgbGeometryDumper.hh>
Static Public Member Functions | |
static G4tgbGeometryDumper * | GetInstance () |
Private Member Functions | |
G4String | AddQuotes (const G4String &str) |
G4double | approxTo0 (G4double val) |
G4bool | CheckIfLogVolExists (const G4String &name, G4LogicalVolume *pt) |
G4bool | CheckIfPhysVolExists (const G4String &name, G4VPhysicalVolume *) |
const G4String & | FindSolidName (G4VSolid *solid) |
G4tgbGeometryDumper () | |
G4String | GetIsotopeName (G4Isotope *) |
template<class TYP > | |
G4String | GetObjectName (TYP *obj, std::map< G4String, TYP * > objectsDumped) |
std::vector< G4VPhysicalVolume * > | GetPVChildren (G4LogicalVolume *lv) |
G4String | GetTGSolidType (const G4String &solidtype) |
G4String | LookForExistingRotation (const G4RotationMatrix *rotm) |
G4double | MatDeterminant (G4RotationMatrix *ro) |
G4bool | Same2G4Isotopes (G4Isotope *ele1, G4Isotope *ele2) |
G4String | SubstituteRefl (G4String name) |
G4String | SupressRefl (G4String name) |
Private Attributes | |
std::map< G4String, G4Element * > | theElements |
std::ofstream * | theFile = nullptr |
std::map< G4String, G4Isotope * > | theIsotopes |
std::map< G4String, G4LogicalVolume * > | theLogVols |
std::map< G4String, G4Material * > | theMaterials |
std::map< G4String, G4VPhysicalVolume * > | thePhysVols |
G4int | theRotationNumber = 0 |
std::map< G4String, G4RotationMatrix * > | theRotMats |
std::map< G4String, G4VSolid * > | theSolids |
Static Private Attributes | |
static G4ThreadLocal G4tgbGeometryDumper * | theInstance = nullptr |
Definition at line 53 of file G4tgbGeometryDumper.hh.
G4tgbGeometryDumper::~G4tgbGeometryDumper | ( | ) |
Definition at line 131 of file G4tgbGeometryDumper.cc.
|
private |
Definition at line 1226 of file G4tgbGeometryDumper.cc.
Referenced by DumpBooleanVolume(), DumpElement(), DumpIsotope(), DumpLogVol(), DumpMaterial(), DumpMultiUnionVolume(), DumpPVPlacement(), DumpPVReplica(), DumpRotationMatrix(), DumpScaledVolume(), and DumpSolid().
Definition at line 1213 of file G4tgbGeometryDumper.cc.
References G4GeometryTolerance::GetInstance(), and G4GeometryTolerance::GetSurfaceTolerance().
Referenced by DumpBooleanVolume(), DumpMultiUnionVolume(), and DumpRotationMatrix().
|
private |
Definition at line 1372 of file G4tgbGeometryDumper.cc.
References G4InuclParticleNames::name(), and theLogVols.
Referenced by DumpPhysVol().
|
private |
Definition at line 1401 of file G4tgbGeometryDumper.cc.
References G4cerr, G4cout, G4endl, G4tgrMessenger::GetVerboseLevel(), G4InuclParticleNames::name(), and thePhysVols.
Referenced by DumpPVPlacement(), and DumpPVReplica().
Definition at line 687 of file G4tgbGeometryDumper.cc.
References AddQuotes(), approxTo0(), DumpRotationMatrix(), DumpSolid(), FindSolidName(), G4endl, G4DisplacedSolid::GetConstituentMovedSolid(), G4BooleanSolid::GetConstituentSolid(), GetObjectName(), G4DisplacedSolid::GetObjectTranslation(), G4DisplacedSolid::GetTransform(), G4AffineTransform::NetRotation(), pos, and theSolids.
Referenced by DumpSolid().
void G4tgbGeometryDumper::DumpElement | ( | G4Element * | ele | ) |
Definition at line 560 of file G4tgbGeometryDumper.cc.
References AddQuotes(), DumpIsotope(), ele, g, G4endl, GetObjectName(), mole, theElements, and theIsotopes.
Referenced by DumpMaterial().
void G4tgbGeometryDumper::DumpGeometry | ( | const G4String & | fname | ) |
Definition at line 95 of file G4tgbGeometryDumper.cc.
References DumpPhysVol(), test::fname, GetTopPhysVol(), and theFile.
void G4tgbGeometryDumper::DumpIsotope | ( | G4Isotope * | ele | ) |
Definition at line 606 of file G4tgbGeometryDumper.cc.
References AddQuotes(), g, G4endl, G4Isotope::GetA(), G4Isotope::GetN(), GetObjectName(), G4Isotope::GetZ(), mole, and theIsotopes.
Referenced by DumpElement().
G4String G4tgbGeometryDumper::DumpLogVol | ( | G4LogicalVolume * | lv, |
const G4String & | extraName = "" , |
||
G4VSolid * | solid = nullptr , |
||
G4Material * | mate = nullptr |
||
) |
Definition at line 439 of file G4tgbGeometryDumper.cc.
References AddQuotes(), DumpMaterial(), DumpSolid(), G4endl, G4LogicalVolume::GetMaterial(), G4LogicalVolume::GetName(), GetObjectName(), G4LogicalVolume::GetSolid(), SubstituteRefl(), SupressRefl(), and theLogVols.
Referenced by DumpPhysVol(), and DumpPVParameterised().
G4String G4tgbGeometryDumper::DumpMaterial | ( | G4Material * | mat | ) |
Definition at line 486 of file G4tgbGeometryDumper.cc.
References AddQuotes(), atmosphere, cm3, DumpElement(), eV, g, G4endl, G4Material::GetA(), G4Material::GetDensity(), G4Material::GetElementVector(), G4Material::GetFractionVector(), G4Material::GetIonisation(), G4IonisParamMat::GetMeanExcitationEnergy(), G4Material::GetNumberOfElements(), GetObjectName(), G4Material::GetPressure(), G4Material::GetState(), G4Material::GetTemperature(), G4Material::GetZ(), kelvin, kStateGas, kStateLiquid, kStateSolid, kStateUndefined, mole, theElements, and theMaterials.
Referenced by DumpLogVol().
void G4tgbGeometryDumper::DumpMultiUnionVolume | ( | G4VSolid * | so | ) |
Definition at line 744 of file G4tgbGeometryDumper.cc.
References AddQuotes(), approxTo0(), DumpRotationMatrix(), DumpSolid(), G4endl, G4VSolid::GetName(), G4MultiUnion::GetNumberOfSolids(), GetObjectName(), HepGeom::Transform3D::getRotation(), G4MultiUnion::GetSolid(), G4MultiUnion::GetTransformation(), HepGeom::Transform3D::getTranslation(), pos, and theSolids.
Referenced by DumpSolid().
void G4tgbGeometryDumper::DumpPhysVol | ( | G4VPhysicalVolume * | pv | ) |
Definition at line 136 of file G4tgbGeometryDumper.cc.
References CheckIfLogVolExists(), DumpLogVol(), DumpPhysVol(), DumpPVParameterised(), DumpPVPlacement(), DumpPVReplica(), G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetMotherLogical(), G4LogicalVolume::GetName(), GetPVChildren(), G4ReflectionFactory::Instance(), G4VPhysicalVolume::IsParameterised(), G4ReflectionFactory::IsReflected(), and G4VPhysicalVolume::IsReplicated().
Referenced by DumpGeometry(), and DumpPhysVol().
void G4tgbGeometryDumper::DumpPolySections | ( | G4int | zPlanes, |
G4double * | z, | ||
G4double * | rmin, | ||
G4double * | rmax | ||
) |
void G4tgbGeometryDumper::DumpPVParameterised | ( | G4PVParameterised * | pv | ) |
Definition at line 257 of file G4tgbGeometryDumper.cc.
References G4VPVParameterisation::ComputeDimensions(), G4VPVParameterisation::ComputeMaterial(), G4VPVParameterisation::ComputeSolid(), G4VPVParameterisation::ComputeTransformation(), G4UIcommand::ConvertToString(), DumpLogVol(), DumpPVPlacement(), G4VSolid::GetEntityType(), G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetMotherLogical(), G4LogicalVolume::GetName(), G4VPhysicalVolume::GetName(), G4PVParameterised::GetParameterisation(), G4PVParameterised::GetReplicationData(), and GetSolidParams().
Referenced by DumpPhysVol().
void G4tgbGeometryDumper::DumpPVPlacement | ( | G4VPhysicalVolume * | pv, |
const G4String & | lvName, | ||
G4int | copyNo = -999 |
||
) |
Definition at line 199 of file G4tgbGeometryDumper.cc.
References AddQuotes(), CheckIfPhysVolExists(), CLHEP::HepRotation::colX(), CLHEP::HepRotation::colY(), CLHEP::HepRotation::colZ(), G4UIcommand::ConvertToString(), DumpRotationMatrix(), G4cout, G4endl, G4VPhysicalVolume::GetCopyNo(), G4VPhysicalVolume::GetLogicalVolume(), G4VPhysicalVolume::GetMotherLogical(), G4LogicalVolume::GetName(), G4VPhysicalVolume::GetName(), G4VPhysicalVolume::GetRotation(), G4VPhysicalVolume::GetTranslation(), G4tgrMessenger::GetVerboseLevel(), G4ReflectionFactory::Instance(), CLHEP::HepRotation::inverse(), G4ReflectionFactory::IsReflected(), pos, SubstituteRefl(), thePhysVols, CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by DumpPhysVol(), and DumpPVParameterised().
void G4tgbGeometryDumper::DumpPVReplica | ( | G4PVReplica * | pv, |
const G4String & | lvName | ||
) |
Definition at line 382 of file G4tgbGeometryDumper.cc.
References AddQuotes(), CheckIfPhysVolExists(), deg, FatalException, G4endl, G4Exception(), G4VPhysicalVolume::GetMotherLogical(), G4LogicalVolume::GetName(), G4VPhysicalVolume::GetName(), G4PVReplica::GetReplicationData(), kPhi, kRadial3D, kRho, kUndefined, kXAxis, kYAxis, kZAxis, SubstituteRefl(), and thePhysVols.
Referenced by DumpPhysVol().
G4String G4tgbGeometryDumper::DumpRotationMatrix | ( | G4RotationMatrix * | rotm | ) |
Definition at line 1121 of file G4tgbGeometryDumper.cc.
References AddQuotes(), approxTo0(), G4UIcommand::ConvertToString(), deg, G4endl, LookForExistingRotation(), MatDeterminant(), CLHEP::HepRotation::phiX(), CLHEP::HepRotation::phiY(), CLHEP::HepRotation::phiZ(), theRotationNumber, theRotMats, CLHEP::HepRotation::thetaX(), CLHEP::HepRotation::thetaY(), CLHEP::HepRotation::thetaZ(), CLHEP::HepRotation::xx(), CLHEP::HepRotation::xy(), CLHEP::HepRotation::xz(), CLHEP::HepRotation::yx(), CLHEP::HepRotation::yy(), CLHEP::HepRotation::yz(), CLHEP::HepRotation::zx(), CLHEP::HepRotation::zy(), and CLHEP::HepRotation::zz().
Referenced by DumpBooleanVolume(), DumpMultiUnionVolume(), and DumpPVPlacement().
void G4tgbGeometryDumper::DumpScaledVolume | ( | G4VSolid * | so | ) |
Definition at line 778 of file G4tgbGeometryDumper.cc.
References AddQuotes(), G4endl, G4VSolid::GetName(), GetObjectName(), G4ScaledSolid::GetScaleTransform(), G4ScaledSolid::GetUnscaledSolid(), theSolids, HepGeom::Transform3D::xx(), HepGeom::Transform3D::yy(), and HepGeom::Transform3D::zz().
Referenced by DumpSolid().
Definition at line 622 of file G4tgbGeometryDumper.cc.
References AddQuotes(), DumpBooleanVolume(), DumpMultiUnionVolume(), DumpScaledVolume(), DumpSolid(), DumpSolidParams(), FatalException, G4Exception(), G4ReflectedSolid::GetConstituentMovedSolid(), G4VSolid::GetEntityType(), G4VSolid::GetName(), GetObjectName(), GetTGSolidType(), and theSolids.
Referenced by DumpBooleanVolume(), DumpLogVol(), DumpMultiUnionVolume(), and DumpSolid().
void G4tgbGeometryDumper::DumpSolidParams | ( | G4VSolid * | so | ) |
Definition at line 795 of file G4tgbGeometryDumper.cc.
References G4endl, and GetSolidParams().
Referenced by DumpSolid().
Definition at line 1462 of file G4tgbGeometryDumper.cc.
References FatalException, G4Exception(), and theSolids.
Referenced by DumpBooleanVolume().
|
static |
Definition at line 85 of file G4tgbGeometryDumper.cc.
References G4tgbGeometryDumper(), and theInstance.
Definition at line 1271 of file G4tgbGeometryDumper.cc.
References G4UIcommand::ConvertToString(), G4Isotope::GetName(), Same2G4Isotopes(), and theIsotopes.
|
private |
Definition at line 1327 of file G4tgbGeometryDumper.cc.
References G4UIcommand::ConvertToString().
Referenced by DumpBooleanVolume(), DumpElement(), DumpIsotope(), DumpLogVol(), DumpMaterial(), DumpMultiUnionVolume(), DumpScaledVolume(), and DumpSolid().
|
private |
Definition at line 1170 of file G4tgbGeometryDumper.cc.
References G4cout, G4endl, G4PhysicalVolumeStore::GetInstance(), G4LogicalVolume::GetName(), and G4tgrMessenger::GetVerboseLevel().
Referenced by DumpPhysVol().
Definition at line 806 of file G4tgbGeometryDumper.cc.
References deg, FatalException, G4Exception(), G4TwistedTrap::GetAzimuthalAnglePhi(), G4Polyhedra::GetCorner(), G4GenericPolycone::GetCorner(), G4Polycone::GetCorner(), G4Cons::GetDeltaPhiAngle(), G4Sphere::GetDeltaPhiAngle(), G4Tubs::GetDeltaPhiAngle(), G4Sphere::GetDeltaThetaAngle(), G4Torus::GetDPhi(), G4TwistedTubs::GetDPhi(), G4EllipticalTube::GetDx(), G4EllipticalTube::GetDy(), G4EllipticalTube::GetDz(), G4GenericPolycone::GetEndPhi(), G4Polycone::GetEndPhi(), G4VSolid::GetEntityType(), G4Sphere::GetInnerRadius(), G4Tubs::GetInnerRadius(), G4Hype::GetInnerRadius(), G4TwistedTubs::GetInnerRadius(), G4Cons::GetInnerRadiusMinusZ(), G4Cons::GetInnerRadiusPlusZ(), G4Hype::GetInnerStereo(), G4GenericPolycone::GetNumRZCorner(), G4Polycone::GetNumRZCorner(), G4Polyhedra::GetNumRZCorner(), G4Polyhedra::GetNumSide(), G4Polyhedra::GetOriginalParameters(), G4Sphere::GetOuterRadius(), G4Tubs::GetOuterRadius(), G4Hype::GetOuterRadius(), G4TwistedTubs::GetOuterRadius(), G4Cons::GetOuterRadiusMinusZ(), G4Cons::GetOuterRadiusPlusZ(), G4Hype::GetOuterStereo(), G4TwistedBox::GetPhiTwist(), G4TwistedTrap::GetPhiTwist(), G4TwistedTrd::GetPhiTwist(), G4TwistedTubs::GetPhiTwist(), G4TwistedTrap::GetPolarAngleTheta(), G4Orb::GetRadius(), G4Torus::GetRmax(), G4Torus::GetRmin(), G4Torus::GetRtor(), G4Ellipsoid::GetSemiAxisMax(), G4EllipticalCone::GetSemiAxisX(), G4EllipticalCone::GetSemiAxisY(), G4Torus::GetSPhi(), G4GenericPolycone::GetStartPhi(), G4Polycone::GetStartPhi(), G4Polyhedra::GetStartPhi(), G4Cons::GetStartPhiAngle(), G4Sphere::GetStartPhiAngle(), G4Tubs::GetStartPhiAngle(), G4Sphere::GetStartThetaAngle(), G4Para::GetSymAxis(), G4Trap::GetSymAxis(), G4Para::GetTanAlpha(), G4Trap::GetTanAlpha1(), G4Trap::GetTanAlpha2(), GetTGSolidType(), G4TwistedTrap::GetTiltAngleAlpha(), G4TwistedTrap::GetX1HalfLength(), G4TwistedTrd::GetX1HalfLength(), G4TwistedTrap::GetX2HalfLength(), G4TwistedTrd::GetX2HalfLength(), G4TwistedTrap::GetX3HalfLength(), G4TwistedTrap::GetX4HalfLength(), G4Box::GetXHalfLength(), G4Para::GetXHalfLength(), G4TwistedBox::GetXHalfLength(), G4Trap::GetXHalfLength1(), G4Trd::GetXHalfLength1(), G4Trap::GetXHalfLength2(), G4Trd::GetXHalfLength2(), G4Trap::GetXHalfLength3(), G4Trap::GetXHalfLength4(), G4TwistedTrap::GetY1HalfLength(), G4TwistedTrd::GetY1HalfLength(), G4TwistedTrap::GetY2HalfLength(), G4TwistedTrd::GetY2HalfLength(), G4Box::GetYHalfLength(), G4Para::GetYHalfLength(), G4TwistedBox::GetYHalfLength(), G4Trap::GetYHalfLength1(), G4Trd::GetYHalfLength1(), G4Trap::GetYHalfLength2(), G4Trd::GetYHalfLength2(), G4Ellipsoid::GetZBottomCut(), G4Box::GetZHalfLength(), G4Cons::GetZHalfLength(), G4Para::GetZHalfLength(), G4Trap::GetZHalfLength(), G4Trd::GetZHalfLength(), G4Tubs::GetZHalfLength(), G4Hype::GetZHalfLength(), G4TwistedBox::GetZHalfLength(), G4TwistedTrap::GetZHalfLength(), G4TwistedTrd::GetZHalfLength(), G4TwistedTubs::GetZHalfLength(), G4EllipticalCone::GetZMax(), G4Ellipsoid::GetZTopCut(), G4EllipticalCone::GetZTopCut(), G4PolyhedraHistorical::Opening_angle, CLHEP::Hep3Vector::phi(), G4PolyconeSideRZ::r, G4PolyhedraSideRZ::r, CLHEP::Hep3Vector::theta(), G4PolyconeSideRZ::z, and G4PolyhedraSideRZ::z.
Referenced by DumpPVParameterised(), and DumpSolidParams().
Definition at line 1193 of file G4tgbGeometryDumper.cc.
Referenced by DumpSolid(), and GetSolidParams().
G4VPhysicalVolume * G4tgbGeometryDumper::GetTopPhysVol | ( | ) |
Definition at line 104 of file G4tgbGeometryDumper.cc.
References G4PhysicalVolumeStore::GetInstance(), G4VPhysicalVolume::GetLogicalVolume(), and G4VPhysicalVolume::GetMotherLogical().
Referenced by DumpGeometry().
|
private |
Definition at line 1432 of file G4tgbGeometryDumper.cc.
References theRotMats.
Referenced by DumpRotationMatrix().
|
private |
Definition at line 1204 of file G4tgbGeometryDumper.cc.
References CLHEP::HepRotation::rep3x3(), CLHEP::HepRep3x3::xx_, CLHEP::HepRep3x3::xy_, CLHEP::HepRep3x3::xz_, CLHEP::HepRep3x3::yx_, CLHEP::HepRep3x3::yy_, CLHEP::HepRep3x3::yz_, CLHEP::HepRep3x3::zx_, CLHEP::HepRep3x3::zy_, and CLHEP::HepRep3x3::zz_.
Referenced by DumpRotationMatrix().
Definition at line 1448 of file G4tgbGeometryDumper.cc.
References G4Isotope::GetA(), G4Isotope::GetN(), and G4Isotope::GetZ().
Referenced by GetIsotopeName().
Definition at line 1260 of file G4tgbGeometryDumper.cc.
References G4InuclParticleNames::name().
Referenced by DumpLogVol(), DumpPVPlacement(), and DumpPVReplica().
Definition at line 1249 of file G4tgbGeometryDumper.cc.
References G4InuclParticleNames::name().
Referenced by DumpLogVol().
Definition at line 110 of file G4tgbGeometryDumper.hh.
Referenced by DumpElement(), and DumpMaterial().
|
private |
Definition at line 107 of file G4tgbGeometryDumper.hh.
Referenced by DumpGeometry().
|
staticprivate |
Definition at line 105 of file G4tgbGeometryDumper.hh.
Referenced by GetInstance().
Definition at line 111 of file G4tgbGeometryDumper.hh.
Referenced by DumpElement(), DumpIsotope(), and GetIsotopeName().
|
private |
Definition at line 113 of file G4tgbGeometryDumper.hh.
Referenced by CheckIfLogVolExists(), and DumpLogVol().
|
private |
Definition at line 109 of file G4tgbGeometryDumper.hh.
Referenced by DumpMaterial().
|
private |
Definition at line 114 of file G4tgbGeometryDumper.hh.
Referenced by CheckIfPhysVolExists(), DumpPVPlacement(), and DumpPVReplica().
|
private |
Definition at line 117 of file G4tgbGeometryDumper.hh.
Referenced by DumpRotationMatrix().
|
private |
Definition at line 115 of file G4tgbGeometryDumper.hh.
Referenced by DumpRotationMatrix(), and LookForExistingRotation().
Definition at line 112 of file G4tgbGeometryDumper.hh.
Referenced by DumpBooleanVolume(), DumpMultiUnionVolume(), DumpScaledVolume(), DumpSolid(), and FindSolidName().