Import Geant4 9.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:25:56 +02:00
parent 74cad5e589
commit 89a9605df1
4440 changed files with 379508 additions and 189225 deletions
@@ -1,13 +1,16 @@
# $Id: GNUmakefile,v 1.1 2007/11/16 14:16:46 kmura Exp $
# $Name: geant4-09-02 $
# $Id: GNUmakefile,v 1.2 2010/01/11 16:53:51 gcosmo Exp $
# $Name: geant4-09-04-beta-01 $
# ===========================================================
# Makefile for building G4 MPI aplication
# ===========================================================
name := exMPI01#
name := exMPI01
G4TARGET := $(name)
G4EXLIB := true
G4WORKDIR := .
ifndef G4INSTALL
G4INSTALL = ../../../../..
endif
.PHONY: all
all: lib bin
@@ -1,4 +1,4 @@
$Id: History,v 1.1 2007/11/16 14:16:46 kmura Exp $
$Id: History,v 1.3 2010/06/06 05:07:23 perl Exp $
-------------------------------------------------------------------
=========================================================
@@ -8,7 +8,13 @@ $Id: History,v 1.1 2007/11/16 14:16:46 kmura Exp $
exMPI01 History
---------------
4 June 2010 J.Perl
- Updated vis usage.
18 May 2010 K.Murakami
- use G4UIcsh instead of G4UItcsh because OpenMPI is now default.
- use G4eMultipleScattering instead of obsolete G4MultipleScattering.
16 Nov. 2007 K.Murakami
- commited to G4 CVS.
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: exMPI01.cc,v 1.1 2007/11/16 14:16:46 kmura Exp $
// $Name: geant4-09-02 $
// $Id: exMPI01.cc,v 1.2 2010/05/18 06:07:43 kmura Exp $
// $Name: geant4-09-04-beta-01 $
//
// ====================================================================
// exMPI01.cc
@@ -42,7 +42,6 @@
// MPI session
#include "G4MPImanager.hh"
#include "G4MPIsession.hh"
#include "G4UItcsh.hh"
#ifdef G4VIS_USE
#include "G4VisExecutive.hh"
@@ -69,10 +68,7 @@ int main(int argc,char** argv)
G4String prompt= "";
prompt+= "G4MPI";
prompt+= "(%s)[%/]:";
G4UItcsh* tcsh= new G4UItcsh(prompt);
tcsh-> SetLsColor(BLUE,RED);
session-> SetShell(tcsh);
session-> SetPrompt(prompt);
// --------------------------------------------------------------------
// user application setting
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: PhysicsListEMstd.cc,v 1.1 2007/11/16 14:16:46 kmura Exp $
// $Name: geant4-09-02 $
// $Id: PhysicsListEMstd.cc,v 1.2 2010/05/13 03:12:00 kmura Exp $
// $Name: geant4-09-04-beta-01 $
//
// ====================================================================
// PhysicsListEMstd.cc
@@ -47,7 +47,7 @@
#include "G4ComptonScattering.hh"
#include "G4GammaConversion.hh"
#include "G4PhotoElectricEffect.hh"
#include "G4MultipleScattering.hh"
#include "G4eMultipleScattering.hh"
#include "G4eIonisation.hh"
#include "G4eBremsstrahlung.hh"
#include "G4eplusAnnihilation.hh"
@@ -86,7 +86,7 @@ void PhysicsListEMstd::ConstructProcess()
{
G4ProcessManager* pm;
// ----------------------------------------------------------
// ----------------------------------------------------------
// gamma physics
// ----------------------------------------------------------
pm= G4Gamma::Gamma()-> GetProcessManager();
@@ -97,7 +97,7 @@ void PhysicsListEMstd::ConstructProcess()
// ----------------------------------------------------------
// electron physics
// ----------------------------------------------------------
G4MultipleScattering* msc= new G4MultipleScattering;
G4eMultipleScattering* msc= new G4eMultipleScattering;
G4eIonisation* eion= new G4eIonisation;
G4eBremsstrahlung* ebrems= new G4eBremsstrahlung;
@@ -109,7 +109,7 @@ void PhysicsListEMstd::ConstructProcess()
// ----------------------------------------------------------
// positron physics
// ----------------------------------------------------------
msc= new G4MultipleScattering;
msc= new G4eMultipleScattering;
eion= new G4eIonisation;
ebrems= new G4eBremsstrahlung;
G4eplusAnnihilation* annihilation= new G4eplusAnnihilation;
@@ -122,3 +122,4 @@ void PhysicsListEMstd::ConstructProcess()
}
+66 -13
View File
@@ -1,15 +1,68 @@
/vis/open OGLIX
/vis/scene/create
/vis/scene/add/volume
/vis/sceneHandler/attach
# Use this open statement to create an OpenGL view:
/vis/open OGL 600x600-0+0
#
# Use this open statement to create a .prim file suitable for
# viewing in DAWN:
#/vis/open DAWNFILE
#
# Use this open statement to create a .heprep file suitable for
# viewing in HepRApp:
#/vis/open HepRepFile
#
# Use this open statement to create a .wrl file suitable for
# viewing in a VRML viewer:
#/vis/open VRML2FILE
#
# Disable auto refresh and quieten vis messages whilst scene and
# trajectories are established:
/vis/viewer/set/autoRefresh false
/vis/verbose errors
#
# Draw geometry:
/vis/drawVolume
#
# Specify view angle:
/vis/viewer/set/viewpointThetaPhi 90. 270.
/tracking/storeTrajectory 1
/vis/scene/add/trajectories
#
# Specify zoom value:
#/vis/viewer/zoom 2.
#
# Specify style (surface or wireframe):
#/vis/viewer/set/style wireframe
#
# Draw coordinate axes:
#/vis/scene/add/axes 0 0 0 1 m
#
# Draw smooth trajectories at end of event, showing trajectory points
# as markers 2 pixels wide:
/vis/scene/add/trajectories smooth
/vis/modeling/trajectories/create/drawByCharge
/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
#
# Draw hits at end of event:
#/vis/scene/add/hits
#
# To draw only gammas:
#/vis/filtering/trajectories/create/particleFilter
#/vis/filtering/trajectories/particleFilter-0/add gamma
#
# To invert the above, drawing all particles except gammas,
# keep the above two lines but also add:
#/vis/filtering/trajectories/particleFilter-0/invert true
#
# Many other options are available with /vis/modeling and /vis/filtering.
# For example, to select colour by particle ID:
#/vis/modeling/trajectories/create/drawByParticleID
#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
#
# To superimpose all of the events from a given run:
/vis/scene/endOfEventAction accumulate
#/vis/scene/endOfEventAction refresh
#
# Re-establish auto refreshing and verbosity:
/vis/viewer/set/autoRefresh true
/vis/verbose warnings
#
# For file-based drivers, use this to create an empty detector view:
#/vis/viewer/flush