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: History,v 1.2 2002/05/28 14:05:17 murakami Exp $
$Id: History,v 1.3 2002/11/19 10:23:45 murakami Exp $
-------------------------------------------------------------------
=========================================================
@@ -14,9 +14,12 @@ track of all tags.
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
Nov. 19, 2002 K.Murakami
- modified as is ExN04. (physics lists and vis. manager)
- "std" namespace left/not cared was modified to "G4std".
May. 28, 2002 K.Murakami
- rename classes and filenames.
- renamed classes and filenames.
Apr. 15, 2002 K.Murakami
- Creared.
@@ -1,3 +1,24 @@
*
* ********************************************************************
* * DISCLAIMER *
* * *
* * The following disclaimer summarizes all the specific disclaimers *
* * of contributors to this software. The specific disclaimers,which *
* * govern, are listed with their locations in: *
* * http://cern.ch/geant4/license *
* * *
* * Neither the authors of this software system, nor their employing *
* * institutes,nor the agencies providing financial support for this *
* * work make any representation or warranty, express or implied, *
* * regarding this software system or assume any liability for its *
* * use. *
* * *
* * This code implementation is the intellectual property of the *
* * GEANT4 collaboration. *
* * By copying, distributing or modifying the Program (or any work *
* * based on the Program) you indicate your acceptance of this *
* * statement, and all its terms. *
* ********************************************************************
c
c Matt.Dobbs@Cern.CH, December 1999
c EXTERNAL statement links PYDATA on most machines.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: hepmcEx01.cc,v 1.1 2002/04/29 20:43:22 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: hepmcEx01.cc,v 1.2 2002/11/19 10:23:46 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// --------------------------------------------------------------
@@ -38,47 +38,72 @@
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIterminal.hh"
#include "G4UItcsh.hh"
#include "ExN04DetectorConstruction.hh"
#include "ExN04PhysicsList.hh"
#include "ExN04PrimaryGeneratorAction.hh"
#include "ExN04RunAction.hh"
#include "ExN04EventAction.hh"
#include "ExN04StackingAction.hh"
#include "ExN04TrackingAction.hh"
#include "ExN04SteppingAction.hh"
#include "ExN04SteppingVerbose.hh"
#ifdef G4VIS_USE
#include "ExN04VisManager.hh"
#endif
int main(int argc,char** argv)
{
G4VSteppingVerbose::SetInstance(new ExN04SteppingVerbose);
G4RunManager* runManager = new G4RunManager;
runManager->SetUserInitialization(new ExN04DetectorConstruction);
runManager->SetUserInitialization(new ExN04PhysicsList);
#ifdef G4VIS_USE
// Visualization, if you choose to have it!
G4VisManager* visManager = new ExN04VisManager;
visManager->Initialize();
#endif
runManager->Initialize();
runManager->SetUserAction(new ExN04PrimaryGeneratorAction);
runManager->SetUserAction(new ExN04RunAction);
runManager->SetUserAction(new ExN04EventAction);
runManager->SetUserAction(new ExN04StackingAction);
runManager->SetUserAction(new ExN04TrackingAction);
runManager->SetUserAction(new ExN04SteppingAction);
//get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
if(argc==1)
{
// G4UIterminal is a (dumb) terminal.
G4UIsession* session = new G4UIterminal;
#ifdef G4UI_USE_TCSH
G4UIsession* session = new G4UIterminal(new G4UItcsh);
#else
G4UIsession* session = new G4UIterminal();
#endif
UImanager->ApplyCommand("/control/execute vis.mac");
session->SessionStart();
delete session;
}
else
{
G4UImanager* UImanager = G4UImanager::GetUIpointer();
G4String command = "/control/execute ";
G4String fileName = argv[1];
UImanager->ApplyCommand(command+fileName);
}
delete runManager;
#ifdef G4VIS_USE
delete visManager;
#endif
return 0;
}
@@ -1,17 +1,15 @@
**********************************************
Geant4 version $Name: geant4-04-01 $
(28-Feb-2002)
Geant4 version $Name: geant4-05-00 $
(31-Jul-2002)
Copyright : Geant4 Collaboration
**********************************************
MuonMinusCaptureAtRest is created
phot: Total cross sections from a parametrisation. Good description from 10 KeV to 50 MeV for all Z
Sandia crossSection below 50 KeV
PhysicsTables from 50 keV to 50 MeV in 100 bins.
phot: Total cross sections from Sandia parametrisation.
MuonMinusCaptureAtRest is created
compt: Total cross sections from a parametrisation. Good description from 10 KeV to (100/Z) GeV.
Scattered gamma energy according Klein-Nishina.
PhysicsTables from 10 keV to 100 GeV in 100 bins.
PhysicsTables from 1 keV to 100 GeV in 80 bins.
conv: Total cross sections from a parametrisation. Good description from 1.5 MeV to 100 GeV for all Z.
e+e- energies according Bethe-Heitler
@@ -121,22 +119,22 @@ GenVertex: -9 ID: 0 (X,cT):0
O: 2 29 2212 +1.02e+00,+1.18e-01,-3.74e+03,+3.74e+03 1 (nil)
30 111 -2.46e-02,-9.09e-02,-3.46e+02,+3.46e+02 2 -20
GenVertex: -10 ID: 0 (X,cT):0
I: 2 15 -1 -2.31e+00,-5.82e+00,+4.62e+01,+4.66e+01 2 -10
14 1 +2.31e+00,+5.82e+00,+1.51e+02,+1.51e+02 2 -10
I: 2 14 1 +2.31e+00,+5.82e+00,+1.51e+02,+1.51e+02 2 -10
15 -1 -2.31e+00,-5.82e+00,+4.62e+01,+4.66e+01 2 -10
O: 1 31 92 +0.00e+00,+0.00e+00,+1.97e+02,+1.97e+02 2 -11
GenVertex: -11 ID: 0 (X,cT):0
I: 1 31 92 +0.00e+00,+0.00e+00,+1.97e+02,+1.97e+02 2 -11
O: 8 36 211 -5.43e-01,+7.13e-02,+3.10e+00,+3.15e+00 1 (nil)
37 221 -4.39e-01,-1.09e+00,+1.62e+01,+1.63e+01 2 -22
38 -213 -1.18e+00,-2.20e+00,+1.67e+01,+1.70e+01 2 -23
39 211 -8.40e-02,-1.67e+00,+1.53e+01,+1.54e+01 1 (nil)
32 -211 +2.54e-01,+1.65e+00,+3.42e+01,+3.42e+01 1 (nil)
O: 8 32 -211 +2.54e-01,+1.65e+00,+3.42e+01,+3.42e+01 1 (nil)
33 211 +1.83e-01,-2.25e-01,+8.98e+00,+8.99e+00 1 (nil)
34 -211 +1.65e+00,+3.36e+00,+8.55e+01,+8.56e+01 1 (nil)
35 221 +1.53e-01,+1.01e-01,+1.68e+01,+1.68e+01 2 -21
36 211 -5.43e-01,+7.13e-02,+3.10e+00,+3.15e+00 1 (nil)
37 221 -4.39e-01,-1.09e+00,+1.62e+01,+1.63e+01 2 -22
38 -213 -1.18e+00,-2.20e+00,+1.67e+01,+1.70e+01 2 -23
39 211 -8.40e-02,-1.67e+00,+1.53e+01,+1.54e+01 1 (nil)
GenVertex: -12 ID: 0 (X,cT):0
I: 2 16 2 -3.95e+00,-1.33e+00,+3.41e+01,+3.44e+01 2 -12
17 -2 +3.95e+00,+1.33e+00,+4.38e+02,+4.38e+02 2 -12
I: 2 17 -2 +3.95e+00,+1.33e+00,+4.38e+02,+4.38e+02 2 -12
16 2 -3.95e+00,-1.33e+00,+3.41e+01,+3.44e+01 2 -12
O: 1 40 92 +0.00e+00,+0.00e+00,+4.72e+02,+4.72e+02 2 -13
GenVertex: -13 ID: 0 (X,cT):0
I: 1 40 92 +0.00e+00,+0.00e+00,+4.72e+02,+4.72e+02 2 -13
@@ -468,26 +466,27 @@ GenEvent: #2 ID=20 SignalProcessGenVertex Barcode: 0
________________________________________________________________________________
GenVertex: -1 ID: 0 (X,cT):0
I: 1 1 2212 +0.00e+00,+0.00e+00,+7.00e+03,+7.00e+03 3 -1
O: 3 3 21 +2.24e-03,-3.47e-01,+8.58e+00,+8.58e+00 3 -3
O: 3 41 2203 +1.57e-01,+9.19e-02,+4.12e+03,+4.12e+03 2 -13
13 1 -1.60e-01,+2.55e-01,+4.51e+02,+4.51e+02 2 -9
41 2203 +1.57e-01,+9.19e-02,+4.12e+03,+4.12e+03 2 -13
3 21 +2.24e-03,-3.47e-01,+8.58e+00,+8.58e+00 3 -3
GenVertex: -2 ID: 0 (X,cT):0
I: 1 2 2212 +0.00e+00,+0.00e+00,-7.00e+03,+7.00e+03 3 -2
O: 2 4 1 +1.81e-01,-9.21e-01,-1.91e+03,+1.91e+03 3 -4
39 2203 -1.81e-01,+9.21e-01,-4.33e+03,+4.33e+03 2 -11
GenVertex: -3 ID: 0 (X,cT):0
I: 1 3 21 +2.24e-03,-3.47e-01,+8.58e+00,+8.58e+00 3 -3
O: 8 5 -2 -1.22e+01,+1.16e+00,-1.11e+01,+1.65e+01 3 -5
O: 8 15 21 +3.52e-01,-6.45e-01,-1.11e+00,+1.33e+00 2 -11
40 2 -5.76e-01,-2.17e+00,+2.82e+00,+3.62e+00 2 -13
5 -2 -1.22e+01,+1.16e+00,-1.11e+01,+1.65e+01 3 -5
11 -4 +1.95e+00,-1.06e+00,-8.18e+00,+8.61e+00 2 -9
12 21 +1.85e+00,+6.48e+00,-3.61e+01,+3.67e+01 2 -9
14 4 +1.07e+01,-5.18e+00,-2.71e+01,+2.96e+01 2 -11
16 21 +3.32e-02,+9.61e-02,-6.60e-02,+1.21e-01 2 -11
17 21 -3.76e-02,-1.65e-01,-9.73e-01,+9.88e-01 2 -11
15 21 +3.52e-01,-6.45e-01,-1.11e+00,+1.33e+00 2 -11
40 2 -5.76e-01,-2.17e+00,+2.82e+00,+3.62e+00 2 -13
GenVertex: -4 ID: 0 (X,cT):0
I: 1 4 1 +1.81e-01,-9.21e-01,-1.91e+03,+1.91e+03 3 -4
O:12 28 21 +8.30e-01,+1.28e+00,-3.84e+01,+3.84e+01 2 -11
O:12 6 1 -1.04e+01,-7.53e+00,-8.52e+02,+8.53e+02 3 -5
28 21 +8.30e-01,+1.28e+00,-3.84e+01,+3.84e+01 2 -11
29 21 +1.45e+00,+3.41e+00,-3.48e+01,+3.50e+01 2 -11
30 21 +4.75e+00,+5.08e+00,-7.07e+01,+7.11e+01 2 -11
31 21 +7.05e+00,+5.30e+00,-7.09e+01,+7.14e+01 2 -11
@@ -498,12 +497,11 @@ GenVertex: -4 ID: 0 (X,cT):0
36 21 -3.72e-01,-3.53e+00,-1.09e+02,+1.09e+02 2 -11
37 21 -3.12e-01,+2.46e-01,-7.86e+01,+7.86e+01 2 -11
38 21 +2.18e+00,-6.98e-01,-1.55e+02,+1.55e+02 2 -11
6 1 -1.04e+01,-7.53e+00,-8.52e+02,+8.53e+02 3 -5
GenVertex: -5 ID: 0 (X,cT):0
I: 2 5 -2 -1.22e+01,+1.16e+00,-1.11e+01,+1.65e+01 3 -5
6 1 -1.04e+01,-7.53e+00,-8.52e+02,+8.53e+02 3 -5
O: 2 8 -24 -9.28e+00,+1.71e+00,-7.59e+02,+7.64e+02 3 -7
7 22 -1.33e+01,-8.08e+00,-1.04e+02,+1.05e+02 3 -6
I: 2 6 1 -1.04e+01,-7.53e+00,-8.52e+02,+8.53e+02 3 -5
5 -2 -1.22e+01,+1.16e+00,-1.11e+01,+1.65e+01 3 -5
O: 2 7 22 -1.33e+01,-8.08e+00,-1.04e+02,+1.05e+02 3 -6
8 -24 -9.28e+00,+1.71e+00,-7.59e+02,+7.64e+02 3 -7
GenVertex: -6 ID: 0 (X,cT):0
I: 1 7 22 -1.33e+01,-8.08e+00,-1.04e+02,+1.05e+02 3 -6
O: 1 9 22 -1.33e+01,-8.08e+00,-1.04e+02,+1.05e+02 1 (nil)
@@ -543,13 +541,16 @@ GenVertex: -10 ID: 0 (X,cT):0
68 113 -9.06e-02,+1.63e-01,+1.67e+02,+1.67e+02 2 -35
69 221 +1.73e-01,+4.07e-01,+2.06e+02,+2.06e+02 2 -36
GenVertex: -11 ID: 0 (X,cT):0
I:26 28 21 +8.30e-01,+1.28e+00,-3.84e+01,+3.84e+01 2 -11
I:26 15 21 +3.52e-01,-6.45e-01,-1.11e+00,+1.33e+00 2 -11
28 21 +8.30e-01,+1.28e+00,-3.84e+01,+3.84e+01 2 -11
29 21 +1.45e+00,+3.41e+00,-3.48e+01,+3.50e+01 2 -11
30 21 +4.75e+00,+5.08e+00,-7.07e+01,+7.11e+01 2 -11
31 21 +7.05e+00,+5.30e+00,-7.09e+01,+7.14e+01 2 -11
32 21 +6.43e-05,-2.87e-01,-2.01e+00,+2.03e+00 2 -11
33 21 -2.01e+00,+1.84e-01,-1.00e+02,+1.00e+02 2 -11
14 4 +1.07e+01,-5.18e+00,-2.71e+01,+2.96e+01 2 -11
16 21 +3.32e-02,+9.61e-02,-6.60e-02,+1.21e-01 2 -11
17 21 -3.76e-02,-1.65e-01,-9.73e-01,+9.88e-01 2 -11
33 21 -2.01e+00,+1.84e-01,-1.00e+02,+1.00e+02 2 -11
34 21 -1.92e+00,-1.52e+00,-2.29e+02,+2.29e+02 2 -11
35 21 -3.17e+00,-1.74e+00,-8.38e+01,+8.39e+01 2 -11
36 21 -3.72e-01,-3.53e+00,-1.09e+02,+1.09e+02 2 -11
@@ -566,50 +567,10 @@ GenVertex: -11 ID: 0 (X,cT):0
22 21 +3.91e+00,-3.13e+00,+3.66e+01,+3.69e+01 2 -11
18 21 -3.89e+00,-1.90e+00,+4.34e+01,+4.36e+01 2 -11
39 2203 -1.81e-01,+9.21e-01,-4.33e+03,+4.33e+03 2 -11
16 21 +3.32e-02,+9.61e-02,-6.60e-02,+1.21e-01 2 -11
17 21 -3.76e-02,-1.65e-01,-9.73e-01,+9.88e-01 2 -11
15 21 +3.52e-01,-6.45e-01,-1.11e+00,+1.33e+00 2 -11
O: 1 70 92 +1.93e+01,+2.76e+00,-3.69e+03,+8.47e+03 2 -12
GenVertex: -12 ID: 0 (X,cT):0
I: 1 70 92 +1.93e+01,+2.76e+00,-3.69e+03,+8.47e+03 2 -12
O:90 157 211 +7.13e-01,-3.28e-01,-1.35e+02,+1.35e+02 1 (nil)
158 113 -8.56e-01,+4.51e-01,-3.86e+02,+3.86e+02 2 -101
159 -211 +8.50e-01,-2.44e-01,-2.40e+03,+2.40e+03 1 (nil)
160 2224 -1.90e-03,+7.51e-01,-1.39e+03,+1.39e+03 2 -102
71 423 +6.74e+00,-3.13e+00,-1.81e+01,+1.96e+01 2 -37
72 213 +1.08e+00,-6.60e-01,-2.31e+00,+2.70e+00 2 -38
73 331 +8.84e-01,-9.17e-01,-1.33e+00,+2.07e+00 2 -39
74 -213 +1.67e+00,-6.02e-01,-4.33e+00,+4.71e+00 2 -40
75 111 -2.29e-01,-5.45e-02,-1.11e+00,+1.15e+00 2 -41
76 211 +1.91e-01,-3.77e-01,+3.30e-01,+5.54e-01 1 (nil)
77 -211 +2.15e-01,+4.10e-01,+1.16e-01,+4.98e-01 1 (nil)
78 211 +1.18e-01,-7.30e-01,-1.31e+00,+1.51e+00 1 (nil)
79 3112 -1.25e-01,-5.92e-02,+4.02e+00,+4.19e+00 2 -42
80 311 -1.08e-01,-3.01e-02,+1.70e+00,+1.77e+00 2 -43
81 -1114 -5.93e-01,-4.62e-01,+7.53e+00,+7.69e+00 2 -44
82 -211 -3.95e-01,+3.08e-01,+9.39e+00,+9.40e+00 1 (nil)
83 211 -3.13e-01,-7.22e-01,+8.53e+00,+8.56e+00 1 (nil)
84 -213 -1.27e-01,-1.01e-01,+5.15e+00,+5.19e+00 2 -45
85 213 -1.20e+00,-1.22e-01,+2.34e+01,+2.35e+01 2 -46
86 223 -7.42e-02,+1.42e-01,+1.52e+01,+1.52e+01 2 -47
87 -213 -9.01e-01,-6.04e-01,+2.49e+01,+2.49e+01 2 -48
88 323 -3.96e-01,+4.77e-01,+8.35e+01,+8.35e+01 2 -49
89 -313 -1.18e+00,+4.38e-01,+2.34e+02,+2.34e+02 2 -50
90 111 -2.10e-02,+1.47e-01,+2.20e+01,+2.20e+01 2 -51
91 -213 -1.47e+00,+1.82e+00,+3.92e+02,+3.92e+02 2 -52
92 213 +1.75e+00,+1.50e+00,+6.91e+02,+6.91e+02 2 -53
93 -211 -8.94e-02,-3.08e-01,+1.41e+02,+1.41e+02 1 (nil)
94 111 +7.06e-01,+3.83e-01,+1.68e+02,+1.68e+02 2 -54
95 223 +1.83e-01,+6.58e-01,+2.64e+02,+2.64e+02 2 -55
96 113 +1.17e+00,-6.49e-01,+1.09e+02,+1.09e+02 2 -56
97 213 -3.59e-02,+9.92e-01,+3.73e+01,+3.74e+01 2 -57
98 221 +4.22e-01,+3.30e-01,+8.56e+00,+8.60e+00 2 -58
99 -213 +9.75e-01,+2.54e+00,+3.20e+01,+3.22e+01 2 -59
100 111 +1.28e+00,+5.91e-01,+1.83e+01,+1.84e+01 2 -60
101 331 +1.59e+00,+2.22e+00,+3.03e+01,+3.04e+01 2 -61
102 213 +1.77e+00,-1.58e+00,+1.71e+01,+1.73e+01 2 -62
103 -211 -1.88e-01,-1.28e-01,+3.87e+00,+3.88e+00 1 (nil)
104 211 +6.95e-01,-7.43e-02,+2.83e+00,+2.91e+00 1 (nil)
O:90 104 211 +6.95e-01,-7.43e-02,+2.83e+00,+2.91e+00 1 (nil)
105 311 +6.37e-01,-2.90e-01,+6.13e+00,+6.19e+00 2 -63
106 333 +8.72e-02,-2.03e+00,+7.62e+00,+7.95e+00 2 -64
107 -323 -1.98e-01,-1.55e-01,+2.64e+00,+2.79e+00 2 -65
@@ -662,6 +623,43 @@ GenVertex: -12 ID: 0 (X,cT):0
154 311 +4.13e-01,+1.80e-01,-8.91e+01,+8.91e+01 2 -99
155 -321 +3.69e-01,-3.68e-01,-5.25e+01,+5.25e+01 1 (nil)
156 221 -4.10e-01,-2.74e-01,-4.88e+01,+4.88e+01 2 -100
157 211 +7.13e-01,-3.28e-01,-1.35e+02,+1.35e+02 1 (nil)
158 113 -8.56e-01,+4.51e-01,-3.86e+02,+3.86e+02 2 -101
159 -211 +8.50e-01,-2.44e-01,-2.40e+03,+2.40e+03 1 (nil)
160 2224 -1.90e-03,+7.51e-01,-1.39e+03,+1.39e+03 2 -102
71 423 +6.74e+00,-3.13e+00,-1.81e+01,+1.96e+01 2 -37
72 213 +1.08e+00,-6.60e-01,-2.31e+00,+2.70e+00 2 -38
73 331 +8.84e-01,-9.17e-01,-1.33e+00,+2.07e+00 2 -39
74 -213 +1.67e+00,-6.02e-01,-4.33e+00,+4.71e+00 2 -40
75 111 -2.29e-01,-5.45e-02,-1.11e+00,+1.15e+00 2 -41
76 211 +1.91e-01,-3.77e-01,+3.30e-01,+5.54e-01 1 (nil)
77 -211 +2.15e-01,+4.10e-01,+1.16e-01,+4.98e-01 1 (nil)
78 211 +1.18e-01,-7.30e-01,-1.31e+00,+1.51e+00 1 (nil)
79 3112 -1.25e-01,-5.92e-02,+4.02e+00,+4.19e+00 2 -42
80 311 -1.08e-01,-3.01e-02,+1.70e+00,+1.77e+00 2 -43
81 -1114 -5.93e-01,-4.62e-01,+7.53e+00,+7.69e+00 2 -44
82 -211 -3.95e-01,+3.08e-01,+9.39e+00,+9.40e+00 1 (nil)
83 211 -3.13e-01,-7.22e-01,+8.53e+00,+8.56e+00 1 (nil)
84 -213 -1.27e-01,-1.01e-01,+5.15e+00,+5.19e+00 2 -45
85 213 -1.20e+00,-1.22e-01,+2.34e+01,+2.35e+01 2 -46
86 223 -7.42e-02,+1.42e-01,+1.52e+01,+1.52e+01 2 -47
87 -213 -9.01e-01,-6.04e-01,+2.49e+01,+2.49e+01 2 -48
88 323 -3.96e-01,+4.77e-01,+8.35e+01,+8.35e+01 2 -49
89 -313 -1.18e+00,+4.38e-01,+2.34e+02,+2.34e+02 2 -50
90 111 -2.10e-02,+1.47e-01,+2.20e+01,+2.20e+01 2 -51
91 -213 -1.47e+00,+1.82e+00,+3.92e+02,+3.92e+02 2 -52
92 213 +1.75e+00,+1.50e+00,+6.91e+02,+6.91e+02 2 -53
93 -211 -8.94e-02,-3.08e-01,+1.41e+02,+1.41e+02 1 (nil)
94 111 +7.06e-01,+3.83e-01,+1.68e+02,+1.68e+02 2 -54
95 223 +1.83e-01,+6.58e-01,+2.64e+02,+2.64e+02 2 -55
96 113 +1.17e+00,-6.49e-01,+1.09e+02,+1.09e+02 2 -56
97 213 -3.59e-02,+9.92e-01,+3.73e+01,+3.74e+01 2 -57
98 221 +4.22e-01,+3.30e-01,+8.56e+00,+8.60e+00 2 -58
99 -213 +9.75e-01,+2.54e+00,+3.20e+01,+3.22e+01 2 -59
100 111 +1.28e+00,+5.91e-01,+1.83e+01,+1.84e+01 2 -60
101 331 +1.59e+00,+2.22e+00,+3.03e+01,+3.04e+01 2 -61
102 213 +1.77e+00,-1.58e+00,+1.71e+01,+1.73e+01 2 -62
103 -211 -1.88e-01,-1.28e-01,+3.87e+00,+3.88e+00 1 (nil)
GenVertex: -13 ID: 0 (X,cT):0
I: 2 41 2203 +1.57e-01,+9.19e-02,+4.12e+03,+4.12e+03 2 -13
40 2 -5.76e-01,-2.17e+00,+2.82e+00,+3.62e+00 2 -13
@@ -1579,8 +1577,8 @@ ________________________________________________________________________________
GenVertex: -1 ID: 0 (X,cT):0
I: 1 1 2212 +0.00e+00,+0.00e+00,+7.00e+03,+7.00e+03 3 -1
O: 3 15 2 +3.93e-01,-4.42e-01,+2.02e+01,+2.03e+01 2 -11
3 21 +5.50e-01,+2.26e-01,+5.57e+01,+5.57e+01 3 -3
14 2101 -9.42e-01,+2.17e-01,+6.53e+03,+6.53e+03 2 -9
3 21 +5.50e-01,+2.26e-01,+5.57e+01,+5.57e+01 3 -3
GenVertex: -2 ID: 0 (X,cT):0
I: 1 2 2212 +0.00e+00,+0.00e+00,-7.00e+03,+7.00e+03 3 -2
O: 2 29 2203 +2.49e+00,+5.11e-01,-5.57e+03,+5.57e+03 2 -11
@@ -1593,13 +1591,13 @@ GenVertex: -3 ID: 0 (X,cT):0
17 21 -1.67e-01,+9.43e-01,-4.22e+00,+4.33e+00 2 -11
GenVertex: -4 ID: 0 (X,cT):0
I: 1 4 1 -2.49e+00,-5.11e-01,-1.27e+03,+1.27e+03 3 -4
O: 7 27 21 -8.57e-01,+1.30e+00,-8.64e+01,+8.64e+01 2 -11
28 21 +2.10e-01,-2.36e-01,-5.04e+02,+5.04e+02 2 -11
6 1 +2.57e+00,+4.38e-01,-4.63e+02,+4.63e+02 3 -5
23 21 -6.21e-01,-2.83e+00,-4.24e+01,+4.25e+01 2 -11
O: 7 23 21 -6.21e-01,-2.83e+00,-4.24e+01,+4.25e+01 2 -11
24 21 -1.09e-01,+2.50e-02,-1.28e+01,+1.28e+01 2 -11
25 21 -4.72e-02,-2.81e-01,-7.30e+00,+7.31e+00 2 -11
26 21 -3.65e+00,+1.06e+00,-1.44e+02,+1.44e+02 2 -11
27 21 -8.57e-01,+1.30e+00,-8.64e+01,+8.64e+01 2 -11
28 21 +2.10e-01,-2.36e-01,-5.04e+02,+5.04e+02 2 -11
6 1 +2.57e+00,+4.38e-01,-4.63e+02,+4.63e+02 3 -5
GenVertex: -5 ID: 0 (X,cT):0
I: 2 5 -2 +5.15e-01,-3.71e-01,+4.37e+00,+4.41e+00 3 -5
6 1 +2.57e+00,+4.38e-01,-4.63e+02,+4.63e+02 3 -5
@@ -1616,36 +1614,36 @@ GenVertex: -8 ID: 0 (X,cT):0
O: 2 12 -14 -9.19e+00,-3.92e+01,-1.68e+02,+1.73e+02 1 (nil)
11 13 +1.17e+01,+3.45e+01,-2.85e+02,+2.87e+02 1 (nil)
GenVertex: -9 ID: 0 (X,cT):0
I: 2 13 2 -1.06e+00,+5.40e-01,+6.25e-01,+1.38e+00 2 -9
14 2101 -9.42e-01,+2.17e-01,+6.53e+03,+6.53e+03 2 -9
I: 2 14 2101 -9.42e-01,+2.17e-01,+6.53e+03,+6.53e+03 2 -9
13 2 -1.06e+00,+5.40e-01,+6.25e-01,+1.38e+00 2 -9
O: 1 35 92 -2.00e+00,+7.56e-01,+6.53e+03,+6.54e+03 2 -10
GenVertex: -10 ID: 0 (X,cT):0
I: 1 35 92 -2.00e+00,+7.56e-01,+6.53e+03,+6.54e+03 2 -10
O: 9 41 -313 +6.61e-02,+2.00e-01,+1.02e+02,+1.02e+02 2 -20
O: 9 37 333 -1.11e+00,+1.44e-01,+2.44e+00,+2.87e+00 2 -17
38 -321 +5.75e-01,-1.63e-01,+3.07e+00,+3.17e+00 1 (nil)
39 323 -4.93e-01,+1.18e-01,+1.14e+01,+1.14e+01 2 -18
40 333 +4.67e-02,-1.10e-02,+6.10e+01,+6.10e+01 2 -19
41 -313 +6.61e-02,+2.00e-01,+1.02e+02,+1.02e+02 2 -20
42 -211 +6.62e-01,+2.34e-03,+1.91e+01,+1.92e+01 1 (nil)
43 213 -1.13e+00,+2.68e-01,+8.99e+02,+8.99e+02 2 -21
44 2112 -3.44e-01,+2.18e-02,+5.44e+03,+5.44e+03 1 (nil)
36 321 -2.73e-01,+1.76e-01,+9.69e-01,+1.13e+00 1 (nil)
37 333 -1.11e+00,+1.44e-01,+2.44e+00,+2.87e+00 2 -17
38 -321 +5.75e-01,-1.63e-01,+3.07e+00,+3.17e+00 1 (nil)
39 323 -4.93e-01,+1.18e-01,+1.14e+01,+1.14e+01 2 -18
40 333 +4.67e-02,-1.10e-02,+6.10e+01,+6.10e+01 2 -19
GenVertex: -11 ID: 0 (X,cT):0
I:15 16 21 +1.28e+00,-8.74e-01,+5.02e+01,+5.02e+01 2 -11
17 21 -1.67e-01,+9.43e-01,-4.22e+00,+4.33e+00 2 -11
I:15 29 2203 +2.49e+00,+5.11e-01,-5.57e+03,+5.57e+03 2 -11
23 21 -6.21e-01,-2.83e+00,-4.24e+01,+4.25e+01 2 -11
24 21 -1.09e-01,+2.50e-02,-1.28e+01,+1.28e+01 2 -11
25 21 -4.72e-02,-2.81e-01,-7.30e+00,+7.31e+00 2 -11
26 21 -3.65e+00,+1.06e+00,-1.44e+02,+1.44e+02 2 -11
27 21 -8.57e-01,+1.30e+00,-8.64e+01,+8.64e+01 2 -11
28 21 +2.10e-01,-2.36e-01,-5.04e+02,+5.04e+02 2 -11
15 2 +3.93e-01,-4.42e-01,+2.02e+01,+2.03e+01 2 -11
18 21 +9.34e-01,+2.91e+00,+1.97e+01,+2.00e+01 2 -11
19 21 -2.14e+00,+4.17e+00,-2.51e+00,+5.32e+00 2 -11
20 21 +2.14e+00,-4.17e+00,-7.24e+00,+8.62e+00 2 -11
21 21 +2.68e+00,-1.72e+00,-3.07e+01,+3.09e+01 2 -11
22 21 -2.68e+00,+1.72e+00,-1.05e+02,+1.05e+02 2 -11
29 2203 +2.49e+00,+5.11e-01,-5.57e+03,+5.57e+03 2 -11
27 21 -8.57e-01,+1.30e+00,-8.64e+01,+8.64e+01 2 -11
28 21 +2.10e-01,-2.36e-01,-5.04e+02,+5.04e+02 2 -11
23 21 -6.21e-01,-2.83e+00,-4.24e+01,+4.25e+01 2 -11
24 21 -1.09e-01,+2.50e-02,-1.28e+01,+1.28e+01 2 -11
25 21 -4.72e-02,-2.81e-01,-7.30e+00,+7.31e+00 2 -11
26 21 -3.65e+00,+1.06e+00,-1.44e+02,+1.44e+02 2 -11
16 21 +1.28e+00,-8.74e-01,+5.02e+01,+5.02e+01 2 -11
17 21 -1.67e-01,+9.43e-01,-4.22e+00,+4.33e+00 2 -11
O: 1 45 92 -1.50e-01,+2.09e+00,-6.43e+03,+6.61e+03 2 -12
GenVertex: -12 ID: 0 (X,cT):0
I: 1 45 92 -1.50e-01,+2.09e+00,-6.43e+03,+6.61e+03 2 -12
@@ -1717,13 +1715,13 @@ GenVertex: -15 ID: 0 (X,cT):0
O: 1 102 92 +0.00e+00,+0.00e+00,-1.73e+01,+1.84e+01 2 -16
GenVertex: -16 ID: 0 (X,cT):0
I: 1 102 92 +0.00e+00,+0.00e+00,-1.73e+01,+1.84e+01 2 -16
O: 7 103 113 +2.54e-01,-1.28e-01,-3.69e+00,+3.77e+00 2 -57
104 223 -7.85e-02,+4.34e-02,-9.82e-01,+1.26e+00 2 -58
105 213 +1.78e-01,+3.27e-01,-2.62e+00,+2.77e+00 2 -59
106 111 +1.94e-01,-8.30e-01,-1.78e+00,+1.98e+00 2 -60
O: 7 106 111 +1.94e-01,-8.30e-01,-1.78e+00,+1.98e+00 2 -60
107 -211 -2.88e-01,+5.23e-01,-3.10e+00,+3.16e+00 1 (nil)
108 223 +2.53e-01,-1.38e-01,-2.52e+00,+2.66e+00 2 -61
109 113 -5.13e-01,+2.04e-01,-2.60e+00,+2.77e+00 2 -62
103 113 +2.54e-01,-1.28e-01,-3.69e+00,+3.77e+00 2 -57
104 223 -7.85e-02,+4.34e-02,-9.82e-01,+1.26e+00 2 -58
105 213 +1.78e-01,+3.27e-01,-2.62e+00,+2.77e+00 2 -59
GenVertex: -17 ID: 0 (X,cT):0
I: 1 37 333 -1.11e+00,+1.44e-01,+2.44e+00,+2.87e+00 2 -17
O: 2 110 321 -5.35e-01,-4.15e-03,+1.39e+00,+1.57e+00 1 (nil)
@@ -1,17 +1,15 @@
**********************************************
Geant4 version $Name: geant4-04-01 $
(28-Feb-2002)
Geant4 version $Name: geant4-05-00 $
(31-Jul-2002)
Copyright : Geant4 Collaboration
**********************************************
MuonMinusCaptureAtRest is created
phot: Total cross sections from a parametrisation. Good description from 10 KeV to 50 MeV for all Z
Sandia crossSection below 50 KeV
PhysicsTables from 50 keV to 50 MeV in 100 bins.
phot: Total cross sections from Sandia parametrisation.
MuonMinusCaptureAtRest is created
compt: Total cross sections from a parametrisation. Good description from 10 KeV to (100/Z) GeV.
Scattered gamma energy according Klein-Nishina.
PhysicsTables from 10 keV to 100 GeV in 100 bins.
PhysicsTables from 1 keV to 100 GeV in 80 bins.
conv: Total cross sections from a parametrisation. Good description from 1.5 MeV to 100 GeV for all Z.
e+e- energies according Bethe-Heitler
@@ -192,68 +190,35 @@ current generator type: pythia
Stage 0->1 : 1 hits found in the muon chamber.
Stage 1->2 : 1 isolated muon found.
>>> Event 0
75 hits are stored in ExN04TrackerHitsCollection.
58 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 0.917237 (GeV)
107 hits are stored in ExN04TrackerHitsCollection.
45 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 0.892332 (GeV)
1 hits are stored in ExN04MuonHitsCollection.
Stage 0->1 : 1 hits found in the muon chamber.
Stage 1->2 : 1 isolated muon found.
>>> Event 1
174 hits are stored in ExN04TrackerHitsCollection.
84 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 1.55103 (GeV)
179 hits are stored in ExN04TrackerHitsCollection.
67 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 1.15456 (GeV)
1 hits are stored in ExN04MuonHitsCollection.
Stage 0->1 : 1 hits found in the muon chamber.
Stage 1->2 : 1 isolated muon found.
>>> Event 2
177 hits are stored in ExN04TrackerHitsCollection.
83 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 1.28925 (GeV)
176 hits are stored in ExN04TrackerHitsCollection.
84 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 1.33361 (GeV)
1 hits are stored in ExN04MuonHitsCollection.
Stage 0->1 : 1 hits found in the muon chamber.
Stage 1->2 : 1 isolated muon found.
>>> Event 3
117 hits are stored in ExN04TrackerHitsCollection.
85 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 0.982027 (GeV)
90 hits are stored in ExN04TrackerHitsCollection.
80 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 0.953729 (GeV)
1 hits are stored in ExN04MuonHitsCollection.
Stage 0->1 : 1 hits found in the muon chamber.
G4VContinuousDiscreteProcess::PostStepGetPhysicalInteractionLength [ hIoni]
Particle type - pi-
mass: 0.13957[GeV]
charge: 5.9304e+251[e]
Direction x: 0.632245, y: 0.524612, z: 0.570131
Total Momentum = 0.240455[GeV]
Momentum: 0.152026[GeV], y: 0.126145[GeV], z: 0.137091[GeV]
Total Energy = 0.278026[GeV]
Kinetic Energy = 0.138456[GeV]
ProperTime = 0[ns]
in Material Air
MeanFreePath = 0[cm]
Stage 1->2 : 1 isolated muon found.
>>> Event 4
386 hits are stored in ExN04TrackerHitsCollection.
140 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 2.25866 (GeV)
346 hits are stored in ExN04TrackerHitsCollection.
167 hits are stored in ExN04CalorimeterHitsCollection.
Total energy deposition in calorimeter : 2.95158 (GeV)
1 hits are stored in ExN04MuonHitsCollection.
1********* PYSTAT: Statistics on Number of Events and Cross-sections *********
==============================================================================
I I I I
I Subprocess I Number of points I Sigma I
I I I I
I----------------------------------I----------------------------I (mb) I
I I I I
I N:o Type I Generated Tried I I
I I I I
==============================================================================
I I I I
I 0 All included subprocesses I 5 17 I 4.146E-12 I
I 102 g + g -> h0 I 4 6 I 2.995E-12 I
I 123 f + f' -> f + f' + h0 I 0 3 I 4.272E-13 I
I 124 f + f' -> f" + f"' + h0 I 1 8 I 7.240E-13 I
I I I I
==============================================================================
********* Fraction of events that fail fragmentation cuts = 0.00000 *********
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: ExN04EMPhysics.hh,v 1.1 2002/04/29 20:43:37 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: ExN04EMPhysics.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// ------------------------------------------------------------
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: ExN04GeneralPhysics.hh,v 1.1 2002/04/29 20:43:39 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: ExN04GeneralPhysics.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// ------------------------------------------------------------
@@ -19,21 +19,9 @@
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: ExN04HadronPhysics.hh,v 1.1 2002/04/29 20:43:40 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
// Class Description:
// This class is an derived class of G4VPhysicsConstructor
//
// -------------------------------------------
// History
// first version 12 Nov. 2000 by H.Kurashige
// ------------------------------------------------------------
//========================
// taken from example N04 of G4 distribution
//========================
#ifndef ExN04HadronPhysics_h
#define ExN04HadronPhysics_h 1
@@ -147,6 +135,16 @@
#include "G4KaonMinusAbsorptionAtRest.hh"
#endif
// quark gluon string model with chips afterburner.
#include "G4TheoFSGenerator.hh"
#include "G4ExcitationHandler.hh"
#include "G4PreCompoundModel.hh"
#include "G4GeneratorPrecompoundInterface.hh"
#include "G4QGSModel.hh"
#include "G4QGSParticipants.hh"
#include "G4QGSMFragmentation.hh"
#include "G4ExcitedStringDecay.hh"
class ExN04HadronPhysics : public G4VPhysicsConstructor
{
public:
@@ -171,14 +169,12 @@ class ExN04HadronPhysics : public G4VPhysicsConstructor
// Pi +
G4PionPlusInelasticProcess thePionPlusInelastic;
G4LEPionPlusInelastic* theLEPionPlusModel;
G4HEPionPlusInelastic* theHEPionPlusModel;
G4MultipleScattering thePionPlusMult;
G4hIonisation thePionPlusIonisation;
// Pi -
G4PionMinusInelasticProcess thePionMinusInelastic;
G4LEPionMinusInelastic* theLEPionMinusModel;
G4HEPionMinusInelastic* theHEPionMinusModel;
G4MultipleScattering thePionMinusMult;
G4hIonisation thePionMinusIonisation;
#ifdef TRIUMF_STOP_PIMINUS
@@ -187,13 +183,23 @@ class ExN04HadronPhysics : public G4VPhysicsConstructor
G4PiMinusAbsorptionAtRest thePionMinusAbsorption;
#endif
// pi+ and pi-
G4TheoFSGenerator theTheoModel;
G4ExcitationHandler theHandler;
G4PreCompoundModel * thePreEquilib;
G4GeneratorPrecompoundInterface theCascade;
G4QGSModel< G4QGSParticipants > theStringModel;
G4QGSMFragmentation theFragmentation;
G4ExcitedStringDecay * theStringDecay;
// K +
G4KaonPlusInelasticProcess theKaonPlusInelastic;
G4LEKaonPlusInelastic* theLEKaonPlusModel;
G4HEKaonPlusInelastic* theHEKaonPlusModel;
G4MultipleScattering theKaonPlusMult;
G4hIonisation theKaonPlusIonisation;
// K -
G4KaonMinusInelasticProcess theKaonMinusInelastic;
G4LEKaonMinusInelastic* theLEKaonMinusModel;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: ExN04IonPhysics.hh,v 1.1 2002/04/29 20:43:41 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: ExN04IonPhysics.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// ------------------------------------------------------------
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: ExN04MuonPhysics.hh,v 1.1 2002/04/29 20:43:43 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: ExN04MuonPhysics.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// ------------------------------------------------------------
@@ -23,7 +23,7 @@
// ====================================================================
//
// ExN04PrimaryGeneratorAction.hh
// $Id: ExN04PrimaryGeneratorAction.hh,v 1.1 2002/04/29 20:43:45 asaim Exp $
// $Id: ExN04PrimaryGeneratorAction.hh,v 1.2 2002/11/19 10:15:51 murakami Exp $
//
// ====================================================================
#ifndef EXN04_PRIMARY_GENERATOR_ACTION_H
@@ -45,7 +45,7 @@ private:
G4VPrimaryGenerator* currentGenerator;
G4String currentGeneratorName;
std::map<G4String, G4VPrimaryGenerator*> gentypeMap;
G4std::map<G4String, G4VPrimaryGenerator*> gentypeMap;
ExN04PrimaryGeneratorMessenger* messenger;
@@ -0,0 +1,58 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: ExN04RunAction.hh,v 1.1 2002/11/19 10:15:51 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef ExN04RunAction_h
#define ExN04RunAction_h 1
#include "G4UserRunAction.hh"
#include "globals.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class G4Run;
class ExN04RunAction : public G4UserRunAction
{
public:
ExN04RunAction();
~ExN04RunAction();
public:
void BeginOfRunAction(const G4Run*);
void EndOfRunAction(const G4Run*);
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -0,0 +1,57 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: ExN04SteppingVerbose.hh,v 1.1 2002/11/19 10:15:52 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
// This class manages the verbose outputs in G4SteppingManager.
// It inherits from G4SteppingVerbose.
// It shows how to extract informations during the tracking of a particle.
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class ExN04SteppingVerbose;
#ifndef ExN04SteppingVerbose_h
#define ExN04SteppingVerbose_h 1
#include "G4SteppingVerbose.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class ExN04SteppingVerbose : public G4SteppingVerbose
{
public:
ExN04SteppingVerbose();
~ExN04SteppingVerbose();
void StepInfo();
void TrackingStarted();
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
@@ -0,0 +1,72 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: ExN04VisManager.hh,v 1.1 2002/11/19 10:15:52 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
// Example Visualization Manager implementing virtual function
// RegisterGraphicsSystems. Exploits C-pre-processor variables
// G4VIS_USE_DAWN, etc., which are set by the GNUmakefiles if
// environment variables of the same name are set.
// So all you have to do is set environment variables and compile and
// instantiate this in your main().
// Alternatively, you can implement an empty function here and just
// register the systems you want in your main(), e.g.:
// G4VisManager* myVisManager = new MyVisManager;
// myVisManager -> RegisterGraphicsSystem (new MyGraphicsSystem);
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef ExN04VisManager_h
#define ExN04VisManager_h 1
#ifdef G4VIS_USE
#include "G4VisManager.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class ExN04VisManager: public G4VisManager {
public:
ExN04VisManager ();
private:
void RegisterGraphicsSystems ();
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif
#endif
@@ -23,7 +23,7 @@
// ====================================================================
//
// HepMCG4PythiaInterface.hh
// $Id: HepMCG4PythiaInterface.hh,v 1.1 2002/05/28 13:52:40 murakami Exp $
// $Id: HepMCG4PythiaInterface.hh,v 1.2 2002/11/19 10:15:52 murakami Exp $
//
// A generic interface class with Pythia event generator via HepMC.
//
@@ -69,7 +69,7 @@ public:
void CallPygive(G4String par);
void CallPyrget(G4int lun, G4int move);
void CallPyrset(G4int lun, G4int move);
void PrintRandomStatus(G4std::ostream& ostr=G4std::cout) const;
void PrintRandomStatus(G4std::ostream& ostr=G4cout) const;
// setup user parameters (empty in default).
// Implement your parameters in a delived class if you want.
@@ -21,9 +21,9 @@
// ********************************************************************
//
expHall_x = 800.*cm;
expHall_y = 800.*cm;
expHall_z = 800.*cm;
expHall_x = 600.*cm;
expHall_y = 600.*cm;
expHall_z = 600.*cm;
trkTubs_rmax = 50.*cm;
trkTubs_rmin = 20.*cm;
@@ -72,5 +72,5 @@
muBox_radius = 350.*cm;
muBox_width = muBox_radius - 5.*cm;
muBox_thick = 1.*cm;
muBox_length = 2.*muBox_radius;
muBox_length = expHall_z - 10.*cm;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: ExN04EMPhysics.cc,v 1.1 2002/04/29 20:43:59 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: ExN04EMPhysics.cc,v 1.2 2002/11/19 10:17:03 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -33,6 +33,7 @@
#include "G4VHitsCollection.hh"
#include "G4TrajectoryContainer.hh"
#include "G4Trajectory.hh"
#include "G4VVisManager.hh"
#include "G4SDManager.hh"
#include "G4UImanager.hh"
#include "G4ios.hh"
@@ -62,7 +63,25 @@ void ExN04EventAction::BeginOfEventAction(const G4Event*)
void ExN04EventAction::EndOfEventAction(const G4Event* evt)
{
G4cout << ">>> Event " << evt->GetEventID() << G4endl;
// get number of stored trajectories
//
G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
G4int n_trajectories = 0;
if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
// extract the trajectories and draw them
//
if (G4VVisManager::GetConcreteInstance())
{
for (G4int i=0; i<n_trajectories; i++)
{ G4Trajectory* trj = (G4Trajectory*)
((*(evt->GetTrajectoryContainer()))[i]);
trj->DrawTrajectory(50);
}
}
if(trackerCollID<0||calorimeterCollID<0||muonCollID<0) return;
G4HCofThisEvent * HCE = evt->GetHCofThisEvent();
@@ -101,5 +120,3 @@ void ExN04EventAction::EndOfEventAction(const G4Event* evt)
}
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: ExN04GeneralPhysics.cc,v 1.1 2002/04/29 20:44:01 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: ExN04GeneralPhysics.cc,v 1.2 2002/11/19 10:17:04 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -19,13 +19,6 @@
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: ExN04HadronPhysics.cc,v 1.1 2002/04/29 20:44:01 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
//
#include "ExN04HadronPhysics.hh"
#include "globals.hh"
@@ -40,6 +33,7 @@ ExN04HadronPhysics::ExN04HadronPhysics(const G4String& name)
ExN04HadronPhysics::~ExN04HadronPhysics()
{
delete theStringDecay;
}
#include "G4ParticleDefinition.hh"
@@ -78,15 +72,25 @@ void ExN04HadronPhysics::ConstructProcess()
theElasticModel = new G4LElastic();
theElasticProcess.RegisterMe(theElasticModel);
// pi+ and pi-
thePreEquilib = new G4PreCompoundModel(&theHandler);
theCascade.SetDeExcitation(thePreEquilib);
theTheoModel.SetTransport(&theCascade);
theTheoModel.SetHighEnergyGenerator(&theStringModel);
theStringDecay = new G4ExcitedStringDecay(&theFragmentation);
theStringModel.SetFragmentationModel(theStringDecay);
theTheoModel.SetMinEnergy(15*GeV);
theTheoModel.SetMaxEnergy(100*TeV);
// PionPlus
pManager = G4PionPlus::PionPlus()->GetProcessManager();
// add process
pManager->AddDiscreteProcess(&theElasticProcess);
theLEPionPlusModel = new G4LEPionPlusInelastic();
theHEPionPlusModel = new G4HEPionPlusInelastic();
thePionPlusInelastic.RegisterMe(theLEPionPlusModel);
thePionPlusInelastic.RegisterMe(theHEPionPlusModel);
thePionPlusInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&thePionPlusInelastic);
pManager->AddProcess(&thePionPlusIonisation, ordInActive,2, 2);
@@ -101,9 +105,8 @@ void ExN04HadronPhysics::ConstructProcess()
pManager->AddDiscreteProcess(&theElasticProcess);
theLEPionMinusModel = new G4LEPionMinusInelastic();
theHEPionMinusModel = new G4HEPionMinusInelastic();
thePionMinusInelastic.RegisterMe(theLEPionMinusModel);
thePionMinusInelastic.RegisterMe(theHEPionMinusModel);
thePionMinusInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&thePionMinusInelastic);
pManager->AddProcess(&thePionMinusIonisation, ordInActive,2, 2);
@@ -122,7 +125,7 @@ void ExN04HadronPhysics::ConstructProcess()
theLEKaonPlusModel = new G4LEKaonPlusInelastic();
theHEKaonPlusModel = new G4HEKaonPlusInelastic();
theKaonPlusInelastic.RegisterMe(theLEKaonPlusModel);
theKaonPlusInelastic.RegisterMe(theHEKaonPlusModel);
theKaonPlusInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&theKaonPlusInelastic);
pManager->AddProcess(&theKaonPlusIonisation, ordInActive,2, 2);
@@ -180,7 +183,7 @@ void ExN04HadronPhysics::ConstructProcess()
theLEProtonModel = new G4LEProtonInelastic();
theHEProtonModel = new G4HEProtonInelastic();
theProtonInelastic.RegisterMe(theLEProtonModel);
theProtonInelastic.RegisterMe(theHEProtonModel);
theProtonInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&theProtonInelastic);
pManager->AddProcess(&theProtonIonisation, ordInActive,2, 2);
@@ -216,7 +219,7 @@ void ExN04HadronPhysics::ConstructProcess()
theLENeutronModel = new G4LENeutronInelastic();
theHENeutronModel = new G4HENeutronInelastic();
theNeutronInelastic.RegisterMe(theLENeutronModel);
theNeutronInelastic.RegisterMe(theHENeutronModel);
theNeutronInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&theNeutronInelastic);
//theNeutronFissionModel = new G4LFission();
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: ExN04IonPhysics.cc,v 1.1 2002/04/29 20:44:01 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: ExN04IonPhysics.cc,v 1.2 2002/11/19 10:17:04 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: ExN04MuonPhysics.cc,v 1.1 2002/04/29 20:44:03 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: ExN04MuonPhysics.cc,v 1.2 2002/11/19 10:17:04 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: ExN04PhysicsList.cc,v 1.1 2002/04/29 20:44:04 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: ExN04PhysicsList.cc,v 1.2 2002/11/19 10:17:04 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -0,0 +1,76 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: ExN04RunAction.cc,v 1.1 2002/11/19 10:17:05 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "ExN04RunAction.hh"
#include "G4Run.hh"
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4VVisManager.hh"
#include "G4ios.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
ExN04RunAction::ExN04RunAction()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
ExN04RunAction::~ExN04RunAction()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void ExN04RunAction::BeginOfRunAction(const G4Run* aRun)
{
G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
G4RunManager::GetRunManager()->SetRandomNumberStore(true);
if (G4VVisManager::GetConcreteInstance())
{
G4UImanager* UI = G4UImanager::GetUIpointer();
UI->ApplyCommand("/vis/scene/notifyHandlers");
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void ExN04RunAction::EndOfRunAction(const G4Run*)
{
if (G4VVisManager::GetConcreteInstance())
{
G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -0,0 +1,176 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: ExN04SteppingVerbose.cc,v 1.1 2002/11/19 10:17:05 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "ExN04SteppingVerbose.hh"
#include "G4SteppingManager.hh"
#include "G4UnitsTable.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
ExN04SteppingVerbose::ExN04SteppingVerbose()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
ExN04SteppingVerbose::~ExN04SteppingVerbose()
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void ExN04SteppingVerbose::StepInfo()
{
CopyState();
G4int prec = G4cout.precision(3);
if( verboseLevel >= 1 ){
if( verboseLevel >= 4 ) VerboseTrack();
if( verboseLevel >= 3 ){
G4cout << G4endl;
G4cout << G4std::setw( 5) << "#Step#" << " "
<< G4std::setw( 6) << "X" << " "
<< G4std::setw( 6) << "Y" << " "
<< G4std::setw( 6) << "Z" << " "
<< G4std::setw( 9) << "KineE" << " "
<< G4std::setw( 9) << "dEStep" << " "
<< G4std::setw(10) << "StepLeng"
<< G4std::setw(10) << "TrakLeng"
<< G4std::setw(10) << "Volume" << " "
<< G4std::setw(10) << "Process" << G4endl;
}
G4cout << G4std::setw(5) << fTrack->GetCurrentStepNumber() << " "
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
<< G4std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
<< G4std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
<< G4std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
<< G4std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
// if( fStepStatus != fWorldBoundary){
if( fTrack->GetNextVolume() != 0 ) {
G4cout << G4std::setw(10) << fTrack->GetVolume()->GetName();
} else {
G4cout << G4std::setw(10) << "OutOfWorld";
}
if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL){
G4cout << " "
<< G4std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
->GetProcessName();
} else {
G4cout << " UserLimit";
}
G4cout << G4endl;
if( verboseLevel == 2 ){
G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
fN2ndariesAlongStepDoIt +
fN2ndariesPostStepDoIt;
if(tN2ndariesTot>0){
G4cout << " :----- List of 2ndaries - "
<< "#SpawnInStep=" << G4std::setw(3) << tN2ndariesTot
<< "(Rest=" << G4std::setw(2) << fN2ndariesAtRestDoIt
<< ",Along=" << G4std::setw(2) << fN2ndariesAlongStepDoIt
<< ",Post=" << G4std::setw(2) << fN2ndariesPostStepDoIt
<< "), "
<< "#SpawnTotal=" << G4std::setw(3) << (*fSecondary).size()
<< " ---------------"
<< G4endl;
for(size_t lp1=(*fSecondary).size()-tN2ndariesTot;
lp1<(*fSecondary).size(); lp1++){
G4cout << " : "
<< G4std::setw(6)
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
<< G4std::setw(6)
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),"Length")
<< G4std::setw(6)
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),"Length")
<< G4std::setw(6)
<< G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),"Energy")
<< G4std::setw(10)
<< (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
G4cout << G4endl;
}
G4cout << " :-----------------------------"
<< "----------------------------------"
<< "-- EndOf2ndaries Info ---------------"
<< G4endl;
}
}
}
G4cout.precision(prec);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void ExN04SteppingVerbose::TrackingStarted()
{
CopyState();
G4int prec = G4cout.precision(3);
if( verboseLevel > 0 ){
G4cout << G4std::setw( 5) << "Step#" << " "
<< G4std::setw( 6) << "X" << " "
<< G4std::setw( 6) << "Y" << " "
<< G4std::setw( 6) << "Z" << " "
<< G4std::setw( 9) << "KineE" << " "
<< G4std::setw( 9) << "dEStep" << " "
<< G4std::setw(10) << "StepLeng"
<< G4std::setw(10) << "TrakLeng"
<< G4std::setw(10) << "Volume" << " "
<< G4std::setw(10) << "Process" << G4endl;
G4cout << G4std::setw(5) << fTrack->GetCurrentStepNumber() << " "
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
<< G4std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
<< G4std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
<< G4std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
<< G4std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
<< G4std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
if(fTrack->GetNextVolume()){
G4cout << G4std::setw(10) << fTrack->GetVolume()->GetName();
} else {
G4cout << G4std::setw(10) << "OutOfWorld";
}
G4cout << " initStep" << G4endl;
}
G4cout.precision(prec);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -0,0 +1,155 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: ExN04VisManager.cc,v 1.1 2002/11/19 10:17:05 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
// John Allison 24th January 1998.
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifdef G4VIS_USE
#include "ExN04VisManager.hh"
// Supported drivers...
// Not needing external packages or libraries...
#include "G4ASCIITree.hh"
#include "G4DAWNFILE.hh"
#include "G4GAGTree.hh"
#include "G4HepRepFile.hh"
#include "G4HepRep.hh"
#include "G4RayTracer.hh"
#include "G4VRML1File.hh"
#include "G4VRML2File.hh"
// Needing external packages or libraries...
#ifdef G4VIS_USE_DAWN
#include "G4FukuiRenderer.hh"
#endif
#ifdef G4VIS_USE_OPACS
#include "G4Wo.hh"
#include "G4Xo.hh"
#endif
#ifdef G4VIS_USE_OPENGLX
#include "G4OpenGLImmediateX.hh"
#include "G4OpenGLStoredX.hh"
#endif
#ifdef G4VIS_USE_OPENGLWIN32
#include "G4OpenGLImmediateWin32.hh"
#include "G4OpenGLStoredWin32.hh"
#endif
#ifdef G4VIS_USE_OPENGLXM
#include "G4OpenGLImmediateXm.hh"
#include "G4OpenGLStoredXm.hh"
#endif
#ifdef G4VIS_USE_OIX
#include "G4OpenInventorX.hh"
#endif
#ifdef G4VIS_USE_OIWIN32
#include "G4OpenInventorWin32.hh"
#endif
#ifdef G4VIS_USE_VRML
#include "G4VRML1.hh"
#include "G4VRML2.hh"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
ExN04VisManager::ExN04VisManager () {}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void ExN04VisManager::RegisterGraphicsSystems () {
// Graphics Systems not needing external packages or libraries...
RegisterGraphicsSystem (new G4ASCIITree);
RegisterGraphicsSystem (new G4DAWNFILE);
RegisterGraphicsSystem (new G4GAGTree);
RegisterGraphicsSystem (new G4HepRepFile);
RegisterGraphicsSystem (new G4HepRep);
RegisterGraphicsSystem (new G4RayTracer);
RegisterGraphicsSystem (new G4VRML1File);
RegisterGraphicsSystem (new G4VRML2File);
// Graphics systems needing external packages or libraries...
#ifdef G4VIS_USE_DAWN
RegisterGraphicsSystem (new G4FukuiRenderer);
#endif
#ifdef G4VIS_USE_OPACS
RegisterGraphicsSystem (new G4Wo);
RegisterGraphicsSystem (new G4Xo);
#endif
#ifdef G4VIS_USE_OPENGLX
RegisterGraphicsSystem (new G4OpenGLImmediateX);
RegisterGraphicsSystem (new G4OpenGLStoredX);
#endif
#ifdef G4VIS_USE_OPENGLWIN32
RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
RegisterGraphicsSystem (new G4OpenGLStoredWin32);
#endif
#ifdef G4VIS_USE_OPENGLXM
RegisterGraphicsSystem (new G4OpenGLImmediateXm);
RegisterGraphicsSystem (new G4OpenGLStoredXm);
#endif
#ifdef G4VIS_USE_OIX
RegisterGraphicsSystem (new G4OpenInventorX);
#endif
#ifdef G4VIS_USE_OIWIN32
RegisterGraphicsSystem (new G4OpenInventorWin32);
#endif
#ifdef G4VIS_USE_VRML
RegisterGraphicsSystem (new G4VRML1);
RegisterGraphicsSystem (new G4VRML2);
#endif
if (fVerbose > 0) {
G4cout <<
"\nYou have successfully chosen to use the following graphics systems."
<< G4endl;
PrintAvailableGraphicsSystems ();
}
}
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,7 +23,7 @@
// ====================================================================
//
// HepMCG4AsciiReader.cc
// $Id: HepMCG4AsciiReader.cc,v 1.1 2002/05/28 14:00:40 murakami Exp $
// $Id: HepMCG4AsciiReader.cc,v 1.2 2002/11/19 10:17:05 murakami Exp $
//
// ====================================================================
#include "HepMCG4AsciiReader.hh"
@@ -37,7 +37,7 @@ HepMCG4AsciiReader::HepMCG4AsciiReader()
: filename("xxx.dat"), verbose(0)
////////////////////////////////////////
{
asciiInput= new HepMC::IO_Ascii(filename.c_str(), ios::in);
asciiInput= new HepMC::IO_Ascii(filename.c_str(), G4std::ios::in);
messenger= new HepMCG4AsciiReaderMessenger(this);
}
@@ -56,7 +56,7 @@ void HepMCG4AsciiReader::Initialize()
{
delete asciiInput;
asciiInput= new HepMC::IO_Ascii(filename.c_str(), ios::in);
asciiInput= new HepMC::IO_Ascii(filename.c_str(), G4std::ios::in);
asciiInput-> print();
}
@@ -0,0 +1,31 @@
#
# Macro file for the initialization phase of "exampleN02.cc"
# when runing in interactive mode
#
# Sets some default verbose
#
/control/verbose 2
/run/verbose 2
#
# create empty scene
#
/vis/scene/create
#
# Create a scene handler for a specific graphics system
# (Edit the next line(s) to choose another graphic system)
#
/vis/open OGLIX
#
####/vis/open DAWNFILE
#
# draw scene
#
/vis/viewer/set/viewpointThetaPhi 90 180 deg
/vis/viewer/zoom 1.4
/vis/viewer/flush
#
# for drawing the tracks
# (if too many tracks cause core dump => storeTrajectory 0)
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate