Import Geant4 10.2.0 source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ASCIITreeMessenger.cc 66870 2013-01-14 23:38:59Z adotti $
|
||||
// $Id: G4ASCIITreeMessenger.cc 88761 2015-03-09 12:23:46Z gcosmo $
|
||||
//
|
||||
//
|
||||
// John Allison 5th April 2001
|
||||
@@ -74,6 +74,10 @@ G4ASCIITreeMessenger::G4ASCIITreeMessenger
|
||||
(" >= 3: volume and density.");
|
||||
fVerbosityGuidance.push_back
|
||||
(" >= 5: daughter-subtracted volume and mass.");
|
||||
fVerbosityGuidance.push_back
|
||||
(" >= 6: physical volume dump.");
|
||||
fVerbosityGuidance.push_back
|
||||
(" >= 7: polyhedron dump.");
|
||||
fVerbosityGuidance.push_back
|
||||
("and in the summary at the end of printing:");
|
||||
fVerbosityGuidance.push_back
|
||||
@@ -97,6 +101,9 @@ G4ASCIITreeMessenger::G4ASCIITreeMessenger
|
||||
(" /vis/sceneHandler/attach");
|
||||
fVerbosityGuidance.push_back
|
||||
(" /vis/viewer/flush");
|
||||
fVerbosityGuidance.push_back
|
||||
("Note: dumping the physical volumes produces a lot of output. It is"
|
||||
" advisable to select the volume of interest, as for a sub-tree above.");
|
||||
for (size_t i = 0; i < fVerbosityGuidance.size(); ++i) {
|
||||
fpCommandVerbose -> SetGuidance(fVerbosityGuidance[i]);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ASCIITreeSceneHandler.cc 66870 2013-01-14 23:38:59Z adotti $
|
||||
// $Id: G4ASCIITreeSceneHandler.cc 88761 2015-03-09 12:23:46Z gcosmo $
|
||||
//
|
||||
//
|
||||
// John Allison 5th April 2001
|
||||
@@ -49,6 +49,8 @@
|
||||
#include "G4VSensitiveDetector.hh"
|
||||
#include "G4VReadOutGeometry.hh"
|
||||
#include "G4TransportationManager.hh"
|
||||
#include "G4AttCheck.hh"
|
||||
#include "G4AttValue.hh"
|
||||
|
||||
G4ASCIITreeSceneHandler::G4ASCIITreeSceneHandler
|
||||
(G4VGraphicsSystem& system,
|
||||
@@ -105,6 +107,8 @@ void G4ASCIITreeSceneHandler::WriteHeader (std::ostream& os)
|
||||
if (detail >= 2) os << " / Solid(type)";
|
||||
if (detail >= 3) os << ", volume, density";
|
||||
if (detail >= 5) os << ", daughter-subtracted volume and mass";
|
||||
if (detail >= 6) os << ", physical volume dump";
|
||||
if (detail >= 7) os << ", polyhedron dump";
|
||||
os <<
|
||||
"\n# Abbreviations: PV = Physical Volume, LV = Logical Volume,"
|
||||
"\n# SD = Sensitive Detector, RO = Read Out Geometry.";
|
||||
@@ -391,6 +395,21 @@ void G4ASCIITreeSceneHandler::RequestPrimitives(const G4VSolid& solid) {
|
||||
}
|
||||
}
|
||||
|
||||
if (detail >= 6) {
|
||||
std::vector<G4AttValue>* attValues = pPVModel->CreateCurrentAttValues();
|
||||
const std::map<G4String,G4AttDef>* attDefs = pPVModel->GetAttDefs();
|
||||
fRestOfLine << '\n' << G4AttCheck(attValues, attDefs);
|
||||
delete attValues;
|
||||
}
|
||||
|
||||
if (detail >= 7) {
|
||||
G4Polyhedron* polyhedron = solid.GetPolyhedron();
|
||||
fRestOfLine << "\nLocal polyhedron coordinates:\n" << *polyhedron;
|
||||
G4Transform3D* transform = pPVModel->GetCurrentTransform();
|
||||
polyhedron->Transform(*transform);
|
||||
fRestOfLine << "\nGlobal polyhedron coordinates:\n" << *polyhedron;
|
||||
}
|
||||
|
||||
if (fLVSet.find(pCurrentLV) == fLVSet.end()) {
|
||||
fLVSet.insert(pCurrentLV); // Record new logical volume.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user