34#ifndef G4tgbGeometryDumper_hh
35#define G4tgbGeometryDumper_hh 1
92 G4String GetObjectName(TYP* obj, std::map<G4String, TYP*> objectsDumped);
105 std::ofstream* theFile =
nullptr;
107 std::map<G4String, G4Material*> theMaterials;
108 std::map<G4String, G4Element*> theElements;
109 std::map<G4String, G4Isotope*> theIsotopes;
110 std::map<G4String, G4VSolid*> theSolids;
111 std::map<G4String, G4LogicalVolume*> theLogVols;
112 std::map<G4String, G4VPhysicalVolume*> thePhysVols;
113 std::map<G4String, G4RotationMatrix*> theRotMats;
115 G4int theRotationNumber = 0;
static G4tgbGeometryDumper * GetInstance()
void DumpIsotope(G4Isotope *ele)
void DumpGeometry(const G4String &fname)
G4String DumpLogVol(G4LogicalVolume *lv, const G4String &extraName="", G4VSolid *solid=nullptr, G4Material *mate=nullptr)
void DumpPhysVol(G4VPhysicalVolume *pv)
G4String DumpRotationMatrix(G4RotationMatrix *rotm)
void DumpBooleanVolume(const G4String &solidType, G4VSolid *so)
G4String DumpMaterial(G4Material *mat)
void DumpPVReplica(G4PVReplica *pv, const G4String &lvName)
void DumpPVParameterised(G4PVParameterised *pv)
void DumpPolySections(G4int zPlanes, G4double *z, G4double *rmin, G4double *rmax)
G4VPhysicalVolume * GetTopPhysVol()
G4String DumpSolid(G4VSolid *solid, const G4String &extraName="")
void DumpElement(G4Element *ele)
void DumpSolidParams(G4VSolid *so)
void DumpPVPlacement(G4VPhysicalVolume *pv, const G4String &lvName, G4int copyNo=-999)
std::vector< G4double > GetSolidParams(const G4VSolid *so)