Import Geant4 10.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-12-09 12:35:28 +01:00
parent 4ec577e5c4
commit a3452e42ac
3514 changed files with 210500 additions and 89628 deletions
+2 -2
View File
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4ASCIITree.cc 66373 2012-12-18 09:41:34Z gcosmo $
// $Id: G4ASCIITree.cc 98852 2016-08-15 07:03:35Z gcosmo $
//
//
// John Allison 5th April 2001
@@ -41,7 +41,7 @@ G4ASCIITree::G4ASCIITree ():
"A graphics system to dump geometry hierarchy"
"\n to standard output as an ASCII stream.",
G4VGraphicsSystem::nonEuclidian),
fVerbosity(0),
fVerbosity(1),
fOutFileName ("G4cout")
{
fpMessenger = new G4ASCIITreeMessenger(this);
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4ASCIITreeMessenger.cc 88761 2015-03-09 12:23:46Z gcosmo $
// $Id: G4ASCIITreeMessenger.cc 99076 2016-09-01 12:40:47Z gcosmo $
//
//
// John Allison 5th April 2001
@@ -43,7 +43,7 @@ std::vector<G4String> G4ASCIITreeMessenger::fVerbosityGuidance;
G4ASCIITreeMessenger::G4ASCIITreeMessenger
(G4ASCIITree* ASCIITree):
fpASCIITree(ASCIITree) {
fpASCIITree(ASCIITree) {
G4bool omitable;
@@ -87,8 +87,11 @@ G4ASCIITreeMessenger::G4ASCIITreeMessenger
("Note: by default, culling is switched off so all volumes are seen.");
fVerbosityGuidance.push_back
("Note: the mass calculation takes into account daughters, which can be"
" time consuming. If you want the mass of a particular subtree to a"
" particular depth:");
" time consuming. If you want the mass of a particular subtree try:");
fVerbosityGuidance.push_back
(" /vis/drawTree <subtree-physical-volume-name>");
fVerbosityGuidance.push_back
("Or if you want more control, for example:");
fVerbosityGuidance.push_back
(" /vis/open ATree");
fVerbosityGuidance.push_back
@@ -96,7 +99,7 @@ G4ASCIITreeMessenger::G4ASCIITreeMessenger
fVerbosityGuidance.push_back
(" /vis/scene/create");
fVerbosityGuidance.push_back
(" /vis/scene/add/volume <subtree-physical-volume> ! <depth>");
(" /vis/scene/add/volume <subtree-physical-volume-name> ! <depth>");
fVerbosityGuidance.push_back
(" /vis/sceneHandler/attach");
fVerbosityGuidance.push_back
@@ -108,7 +111,7 @@ G4ASCIITreeMessenger::G4ASCIITreeMessenger
fpCommandVerbose -> SetGuidance(fVerbosityGuidance[i]);
}
fpCommandVerbose -> SetParameterName ("verbosity",omitable = true);
fpCommandVerbose -> SetDefaultValue(0);
fpCommandVerbose -> SetDefaultValue(1);
fpCommandSetOutFile = new G4UIcmdWithAString ("/vis/ASCIITree/set/outFile", this
);
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4ASCIITreeSceneHandler.cc 96317 2016-04-06 07:25:03Z gcosmo $
// $Id: G4ASCIITreeSceneHandler.cc 99076 2016-09-01 12:40:47Z gcosmo $
//
//
// John Allison 5th April 2001
@@ -148,38 +148,34 @@ void G4ASCIITreeSceneHandler::EndModeling () {
G4PhysicalVolumeModel* pvModel =
dynamic_cast<G4PhysicalVolumeModel*>(i->fpModel);
if (pvModel) {
if (pvModel->GetTopPhysicalVolume() ==
G4TransportationManager::GetTransportationManager()
->GetNavigatorForTracking()->GetWorldVolume()) {
const G4ModelingParameters* tempMP =
pvModel->GetModelingParameters();
G4ModelingParameters mp; // Default - no culling.
pvModel->SetModelingParameters (&mp);
G4PhysicalVolumeMassScene massScene(pvModel);
pvModel->DescribeYourselfTo (massScene);
G4double volume = massScene.GetVolume();
G4double mass = massScene.GetMass();
const G4ModelingParameters* tempMP =
pvModel->GetModelingParameters();
G4ModelingParameters mp; // Default - no culling.
pvModel->SetModelingParameters (&mp);
G4PhysicalVolumeMassScene massScene(pvModel);
pvModel->DescribeYourselfTo (massScene);
G4double volume = massScene.GetVolume();
G4double mass = massScene.GetMass();
G4cout << "Overall volume of \""
<< pvModel->GetTopPhysicalVolume()->GetName()
<< "\":"
<< pvModel->GetTopPhysicalVolume()->GetCopyNo()
<< ", is "
<< G4BestUnit (volume, "Volume")
<< " and the daughter-included mass";
G4int requestedDepth = pvModel->GetRequestedDepth();
if (requestedDepth == G4PhysicalVolumeModel::UNLIMITED) {
G4cout << " to unlimited depth";
} else {
G4cout << ", ignoring daughters at depth "
<< requestedDepth
<< " and below,";
}
G4cout << " is " << G4BestUnit (mass, "Mass")
<< G4endl;
pvModel->SetModelingParameters (tempMP);
}
G4cout << "Overall volume of \""
<< pvModel->GetTopPhysicalVolume()->GetName()
<< "\":"
<< pvModel->GetTopPhysicalVolume()->GetCopyNo()
<< ", is "
<< G4BestUnit (volume, "Volume")
<< " and the daughter-included mass";
G4int requestedDepth = pvModel->GetRequestedDepth();
if (requestedDepth == G4PhysicalVolumeModel::UNLIMITED) {
G4cout << " to unlimited depth";
} else {
G4cout << ", ignoring daughters at depth "
<< requestedDepth
<< " and below,";
}
G4cout << " is " << G4BestUnit (mass, "Mass")
<< G4endl;
pvModel->SetModelingParameters (tempMP);
}
}
}