197 if (!pPVModel)
return;
216 G4int detail = verbosity % 10;
218 if (verbosity < 10 && pCurrentPV->IsReplicated()) {
220 PVPath::const_reverse_iterator thisID = drawnPVPath.rbegin();
221 PVPath::const_reverse_iterator motherID = ++drawnPVPath.rbegin();
225 if (i->back().GetPhysicalVolume()->GetLogicalVolume() ==
226 thisID->GetPhysicalVolume()->GetLogicalVolume()) {
245 if (motherID == drawnPVPath.rend() &&
248 if (motherID != drawnPVPath.rend() &&
250 motherID->GetPhysicalVolume()->GetLogicalVolume() ==
251 (*i)[i->size() - 2].GetPhysicalVolume()->GetLogicalVolume())
264 if (verbosity < 10 &&
271 G4Exception(
"G4ASCIITreeSceneHandler::RequestPrimitives",
274 "Replica unexpected");
304 for (
size_t i = 0; i < drawnPVPath.size(); i++ ) *
fpOutFile <<
" ";
307 <<
"\":" << currentCopyNo;
310 if (verbosity < 10) {
325 <<
" (" << nReplicas <<
" parametrised volumes)";
333 <<
" (" << nReplicas <<
" replicas)";
338 if (verbosity < 10) {
349 << pCurrentLV->
GetName() <<
"\"";
372 if (pCurrentMaterial) {
375 <<
" (" << pCurrentMaterial->
GetName() <<
")";
382 if (pCurrentMaterial) {
390 G4double daughter_subtracted_volume =
391 daughter_subtracted_mass / pCurrentMaterial->
GetDensity();
393 <<
G4BestUnit(daughter_subtracted_volume,
"Volume")
395 <<
G4BestUnit(daughter_subtracted_mass,
"Mass");
401 const std::map<G4String,G4AttDef>* attDefs = pPVModel->
GetAttDefs();
408 fRestOfLine <<
"\nLocal polyhedron coordinates:\n" << *polyhedron;
410 polyhedron->Transform(*transform);
411 fRestOfLine <<
"\nGlobal polyhedron coordinates:\n" << *polyhedron;
415 fLVSet.insert(pCurrentLV);
virtual G4Polyhedron * GetPolyhedron() const
const std::map< G4String, G4AttDef > * GetAttDefs() const
virtual G4bool IsReplicated() const =0
const G4String & GetName() const
G4Material * GetCurrentMaterial() const
G4double GetDensity() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
virtual G4GeometryType GetEntityType() const =0
const std::vector< G4PhysicalVolumeNodeID > & GetDrawnPVPath() const
std::set< PVPath > fReplicaSet
std::vector< PVNodeID > PVPath
std::set< PVPath >::iterator ReplicaSetIterator
G4Transform3D * GetCurrentTransform() const
const G4String & GetName() const
virtual G4VPVParameterisation * GetParameterisation() const =0
G4VReadOutGeometry * GetROgeometry() const
G4VGraphicsSystem * GetGraphicsSystem() const
G4int GetNoDaughters() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
virtual G4bool IsParameterised() const =0
G4int GetVerbosity() const
G4LogicalVolume * GetLogicalVolume() const
std::vector< G4AttValue > * CreateCurrentAttValues() const
virtual G4int GetCopyNo() const =0
G4int fLastNonSequentialCopyNo
const G4VPhysicalVolume * fpLastPV
virtual void GetReplicationData(EAxis &axis, G4int &nReplicas, G4double &width, G4double &offset, G4bool &consuming) const =0
G4double GetMass(G4bool forced=false, G4bool propagate=true, G4Material *parMaterial=0)
const G4String & GetName() const
G4LogicalVolume * GetCurrentLV() const
G4VPhysicalVolume * GetCurrentPV() const
std::set< G4LogicalVolume * > fLVSet
G4VSensitiveDetector * GetSensitiveDetector() const
void CurtailDescent() const
std::ostringstream fRestOfLine