Import Geant4 9.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:37:50 +02:00
parent a8e9364cea
commit 96c8bcd0af
6923 changed files with 198390 additions and 41849 deletions
@@ -25,7 +25,7 @@
//
//
// $Id: G4GraphicsSystemList.cc,v 1.4 2006/06/29 21:29:14 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
#include "G4GraphicsSystemList.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4Scene.cc,v 1.23 2006/11/26 15:51:12 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
// Scene data John Allison 19th July 1996.
@@ -25,7 +25,7 @@
//
//
// $Id: G4SceneHandlerList.cc,v 1.4 2006/06/29 21:29:18 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
#include "G4SceneHandlerList.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4SceneList.cc,v 1.6 2006/06/29 21:29:20 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
#include "G4SceneList.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4VGraphicsSystem.cc,v 1.11 2006/06/29 21:29:22 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
// John Allison 27th March 1996
@@ -25,7 +25,7 @@
//
//
// $Id: G4VSceneHandler.cc,v 1.82 2007/05/16 15:47:44 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
// John Allison 19th July 1996
@@ -25,7 +25,7 @@
//
//
// $Id: G4VViewer.cc,v 1.24 2007/01/05 16:25:15 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
// John Allison 27th March 1996
@@ -25,7 +25,7 @@
//
//
// $Id: G4VVisCommand.cc,v 1.18 2006/06/29 21:29:28 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
// Base class for visualization commands - John Allison 9th August 1998
// It is really a messenger - we have one command per messenger.
@@ -25,7 +25,7 @@
//
//
// $Id: G4ViewParameters.cc,v 1.29 2007/04/03 13:33:16 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
// John Allison 19th July 1996
@@ -25,7 +25,7 @@
//
//
// $Id: G4ViewerList.cc,v 1.4 2006/06/29 21:29:32 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
#include "G4ViewerList.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4VisCommands.cc,v 1.22 2007/03/27 15:47:32 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
// /vis/ top level commands - John Allison 5th February 2001
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VisCommandsCompound.cc,v 1.38 2007/03/27 15:41:34 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// $Id: G4VisCommandsCompound.cc,v 1.39 2007/11/16 20:29:04 perl Exp $
// GEANT4 tag $Name: geant4-09-01 $
// Compound /vis/ commands - John Allison 15th May 2000
@@ -182,8 +182,7 @@ G4VisCommandDrawVolume::G4VisCommandDrawVolume() {
"\nall worlds is made, taking the first matching occurence only. To see"
"\na representation of the geometry hierarchy of the worlds, try"
"\n\"/vis/drawTree [worlds]\" or one of the driver/browser combinations"
"\nthat have the required functionality, e.g., HepRepFile/XML with the"
"\nWIRED3/4 browser.");
"\nthat have the required functionality, e.g., HepRep");
fpCommand->SetParameterName("physical-volume-name", omitable = true);
fpCommand->SetDefaultValue("world");
}
@@ -25,7 +25,7 @@
//
//
// $Id: G4VisCommandsGeometry.cc,v 1.4 2007/01/05 16:29:38 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
// /vis/geometry commands - John Allison 31st January 2006
@@ -25,7 +25,7 @@
//
//
// $Id: G4VisCommandsGeometrySet.cc,v 1.7 2007/01/05 16:24:19 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
// /vis/geometry commands - John Allison 31st January 2006
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VisCommandsScene.cc,v 1.66 2007/05/25 10:49:55 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// $Id: G4VisCommandsScene.cc,v 1.67 2007/11/10 15:03:56 allison Exp $
// GEANT4 tag $Name: geant4-09-01 $
// /vis/scene commands - John Allison 9th August 1998
@@ -33,6 +33,8 @@
#include "G4VisManager.hh"
#include "G4TransportationManager.hh"
#include "G4RunManager.hh"
#include "G4Run.hh"
#include "G4PhysicalVolumeModel.hh"
#include "G4ApplicationState.hh"
#include "G4UImanager.hh"
@@ -201,6 +203,18 @@ void G4VisCommandSceneEndOfEventAction::SetNewValue (G4UIcommand*,
// Change of transients behaviour, so...
fpVisManager->ResetTransientsDrawnFlags();
// Are there any events currently kept...
size_t nCurrentlyKept = 0;
G4RunManager* runManager = G4RunManager::GetRunManager();
if (runManager) {
const G4Run* currentRun = runManager->GetCurrentRun();
if (currentRun) {
const std::vector<const G4Event*>* events =
currentRun->GetEventVector();
if (events) nCurrentlyKept = events->size();
}
}
if (verbosity >= G4VisManager::confirmations) {
G4cout << "End of event action set to ";
if (pScene->GetRefreshAtEndOfEvent()) G4cout << "\"refresh\".";
@@ -210,22 +224,29 @@ void G4VisCommandSceneEndOfEventAction::SetNewValue (G4UIcommand*,
<< maxNumberOfKeptEvents
<< " (unlimited if negative)."
"\n This may be changed with, e.g., "
"\"/vis/scene/endOfEventAction accumulate 100\"."
<< G4endl;
"\"/vis/scene/endOfEventAction accumulate 1000\".";
}
G4cout << G4endl;
}
if (!pScene->GetRefreshAtEndOfEvent() &&
maxNumberOfKeptEvents != 0 &&
verbosity >= G4VisManager::warnings) {
G4cout << "WARNING: The vis manager will keep ";
if (maxNumberOfKeptEvents < 0) G4cout << "an unlimited number of";
else G4cout << "up to " << maxNumberOfKeptEvents;
G4cout << " events.";
if (maxNumberOfKeptEvents > 1 || maxNumberOfKeptEvents < 0)
G4cout << "\n This may use a lot of memory.";
G4cout << "WARNING: ";
if (nCurrentlyKept) {
G4cout <<
"\n There are currently " << nCurrentlyKept
<< " events kept for refreshing and/or reviewing.";
} else {
G4cout << "The vis manager will keep ";
if (maxNumberOfKeptEvents < 0) G4cout << "an unlimited number of";
else G4cout << "up to " << maxNumberOfKeptEvents;
G4cout << " events.";
if (maxNumberOfKeptEvents > 1 || maxNumberOfKeptEvents < 0)
G4cout << "\n This may use a lot of memory.";
}
G4cout << G4endl;
}
UpdateVisManagerScene (pScene->GetName());
}
////////////// /vis/scene/endOfRunAction ////////////////////////////
@@ -315,7 +336,6 @@ void G4VisCommandSceneEndOfRunAction::SetNewValue (G4UIcommand*,
else G4cout << "accumulate";
G4cout << "\"" << G4endl;
}
UpdateVisManagerScene (pScene->GetName());
}
////////////// /vis/scene/list ///////////////////////////////////////
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VisCommandsSceneAdd.cc,v 1.72 2006/11/25 15:37:31 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// $Id: G4VisCommandsSceneAdd.cc,v 1.73 2007/11/16 20:29:04 perl Exp $
// GEANT4 tag $Name: geant4-09-01 $
// /vis/scene commands - John Allison 9th August 1998
#include "G4VisCommandsSceneAdd.hh"
@@ -1490,8 +1490,7 @@ G4VisCommandSceneAddVolume::G4VisCommandSceneAddVolume () {
"\nadded. Otherwise a search of all worlds is made, taking the first"
"\nmatching occurence only. To see a representation of the geometry"
"\nhierarchy of the worlds, try \"/vis/drawTree [worlds]\" or one of the"
"\ndriver/browser combinations that have the required functionality,"
"\ne.g., HepRepFile/XML with the WIRED3/4 browser.");
"\ndriver/browser combinations that have the required functionality, e.g., HepRep.");
fpCommand -> SetGuidance
("If clip-volume-type is specified, the subsequent parameters are used to"
"\nto define a clipping volume. For example,"
@@ -25,7 +25,7 @@
//
//
// $Id: G4VisCommandsSceneHandler.cc,v 1.32 2006/06/29 21:29:46 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
// /vis/sceneHandler commands - John Allison 10th October 1998
@@ -25,7 +25,7 @@
//
//
// $Id: G4VisCommandsViewer.cc,v 1.68 2007/01/11 16:41:30 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
// /vis/viewer commands - John Allison 25th October 1998
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VisCommandsViewerSet.cc,v 1.48 2007/04/03 13:33:16 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// $Id: G4VisCommandsViewerSet.cc,v 1.49 2007/07/10 17:51:54 allison Exp $
// GEANT4 tag $Name: geant4-09-01 $
// /vis/viewer/set commands - John Allison 16th May 2000
@@ -469,8 +469,10 @@ void G4VisCommandsViewerSet::SetNewValue
G4cout << "be automatically refreshed after a change of view parameters."
<< G4endl;
}
currentViewer->SetViewParameters(vp);
return; // I.e., avoid a refresh for this command.
if (!vp.IsAutoRefresh()) {
currentViewer->SetViewParameters(vp);
return; // Avoid a refresh id auto-refresh has been set to off...
} // ...otherwise take normal action.
}
else if (command == fpCommandAuxEdge) {
@@ -25,7 +25,7 @@
//
//
// $Id: G4VisFeaturesOfDAWNFILE.cc,v 1.6 2006/06/29 21:29:52 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
#include "G4VisFeaturesOfDAWNFILE.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4VisFeaturesOfFukuiRenderer.cc,v 1.5 2006/06/29 21:29:54 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VisFeaturesOfOpenGL.cc,v 1.5 2006/06/29 21:29:56 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// $Id: G4VisFeaturesOfOpenGL.cc,v 1.6 2007/10/03 14:21:55 lgarnier Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//
@@ -90,3 +90,13 @@ G4String G4VisFeaturesOfOpenGLSWin32 () {
return
"\n It runs on WindowsNT ";
}
G4String G4VisFeaturesOfOpenGLIQt () {
return
"\n It runs everywhere";
}
G4String G4VisFeaturesOfOpenGLSQt () {
return
"\n It runs everywhere ";
}
@@ -25,7 +25,7 @@
//
//
// $Id: G4VisFeaturesOfOpenInventor.cc,v 1.5 2006/06/29 21:29:58 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
//
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4VisManager.cc,v 1.113 2007/05/25 10:50:26 allison Exp $
// GEANT4 tag $Name: geant4-09-00 $
// $Id: G4VisManager.cc,v 1.114 2007/11/10 14:59:46 allison Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//
// GEANT4 Visualization Manager - John Allison 02/Jan/1996.
@@ -1243,12 +1243,12 @@ void G4VisManager::EndOfRun ()
if (!valid && fVerbosity >= warnings && !warned) {
G4cout <<
" Only useful if before starting the run:"
"\n a) trajectories are stored (\"/tracking/storeTrajectory N\"), or"
"\n a) trajectories are stored (\"/vis/scene/add/trajectories [smooth|rich]\"), or"
"\n b) the Draw method of any hits is implemented."
"\n To view trajectories and hits:"
"\n open a viewer, draw a volume, \"/vis/scene/add/trajectories\""
"\n \"/vis/scene/add/hits\" and, possibly, \"/vis/viewer/flush\"."
"\n To see all events: \"vis/scene/endOfEventAction accumulate\"."
"\n To see all events: \"/vis/scene/endOfEventAction accumulate\"."
"\n To see events individually: \"/vis/reviewKeptEvents\"."
<< G4endl;
warned = true;
@@ -25,7 +25,7 @@
//
//
// $Id: G4VisStateDependent.cc,v 1.6 2006/06/29 21:30:02 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
// GEANT4 tag $Name: geant4-09-01 $
#include "G4VisStateDependent.hh"