#include <G4STRead.hh>
Definition at line 55 of file G4STRead.hh.
◆ FacetRead()
void G4STRead::FacetRead |
( |
const std::string & |
line | ) |
|
|
private |
Definition at line 69 of file G4STRead.cc.
74 "A solid must be defined before defining a facet!");
83 std::istringstream stream(line.substr(4));
84 stream >> x1 >> y1 >> z1 >> x2 >> y2 >> z2 >> x3 >> y3 >> z3;
90 else if (line[2]==
'4')
97 std::istringstream stream(line.substr(4));
98 stream >> x1 >> y1 >> z1 >> x2 >> y2 >> z2
99 >> x3 >> y3 >> z3 >> x4 >> y4 >> z4;
109 "Number of vertices per facet should be either 3 or 4!");
CLHEP::Hep3Vector G4ThreeVector
std::vector< G4TessellatedSolid * > tessellatedList
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ PhysvolRead()
void G4STRead::PhysvolRead |
( |
const std::string & |
line | ) |
|
|
private |
Definition at line 113 of file G4STRead.cc.
123 std::istringstream stream(line.substr(2));
124 stream >> level >> name >> r1 >> r2 >> r3 >> n1 >> r4 >> r5 >> r6
125 >> n2 >> r7 >> r8 >> r9 >> n3 >> pX >> pY >> pZ >> n4 >> n5;
126 std::string::size_type idx = name.rfind(
"_");
127 if (idx!=std::string::npos)
133 G4Exception(
"G4STRead::PhysvolRead()",
"ReadError",
138 G4cout <<
"G4STRead: Placing tessellated solid: " << name <<
G4endl;
151 if (tessellated == 0)
153 G4String error_msg =
"Referenced solid '" + name +
"' not found!";
154 G4Exception(
"G4STRead::PhysvolRead()",
"ReadError",
159 G4String error_msg =
"Referenced solid '" + name
160 +
"' is not associated with a logical volume!";
161 G4Exception(
"G4STRead::PhysvolRead()",
"InvalidSetup",
G4LogicalVolume * world_volume
G4ThreeVector world_extent
CLHEP::Hep3Vector G4ThreeVector
virtual G4bool CalculateExtent(const EAxis pAxis, const G4VoxelLimits &pVoxelLimit, const G4AffineTransform &pTransform, G4double &pMin, G4double &pMax) const
std::vector< G4TessellatedSolid * > tessellatedList
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::map< G4TessellatedSolid *, G4LogicalVolume * > volumeMap
static const G4double pos
◆ Read()
Definition at line 253 of file G4STRead.cc.
256 if (mediumMaterial == 0)
259 "Pointer to medium material is not valid!");
261 if (solidMaterial == 0)
264 "Pointer to solid material is not valid!");
272 "TessellatedWorldLV", 0, 0, 0);
G4LogicalVolume * world_volume
G4ThreeVector world_extent
void SetZHalfLength(G4double dz)
static const G4double kInfinity
CLHEP::Hep3Vector G4ThreeVector
G4double GetXHalfLength() const
G4double GetZHalfLength() const
void ReadTree(const G4String &)
G4Material * solid_material
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double GetYHalfLength() const
void SetYHalfLength(G4double dy)
void SetXHalfLength(G4double dx)
void ReadGeom(const G4String &)
◆ ReadGeom()
void G4STRead::ReadGeom |
( |
const G4String & |
name | ) |
|
|
private |
Definition at line 198 of file G4STRead.cc.
200 G4cout <<
"G4STRead: Reading '" << name <<
"'..." <<
G4endl;
202 std::ifstream GeomFile(name);
215 while (getline(GeomFile,line))
226 G4cout <<
"G4STRead: Reading '" << name <<
"' done." <<
G4endl;
void TessellatedRead(const std::string &)
std::vector< G4TessellatedSolid * > tessellatedList
G4GLOB_DLL std::ostream G4cout
void FacetRead(const std::string &)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::map< G4TessellatedSolid *, G4LogicalVolume * > volumeMap
◆ ReadTree()
void G4STRead::ReadTree |
( |
const G4String & |
name | ) |
|
|
private |
Definition at line 229 of file G4STRead.cc.
231 G4cout <<
"G4STRead: Reading '" << name <<
"'..." <<
G4endl;
233 std::ifstream TreeFile(name);
244 while (getline(TreeFile,line))
249 G4cout <<
"G4STRead: Reading '" << name <<
"' done." <<
G4endl;
void PhysvolRead(const std::string &)
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ TessellatedRead()
void G4STRead::TessellatedRead |
( |
const std::string & |
line | ) |
|
|
private |
Definition at line 48 of file G4STRead.cc.
56 std::istringstream stream(line.substr(2));
std::vector< G4TessellatedSolid * > tessellatedList
G4GLOB_DLL std::ostream G4cout
G4Material * solid_material
std::map< G4TessellatedSolid *, G4LogicalVolume * > volumeMap
◆ solid_material
◆ tessellatedList
◆ volumeMap
◆ world_box
G4Box* G4STRead::world_box |
|
private |
◆ world_extent
◆ world_volume
The documentation for this class was generated from the following files: