Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 1.7 2002/05/31 17:10:34 maire Exp $
# $Id: GNUmakefile,v 1.8 2002/12/11 14:19:17 maire Exp $
# --------------------------------------------------------------
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
# --------------------------------------------------------------
@@ -21,8 +21,8 @@ ifdef G4NOHIST
CPPFLAGS += -DG4NOHIST
else
# for the aida-config command see the README file
CPPFLAGS += `aida-config --useHBook --include`
LDFLAGS += `aida-config --useHBook --lib`
CPPFLAGS += `aida-config --include`
LDFLAGS += `aida-config --lib`
endif
include $(G4INSTALL)/config/binmake.gmk
@@ -1,4 +1,4 @@
$Id: History,v 1.20 2002/06/05 17:57:27 maire Exp $
$Id: History,v 1.22 2002/12/11 14:19:17 maire Exp $
-------------------------------------------------------------------
=========================================================
@@ -15,11 +15,18 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
11-12-02 mma (testem1-V04-01-01)
- migration to AIDA 3.0
- UI commands under directory /testem/
05-12-02 cosmo (testem1-V04-01-00)
- Fix in runAction for porting on gcc-3.2.
05-06-02 mma (testem1-V04-00-03)
-do not delete histos in destructor of RunAction
- do not delete histos in destructor of RunAction
31-05-02 mma (testem1-V04-00-02)
-old histograming package clhep/hist replaced by AIDA 2.2/anaphe. See README
- old histograming package clhep/hist replaced by AIDA 2.2/anaphe. See README
08-03-02 mma (testem1-V04-00-01)
- PhysicsList: unifomisation of the setG(E)Cut commands
@@ -1,4 +1,4 @@
$Id: README,v 1.6 2002/05/31 17:10:34 maire Exp $
$Id: README,v 1.7 2002/12/11 14:19:17 maire Exp $
-------------------------------------------------------------------
=========================================================
@@ -104,22 +104,18 @@ $Id: README,v 1.6 2002/05/31 17:10:34 maire Exp $
Note that histograms are disabled via the flag G4NOHIST in the GNUmakefile.
7- Using the Anaphe implementation of the AIDA 2.2 histograms:
8- Using the Anaphe implementation of the AIDA 3.0 histograms:
--------------------------------------------------------------
In order to use the Anaphe implementation of the AIDA 2.2 interfaces,
prepare some environment variables by source-ing one of the following
startup scripts (depending on your compiler version):
In order to use the Anaphe implementation of the AIDA 3.0 interfaces,
the 'aida-config' command (which is used in the GNUmakefile) is
available at:
/afs/cern.ch/sw/lhcxx/share/LHCXX/latest/scripts/aida-config
# gcc-2.95.2
source $LHCXXTOP/share/LHCXX/4.0.1/install/sharedstart.sh or .csh
# egcs_1.1.2 (aka gcc 2.91.66)
source $LHCXXTOP/share/LHCXX/4.0.1-sec/install/sharedstart.sh or .csh
At CERN, $LHCXXTOP is /afs/cern.ch/sw/lhcxx, you may want to use a
more recent release, check http:/cern.ch/anaphe for more information.
After this, you will have access to the 'aida-config' command which
is used in the GNUmakefile.
In order to run the executable, you need to source the following
script (once):
$HOME/bin/setupAnaphe.csh (or $HOME/bin/setupAnaphe)
At cern 'setupAnaphe' is available at:
/afs/cern.ch/sw/lhcxx/share/LHCXX/latest/scripts/setupAnaphe.csh
(or /afs/cern.ch/sw/lhcxx/share/LHCXX/latest/scripts/setupAnaphe)
@@ -22,7 +22,7 @@
//
//
// $Id: TestEm1.cc,v 1.8 2001/12/07 11:49:08 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -1,4 +1,4 @@
# $Id: TestEm1.in,v 1.4 2002/03/08 15:08:57 maire Exp $
# $Id: TestEm1.in,v 1.5 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 2.20 mm
/run/particle/setECut 6.05 mum
/testem/phys/setGCut 2.20 mm
/testem/phys/setECut 6.05 mum
#
/run/initialize
#
@@ -1,6 +1,6 @@
**********************************************
Geant4 version $Name: geant4-04-01 $
(28-Feb-2002)
Geant4 version $Name: geant4-05-00 $
(13-Dec-2002)
Copyright : Geant4 Collaboration
**********************************************
Visualization Manager instantiating...
@@ -13,12 +13,13 @@ Current available graphics systems are:
DAWNFILE (DAWNFILE)
GAGTree (GAGTree)
G4HepRepFile (HepRepFile)
G4HepRep (HepRepXML)
RayTracer (RayTracer)
VRML1FILE (VRML1FILE)
VRML2FILE (VRML2FILE)
#
/run/particle/setGCut 2.20 mm
/run/particle/setECut 6.05 mum
/testem/phys/setGCut 2.20 mm
/testem/phys/setECut 6.05 mum
#
/run/initialize
@@ -172,18 +173,18 @@ Start Run processing.
Run terminated.
Run Summary
Number of events processed : 100
User=12s Real=23s Sys=2.8s
User=15s Real=19s Sys=2.4s
nb tracks/event neutral: 27.5700 charged: 695.0200
nb steps/event neutral: 148.5400 charged: 1331.6000
nb tracks/event neutral: 27.8100 charged: 700.3100
nb steps/event neutral: 151.8700 charged: 1338.0800
nb of process calls per event:
eIoni eBrem phot compt conv annihil
1305.3700 24.8300 26.1700 120.9700 1.4000 1.4000
eIoni eBrem compt phot conv annihil
1311.6600 25.0000 124.0600 26.3900 1.4200 1.4200
--------- Ranecu engine status ---------
Initial seed (index) = 0
Current couple of seeds = 2126832091, 1419935556
Current couple of seeds = 1272479250, 468362791
----------------------------------------
Graphics systems deleted.
Visualization Manager deleting...
@@ -0,0 +1,14 @@
LIST
C
C e- 10 Gev; all processes
C
CALOR 5 (Imat) 2000. (size) 0. (field)
TRIG 100
KINE 3 (Itype) 10.000 (Ekine)
DEBUG 10 5 10
SWIT 0 (draw) 0 (save)
CUTS 10.e-6 (cutgam) 10.e-6 (cutele) 3*10.e-3 (cutneu/had/muo)
2*10.e-6 (bcute/m) 2*597.e-6 (dcute/m) 10.e-3 (ppcutm)
ABAN 0
LOSS 1
TIME 2=1.
@@ -39,7 +39,7 @@
+ /,1X,'nb steps/event neutral: ',F9.2,' charged: ',F9.2)
760 FORMAT(//,1X,'nb of process calls per event: ',
+ /,3X,12A9)
761 FORMAT( 3X,12F9.4,//)
+ /,3X,12A12)
761 FORMAT( 3X,12F12.4,//)
*
END
@@ -22,7 +22,7 @@
//
//
// $Id: Em1DetectorConstruction.hh,v 1.5 2001/12/07 11:49:09 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: Em1DetectorMessenger.hh,v 1.4 2001/10/26 12:51:23 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: Em1DetectorMessenger.hh,v 1.5 2002/12/11 14:19:22 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -56,7 +56,7 @@ class Em1DetectorMessenger: public G4UImessenger
Em1DetectorConstruction* Em1Detector;
G4UIdirectory* Em1detDir;
G4UIdirectory* testemDir;
G4UIcmdWithAString* MaterCmd;
G4UIcmdWithADoubleAndUnit* SizeCmd;
G4UIcmdWithADoubleAndUnit* MagFieldCmd;
@@ -22,7 +22,7 @@
//
//
// $Id: Em1EventAction.hh,v 1.5 2001/11/29 11:28:07 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: Em1EventActionMessenger.hh,v 1.4 2001/10/26 12:51:23 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: Em1PhysicsList.hh,v 1.5 2002/03/08 13:43:29 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: Em1PhysicsListMessenger.hh,v 1.5 2002/03/08 13:43:29 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: Em1PrimaryGeneratorAction.hh,v 1.5 2001/12/07 11:49:09 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: Em1PrimaryGeneratorMessenger.hh,v 1.1 2001/12/07 11:49:09 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: Em1RunAction.hh,v 1.9 2002/05/31 17:10:35 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: Em1RunAction.hh,v 1.10 2002/12/11 14:19:22 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -41,8 +41,10 @@
class G4Run;
#ifndef G4NOHIST
namespace AIDA {
class ITree;
class IHistogram1D;
}
#endif
class Em1RunAction : public G4UserRunAction
@@ -62,7 +64,7 @@ class Em1RunAction : public G4UserRunAction
void CountProcesses(G4String);
#ifndef G4NOHIST
IHistogram1D* GetHisto(G4int id) {return histo[id];}
AIDA::IHistogram1D* GetHisto(G4int id) {return histo[id];}
#endif
private:
@@ -75,8 +77,8 @@ class Em1RunAction : public G4UserRunAction
ProcessesCount* ProcCounter;
#ifndef G4NOHIST
ITree* tree;
IHistogram1D* histo[3];
AIDA::ITree* tree;
AIDA::IHistogram1D* histo[3];
#endif
};
@@ -22,7 +22,7 @@
//
//
// $Id: Em1SteppingAction.hh,v 1.4 2001/10/26 12:51:24 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: Em1SteppingVerbose.hh,v 1.7 2001/10/26 12:51:24 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
// This class manages the verbose outputs in G4SteppingManager.
// It inherits from G4SteppingVerbose.
@@ -22,7 +22,7 @@
//
//
// $Id: Em1TrackingAction.hh,v 1.4 2001/10/26 12:51:24 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -22,7 +22,7 @@
//
//
// $Id: Em1VisManager.hh,v 1.4 2001/10/26 12:51:24 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: ProcessesCount.hh,v 1.7 2001/10/26 12:51:24 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -1,4 +1,4 @@
# $Id: phot.mac,v 1.1 2002/02/06 13:57:58 maire Exp $
# $Id: phot.mac,v 1.2 2002/12/11 14:31:30 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -9,17 +9,17 @@
#
/run/initialize
#
/calor/setMat Germanium
/calor/setSize 1 cm
/calor/update
/testem/det/setMat Germanium
/testem/det/setSize 1 cm
/testem/det/update
#
/gun/setDefault 1
/testem/gun/setDefault 1
#
/run/verbose 2
#
/gun/particle gamma
/gun/energy 1 MeV
/gun/rndm 0.8
/testem/gun/rndm 0.8
#
/tracking/verbose 1
#
@@ -1,4 +1,4 @@
# $Id: run01.mac,v 1.4 2002/03/08 13:43:27 maire Exp $
# $Id: run01.mac,v 1.5 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 95 cm
/run/particle/setECut 95 cm
/testem/phys/setGCut 95 cm
/testem/phys/setECut 95 cm
#
/run/initialize
#
@@ -1,4 +1,4 @@
# $Id: run02.mac,v 1.4 2002/03/08 13:43:27 maire Exp $
# $Id: run02.mac,v 1.5 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 95 cm
/run/particle/setECut 95 cm
/testem/phys/setGCut 95 cm
/testem/phys/setECut 95 cm
#
/run/initialize
#
@@ -1,4 +1,4 @@
# $Id: run03.mac,v 1.4 2002/03/08 13:43:28 maire Exp $
# $Id: run03.mac,v 1.5 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 95 cm
/run/particle/setECut 95 cm
/testem/phys/setGCut 95 cm
/testem/phys/setECut 95 cm
#
/run/initialize
#
@@ -1,4 +1,4 @@
# $Id: run04.mac,v 1.5 2002/03/08 13:43:28 maire Exp $
# $Id: run04.mac,v 1.6 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 95 cm
/run/particle/setECut 100 micrometer
/testem/phys/setGCut 95 cm
/testem/phys/setECut 100 micrometer
#
/run/initialize
#
@@ -1,4 +1,4 @@
# $Id: run05.mac,v 1.4 2002/03/08 13:43:28 maire Exp $
# $Id: run05.mac,v 1.5 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 2.2 mm
/run/particle/setECut 95 cm
/testem/phys/setGCut 2.2 mm
/testem/phys/setECut 95 cm
#
/run/initialize
#
@@ -1,4 +1,4 @@
# $Id: run06.mac,v 1.4 2002/03/08 13:43:28 maire Exp $
# $Id: run06.mac,v 1.5 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 95 cm
/run/particle/setECut 95 cm
/testem/phys/setGCut 95 cm
/testem/phys/setECut 95 cm
#
/run/initialize
#
@@ -1,4 +1,4 @@
# $Id: run07.mac,v 1.4 2002/03/08 13:43:28 maire Exp $
# $Id: run07.mac,v 1.5 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 95 cm
/run/particle/setECut 30 mm
/testem/phys/setGCut 95 cm
/testem/phys/setECut 30 mm
#
/run/initialize
#
@@ -1,4 +1,4 @@
# $Id: run08.mac,v 1.4 2002/03/08 13:43:28 maire Exp $
# $Id: run08.mac,v 1.5 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 2.2 mm
/run/particle/setECut 6.05 micrometer
/testem/phys/setGCut 2.2 mm
/testem/phys/setECut 6.05 micrometer
#
/run/initialize
#
@@ -1,4 +1,4 @@
# $Id: run09.mac,v 1.4 2002/03/08 13:43:28 maire Exp $
# $Id: run09.mac,v 1.5 2002/12/11 14:19:18 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 2.2 mm
/run/particle/setECut 6.05 micrometer
/testem/phys/setGCut 2.2 mm
/testem/phys/setECut 6.05 micrometer
#
/run/initialize
#
@@ -18,5 +18,5 @@
#
/gun/particle e-
/gun/energy 1 GeV
/event/printModulo 10
/testem/event/printModulo 10
/run/beamOn 100
@@ -0,0 +1,17 @@
# $Id: run10.mac,v 1.2 2002/12/11 14:19:19 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
#
# electron 10 GeV; all processes
#
/control/verbose 2
#
/run/initialize
#
/run/verbose 2
#
/gun/particle e-
/gun/energy 10 GeV
/testem/event/printModulo 10
/run/beamOn 100
@@ -1,4 +1,4 @@
# $Id: run11.mac,v 1.4 2002/03/08 13:43:28 maire Exp $
# $Id: run11.mac,v 1.5 2002/12/11 14:19:19 maire Exp $
#
# Macro file for "TestEm1.cc"
# (can be run in batch, without graphic)
@@ -7,8 +7,8 @@
#
/control/verbose 2
#
/run/particle/setGCut 95 cm
/run/particle/setECut 17 cm
/testem/phys/setGCut 95 cm
/testem/phys/setECut 17 cm
#
/run/initialize
#
@@ -23,7 +23,7 @@
//
// $Id: Em1DetectorConstruction.cc,v 1.9 2002/05/31 17:10:35 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: Em1DetectorMessenger.cc,v 1.4 2001/10/26 12:51:25 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: Em1DetectorMessenger.cc,v 1.6 2002/12/11 14:19:23 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -42,33 +42,33 @@
Em1DetectorMessenger::Em1DetectorMessenger(Em1DetectorConstruction * Em1Det)
:Em1Detector(Em1Det)
{
Em1detDir = new G4UIdirectory("/calor/");
Em1detDir->SetGuidance("Em1 detector control.");
testemDir = new G4UIdirectory("/testem/");
testemDir->SetGuidance("commands specific to this example");
MaterCmd = new G4UIcmdWithAString("/calor/setMat",this);
MaterCmd = new G4UIcmdWithAString("/testem/det/setMat",this);
MaterCmd->SetGuidance("Select material of the box.");
MaterCmd->SetParameterName("choice",false);
MaterCmd->AvailableForStates(PreInit,Idle);
MaterCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
SizeCmd = new G4UIcmdWithADoubleAndUnit("/calor/setSize",this);
SizeCmd = new G4UIcmdWithADoubleAndUnit("/testem/det/setSize",this);
SizeCmd->SetGuidance("Set size of the box");
SizeCmd->SetParameterName("Size",false);
SizeCmd->SetRange("Size>0.");
SizeCmd->SetUnitCategory("Length");
SizeCmd->AvailableForStates(PreInit,Idle);
SizeCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
MagFieldCmd = new G4UIcmdWithADoubleAndUnit("/calor/setField",this);
MagFieldCmd = new G4UIcmdWithADoubleAndUnit("/testem/det/setField",this);
MagFieldCmd->SetGuidance("Define magnetic field.");
MagFieldCmd->SetGuidance("Magnetic field will be in Z direction.");
MagFieldCmd->SetParameterName("Bz",false);
MagFieldCmd->SetUnitCategory("Magnetic flux density");
MagFieldCmd->AvailableForStates(PreInit,Idle);
MagFieldCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
UpdateCmd = new G4UIcmdWithoutParameter("/calor/update",this);
UpdateCmd = new G4UIcmdWithoutParameter("/testem/det/update",this);
UpdateCmd->SetGuidance("Update calorimeter geometry.");
UpdateCmd->SetGuidance("This command MUST be applied before \"beamOn\" ");
UpdateCmd->SetGuidance("if you changed geometrical value(s).");
UpdateCmd->AvailableForStates(Idle);
UpdateCmd->AvailableForStates(G4State_Idle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -79,7 +79,7 @@ Em1DetectorMessenger::~Em1DetectorMessenger()
delete SizeCmd;
delete MagFieldCmd;
delete UpdateCmd;
delete Em1detDir;
delete testemDir;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -22,7 +22,7 @@
//
//
// $Id: Em1EventAction.cc,v 1.6 2001/11/29 11:28:07 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: Em1EventActionMessenger.cc,v 1.4 2001/10/26 12:51:25 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: Em1EventActionMessenger.cc,v 1.6 2002/12/11 14:19:23 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -41,19 +41,19 @@
Em1EventActionMessenger::Em1EventActionMessenger(Em1EventAction* EvAct)
:eventAction(EvAct)
{
DrawCmd = new G4UIcmdWithAString("/event/drawTracks",this);
DrawCmd = new G4UIcmdWithAString("/testem/event/drawTracks",this);
DrawCmd->SetGuidance("Draw the tracks in the event");
DrawCmd->SetGuidance(" Choice : none,charged, all");
DrawCmd->SetParameterName("choice",true);
DrawCmd->SetDefaultValue("all");
DrawCmd->SetCandidates("none charged all");
DrawCmd->AvailableForStates(Idle);
DrawCmd->AvailableForStates(G4State_Idle);
PrintCmd = new G4UIcmdWithAnInteger("/event/printModulo",this);
PrintCmd = new G4UIcmdWithAnInteger("/testem/event/printModulo",this);
PrintCmd->SetGuidance("Print events modulo n");
PrintCmd->SetParameterName("EventNb",false);
PrintCmd->SetRange("EventNb>0");
PrintCmd->AvailableForStates(Idle);
PrintCmd->AvailableForStates(G4State_Idle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -22,7 +22,7 @@
//
//
// $Id: Em1PhysicsList.cc,v 1.6 2002/03/08 13:43:29 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: Em1PhysicsListMessenger.cc,v 1.6 2002/03/08 13:43:30 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: Em1PhysicsListMessenger.cc,v 1.8 2002/12/11 14:19:24 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -40,33 +40,33 @@
Em1PhysicsListMessenger::Em1PhysicsListMessenger(Em1PhysicsList* EvAct)
:physList(EvAct)
{
cutGCmd = new G4UIcmdWithADoubleAndUnit("/run/particle/setGCut",this);
cutGCmd = new G4UIcmdWithADoubleAndUnit("/testem/phys/setGCut",this);
cutGCmd->SetGuidance("Set gamma cut.");
cutGCmd->SetParameterName("Gcut",false);
cutGCmd->SetRange("Gcut>0.");
cutGCmd->SetUnitCategory("Length");
cutGCmd->AvailableForStates(PreInit,Idle);
cutGCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
cutECmd = new G4UIcmdWithADoubleAndUnit("/run/particle/setECut",this);
cutECmd = new G4UIcmdWithADoubleAndUnit("/testem/phys/setECut",this);
cutECmd->SetGuidance("Set electron cut");
cutECmd->SetParameterName("Ecut",false);
cutECmd->SetRange("Ecut>0.");
cutECmd->SetUnitCategory("Length");
cutECmd->AvailableForStates(PreInit,Idle);
cutECmd->AvailableForStates(G4State_PreInit,G4State_Idle);
cutPCmd = new G4UIcmdWithADoubleAndUnit("/run/particle/setPCut",this);
cutPCmd = new G4UIcmdWithADoubleAndUnit("/testem/phys/setPCut",this);
cutPCmd->SetGuidance("Set proton cut.");
cutPCmd->SetParameterName("Pcut",false);
cutPCmd->SetRange("Pcut>0.");
cutPCmd->SetUnitCategory("Length");
cutPCmd->AvailableForStates(PreInit,Idle);
cutPCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
rCmd = new G4UIcmdWithADoubleAndUnit("/run/particle/getRange",this);
rCmd = new G4UIcmdWithADoubleAndUnit("/testem/phys/getRange",this);
rCmd->SetGuidance("get the electron cut for the current material.");
rCmd->SetParameterName("energy",false);
rCmd->SetRange("energy>0.");
rCmd->SetUnitCategory("Energy");
rCmd->AvailableForStates(Idle);
rCmd->AvailableForStates(G4State_Idle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -22,7 +22,7 @@
//
//
// $Id: Em1PrimaryGeneratorAction.cc,v 1.5 2001/12/07 11:49:09 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: Em1PrimaryGeneratorMessenger.cc,v 1.1 2001/12/07 11:49:10 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: Em1PrimaryGeneratorMessenger.cc,v 1.3 2002/12/11 14:19:24 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -41,19 +41,19 @@ Em1PrimaryGeneratorMessenger::Em1PrimaryGeneratorMessenger(
Em1PrimaryGeneratorAction* Em1Gun)
:Em1Action(Em1Gun)
{
DefaultCmd = new G4UIcmdWithAnInteger("/gun/setDefault",this);
DefaultCmd = new G4UIcmdWithAnInteger("/testem/gun/setDefault",this);
DefaultCmd->SetGuidance("set/reset kinematic defined in PrimaryGenerator");
DefaultCmd->SetGuidance("0=boxCenter, else=frontFace");
DefaultCmd->SetParameterName("position",true);
DefaultCmd->SetDefaultValue(0);
DefaultCmd->AvailableForStates(PreInit,Idle);
DefaultCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
RndmCmd = new G4UIcmdWithADouble("/gun/rndm",this);
RndmCmd = new G4UIcmdWithADouble("/testem/gun/rndm",this);
RndmCmd->SetGuidance("random lateral extension on the beam");
RndmCmd->SetGuidance("in fraction of 0.5*sizeYZ");
RndmCmd->SetParameterName("rBeam",false);
RndmCmd->SetRange("rBeam>=0.&&rBeam<=1.");
RndmCmd->AvailableForStates(Idle);
RndmCmd->AvailableForStates(G4State_Idle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: Em1RunAction.cc,v 1.16 2002/06/03 13:49:28 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: Em1RunAction.cc,v 1.18 2002/12/11 14:19:24 maire Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -43,15 +43,7 @@
#include "Randomize.hh"
#ifndef G4NOHIST
#include "AIDA/IAnalysisFactory.h"
#include "AIDA/ITreeFactory.h"
#include "AIDA/ITree.h"
#include "AIDA/IHistogramFactory.h"
#include "AIDA/IHistogram1D.h"
#include "AIDA/IAxis.h"
#include "AIDA/IAnnotation.h"
#include "AIDA/ITupleFactory.h"
#include "AIDA/ITuple.h"
#include "AIDA/AIDA.h"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -73,24 +65,26 @@ void Em1RunAction::bookHisto()
{
#ifndef G4NOHIST
// Creating the analysis factory
IAnalysisFactory* af = AIDA_createAnalysisFactory();
AIDA::IAnalysisFactory* af = AIDA_createAnalysisFactory();
// Creating the tree factory
ITreeFactory* tf = af->createTreeFactory();
AIDA::ITreeFactory* tf = af->createTreeFactory();
// Creating a tree mapped to an hbook file.
tree = tf->create("testem1.paw", false, false, "hbook");
G4bool readOnly = false;
G4bool createNew = true;
tree = tf->create("testem1.paw", "hbook", readOnly, createNew);
// Creating a histogram factory, whose histograms will be handled by the tree
IHistogramFactory* hf = af->createHistogramFactory(*tree);
AIDA::IHistogramFactory* hf = af->createHistogramFactory(*tree);
// booking histograms
histo[0] = hf->create1D("1","track length (mm) of a charged particle",
histo[0] = hf->createHistogram1D("1","track length (mm) of a charged particle",
100,0.,50*cm);
histo[1] = hf->create1D("2","Nb of steps per track (charged particle)",
histo[1] = hf->createHistogram1D("2","Nb of steps per track (charged particle)",
100,0.,100.);
histo[2] = hf->create1D("3","step length (mm) charged particle",
histo[2] = hf->createHistogram1D("3","step length (mm) charged particle",
100,0.,10*mm);
delete hf;
@@ -154,8 +148,14 @@ void Em1RunAction::EndOfRunAction(const G4Run* aRun)
{ //nb of tracks and steps per event
G4double dNbOfEvents = double(NbOfEvents);
G4long oldform = G4cout.setf(G4std::ios::fixed,G4std::ios::floatfield);
G4int oldprec = G4cout.precision(4);
#ifdef G4USE_STD_NAMESPACE
G4std::ios::fmtflags mode = G4cout.flags();
G4cout.setf(G4std::ios::fixed,G4std::ios::floatfield);
#else
G4long mode = G4cout.setf(G4std::ios::fixed,G4std::ios::floatfield);
#endif
G4int prec = G4cout.precision(4);
G4cout << "\n nb tracks/event"
<< " neutral: " << G4std::setw(10) << NbOfTraks0/dNbOfEvents
@@ -176,8 +176,8 @@ void Em1RunAction::EndOfRunAction(const G4Run* aRun)
/dNbOfEvents;
G4cout << G4endl;
G4cout.setf(oldform,G4std::ios::floatfield);
G4cout.precision(oldprec);
G4cout.setf(mode,G4std::ios::floatfield);
G4cout.precision(prec);
}
// delete and remove all contents in ProcCounter
@@ -22,7 +22,7 @@
//
//
// $Id: Em1SteppingAction.cc,v 1.8 2002/05/31 17:10:35 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: Em1SteppingVerbose.cc,v 1.8 2001/10/26 12:51:26 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,7 +23,7 @@
//
// $Id: Em1TrackingAction.cc,v 1.8 2002/05/31 17:10:35 maire Exp $
// GEANT4 tag $Name: geant4-04-01 $
// GEANT4 tag $Name: geant4-05-00 $
//
//
+5 -3
View File
@@ -21,10 +21,10 @@
// ********************************************************************
//
//
// $Id: Em1VisManager.cc,v 1.6 2001/11/15 13:09:44 johna Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: Em1VisManager.cc,v 1.7 2002/11/13 21:39:42 duns Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//
// John Allison 24th January 1998.
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -41,6 +41,7 @@
#include "G4DAWNFILE.hh"
#include "G4GAGTree.hh"
#include "G4HepRepFile.hh"
#include "G4HepRep.hh"
#include "G4RayTracer.hh"
#include "G4VRML1File.hh"
#include "G4VRML2File.hh"
@@ -97,6 +98,7 @@ void Em1VisManager::RegisterGraphicsSystems () {
RegisterGraphicsSystem (new G4DAWNFILE);
RegisterGraphicsSystem (new G4GAGTree);
RegisterGraphicsSystem (new G4HepRepFile);
RegisterGraphicsSystem (new G4HepRep);
RegisterGraphicsSystem (new G4RayTracer);
RegisterGraphicsSystem (new G4VRML1File);
RegisterGraphicsSystem (new G4VRML2File);
@@ -28,5 +28,5 @@
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate
#
/event/drawTracks
/testem/event/drawTracks