Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: exampleN05.cc,v 1.4.2.1 1999/12/07 20:47:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: exampleN05.cc,v 1.5 1999/12/15 14:49:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -67,7 +67,7 @@ int main(int argc, char** argv) {
|
||||
//-------------------------------
|
||||
// Initialization of Run manager
|
||||
//-------------------------------
|
||||
G4cout << "RunManager construction starting...." << endl;
|
||||
G4cout << "RunManager construction starting...." << G4endl;
|
||||
G4RunManager * runManager = new G4RunManager;
|
||||
|
||||
// Detector geometry
|
||||
@@ -96,7 +96,7 @@ int main(int argc, char** argv) {
|
||||
// Visualization:
|
||||
//----------------
|
||||
#ifdef G4VIS_USE
|
||||
G4cout << "Instantiating MyVisManager......." << endl;
|
||||
G4cout << "Instantiating MyVisManager......." << G4endl;
|
||||
G4VisManager* visManager = new MyVisManager;
|
||||
visManager -> Initialize ();
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
# exampleN05.in
|
||||
#
|
||||
/gun/particle e-
|
||||
/gun/energy 1 GeV
|
||||
/gun/position 0 0 0
|
||||
#
|
||||
#/tracking/verbose 1
|
||||
#
|
||||
/gun/direction 0 .6 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
/gun/direction 0 .3 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
/gun/direction 0 -.3 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
/gun/direction 0 -.6 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
/gun/particle pi-
|
||||
/gun/energy 1 GeV
|
||||
/gun/position 0 0 0
|
||||
#
|
||||
#
|
||||
#
|
||||
/gun/direction 0 .6 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
/gun/direction 0 .3 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
/gun/direction 0 -.3 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
/gun/direction 0 -.6 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
#
|
||||
# switch off Fast Simulation
|
||||
#
|
||||
/gun/particle e-
|
||||
#
|
||||
/process/inactivate G4FastSimulationManagerProcess
|
||||
#
|
||||
# switch off UserLimits
|
||||
/exN05/detector/switchUserLimits off
|
||||
#
|
||||
/gun/direction 0 .6 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
# switch on UserLimits
|
||||
/exN05/detector/switchUserLimits on
|
||||
#
|
||||
/gun/direction 0 .6 1.
|
||||
/run/beamOn 500
|
||||
#
|
||||
|
||||
exit
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
RunManager construction starting....
|
||||
**********************************************
|
||||
Geant4 version $Name: geant4-01-00 $
|
||||
Geant4 version $Name: geant4-01-01 $
|
||||
(07-Dec-99)
|
||||
Copyright : Geant4 Collaboration
|
||||
**********************************************
|
||||
@@ -66,12 +66,12 @@ MuPairProd: theoretical cross sections
|
||||
Good description up to 1000 TeV.
|
||||
PhysicsTables from 1 GeV to 1000 PeV in 50 bins.
|
||||
Closing FastSimulation
|
||||
Idle> # exampleN05.in
|
||||
Idle> #
|
||||
Idle> Idle> Idle> Idle> #
|
||||
Idle> #/tracking/verbose 1
|
||||
Idle> #
|
||||
Idle> Idle> ### Run 0 start.
|
||||
# exampleN05.in
|
||||
#
|
||||
#
|
||||
#/tracking/verbose 1
|
||||
#
|
||||
### Run 0 start.
|
||||
>>> Event 0
|
||||
11 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 0.989921 (GeV)
|
||||
@@ -98,8 +98,8 @@ Idle> Idle> ### Run 0 start.
|
||||
0 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 0 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> Idle> ### Run 1 start.
|
||||
#
|
||||
### Run 1 start.
|
||||
>>> Event 0
|
||||
10 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 0.999915 (GeV)
|
||||
@@ -126,8 +126,8 @@ Idle> Idle> ### Run 1 start.
|
||||
0 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 0 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> Idle> ### Run 2 start.
|
||||
#
|
||||
### Run 2 start.
|
||||
>>> Event 0
|
||||
9 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 0.99993 (GeV)
|
||||
@@ -154,8 +154,8 @@ Idle> Idle> ### Run 2 start.
|
||||
0 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 0 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> Idle> ### Run 3 start.
|
||||
#
|
||||
### Run 3 start.
|
||||
>>> Event 0
|
||||
11 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 0.989922 (GeV)
|
||||
@@ -182,11 +182,11 @@ Idle> Idle> ### Run 3 start.
|
||||
0 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 0 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> Idle> Idle> Idle> #
|
||||
Idle> #
|
||||
Idle> #
|
||||
Idle> Idle> ### Run 4 start.
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
### Run 4 start.
|
||||
>>> Event 0
|
||||
8 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 0.239988 (GeV)
|
||||
@@ -213,8 +213,8 @@ Idle> Idle> ### Run 4 start.
|
||||
16 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 2.55985 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> Idle> ### Run 5 start.
|
||||
#
|
||||
### Run 5 start.
|
||||
>>> Event 0
|
||||
29 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 0.959946 (GeV)
|
||||
@@ -241,8 +241,8 @@ Idle> Idle> ### Run 5 start.
|
||||
39 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 6.75964 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> Idle> ### Run 6 start.
|
||||
#
|
||||
### Run 6 start.
|
||||
>>> Event 0
|
||||
41 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 1.19993 (GeV)
|
||||
@@ -269,8 +269,8 @@ Idle> Idle> ### Run 6 start.
|
||||
60 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 10.7994 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> Idle> ### Run 7 start.
|
||||
#
|
||||
### Run 7 start.
|
||||
>>> Event 0
|
||||
54 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 1.47991 (GeV)
|
||||
@@ -297,15 +297,15 @@ Idle> Idle> ### Run 7 start.
|
||||
77 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 12.9793 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> #
|
||||
Idle> # switch off Fast Simulation
|
||||
Idle> #
|
||||
Idle> Idle> #
|
||||
Idle> Idle> #
|
||||
Idle> # switch off UserLimits
|
||||
Idle> Idle> #
|
||||
Idle> Idle> ### Run 8 start.
|
||||
#
|
||||
#
|
||||
# switch off Fast Simulation
|
||||
#
|
||||
#
|
||||
#
|
||||
# switch off UserLimits
|
||||
#
|
||||
### Run 8 start.
|
||||
>>> Event 0
|
||||
28 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 0.994988 (GeV)
|
||||
@@ -332,10 +332,10 @@ Idle> Idle> ### Run 8 start.
|
||||
2 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 0.00470852 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> # switch on UserLimits
|
||||
Idle> Idle> #
|
||||
Idle> Idle> ### Run 9 start.
|
||||
#
|
||||
# switch on UserLimits
|
||||
#
|
||||
### Run 9 start.
|
||||
>>> Event 0
|
||||
20 hits are stored in EM ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in EM calorimeter crytals : 0.984933 (GeV)
|
||||
@@ -362,5 +362,4 @@ Idle> Idle> ### Run 9 start.
|
||||
0 hits are stored in HAD ExN05CalorimeterHitsCollection.
|
||||
Total energy deposition in HAD calorimeter towers : 0 (GeV)
|
||||
number of event = 5
|
||||
Idle> #
|
||||
Idle> Idle>
|
||||
#
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05CalorimeterHit.hh,v 1.2.8.1 1999/12/07 20:47:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05CalorimeterHit.hh,v 1.3 1999/12/15 14:49:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef ExN05CalorimeterHit_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05CalorimeterSD.hh,v 1.1.10.1 1999/12/07 20:47:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05CalorimeterSD.hh,v 1.2 1999/12/15 14:49:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef ExN05CalorimeterSD_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05DetectorConstruction.hh,v 1.1.10.1 1999/12/07 20:47:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05DetectorConstruction.hh,v 1.2 1999/12/15 14:49:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef ExN05DetectorConstruction_h
|
||||
#define ExN05DetectorConstruction_h 1
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05DetectorMessenger.hh,v 1.1.10.1 1999/12/07 20:47:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05DetectorMessenger.hh,v 1.2 1999/12/15 14:49:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05EMShowerModel.hh,v 1.1.8.1.2.1 1999/12/07 20:47:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05EMShowerModel.hh,v 1.3 1999/12/15 14:49:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
//----------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05EnergySpot.hh,v 1.1.8.1.2.1 1999/12/07 20:47:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05EnergySpot.hh,v 1.3 1999/12/15 14:49:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef ExN05EnergySpot_h
|
||||
#define ExN05EnergySpot_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05EventAction.hh,v 1.2.8.1 1999/12/07 20:47:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05EventAction.hh,v 1.3 1999/12/15 14:49:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef ExN05EventAction_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05EventActionMessenger.hh,v 1.1.10.1 1999/12/07 20:47:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05EventActionMessenger.hh,v 1.2 1999/12/15 14:49:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef ExN05EventActionMessenger_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05MaxTimeCuts.hh,v 1.2.8.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05MaxTimeCuts.hh,v 1.3 1999/12/15 14:49:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05MinEkineCuts.hh,v 1.2.8.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05MinEkineCuts.hh,v 1.3 1999/12/15 14:49:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05MinRangeCuts.hh,v 1.2.8.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05MinRangeCuts.hh,v 1.3 1999/12/15 14:49:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05PhysicsList.hh,v 1.4.6.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05PhysicsList.hh,v 1.5 1999/12/15 14:49:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
#ifndef ExN05PhysicsList_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05PiModel.hh,v 1.1.10.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05PiModel.hh,v 1.2 1999/12/15 14:49:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
//----------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05PionShowerModel.hh,v 1.1.8.1.2.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05PionShowerModel.hh,v 1.3 1999/12/15 14:49:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
//----------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05PrimaryGeneratorAction.hh,v 1.1.10.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05PrimaryGeneratorAction.hh,v 1.2 1999/12/15 14:49:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef ExN05PrimaryGeneratorAction_h
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05RunAction.hh,v 1.4.8.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05RunAction.hh,v 1.6 2000/01/06 15:06:51 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef ExN05RunAction_h
|
||||
#define ExN05RunAction_h 1
|
||||
|
||||
#include "G4Timer.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4UserRunAction.hh"
|
||||
|
||||
class G4Timer;
|
||||
class G4Run;
|
||||
|
||||
class ExN05RunAction : public G4UserRunAction
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05SpecialCuts.hh,v 1.2.8.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05SpecialCuts.hh,v 1.3 1999/12/15 14:49:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05SteppingAction.hh,v 1.2.8.1 1999/12/07 20:47:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05SteppingAction.hh,v 1.3 1999/12/15 14:49:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef ExN05SteppingAction_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05SteppingActionMessenger.hh,v 1.1.10.1 1999/12/07 20:47:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05SteppingActionMessenger.hh,v 1.2 1999/12/15 14:49:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef ExN05SteppingActionMessenger_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05CalorimeterHit.cc,v 1.1.10.1 1999/12/07 20:47:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05CalorimeterHit.cc,v 1.2 1999/12/15 14:49:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "ExN05CalorimeterHit.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05CalorimeterSD.cc,v 1.1.10.1 1999/12/07 20:47:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05CalorimeterSD.cc,v 1.2 1999/12/15 14:49:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "ExN05CalorimeterSD.hh"
|
||||
@@ -62,13 +62,13 @@ G4bool ExN05CalorimeterSD::ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist)
|
||||
int icell = CalCollection->insert( calHit );
|
||||
CellID[copyID] = icell - 1;
|
||||
if(verboseLevel>0)
|
||||
{ G4cout << " New Calorimeter Hit on CellID " << copyID << endl; }
|
||||
{ G4cout << " New Calorimeter Hit on CellID " << copyID << G4endl; }
|
||||
}
|
||||
else
|
||||
{
|
||||
(*CalCollection)[CellID[copyID]]->AddEdep( edep );
|
||||
if(verboseLevel>0)
|
||||
{ G4cout << " Energy added to CellID " << copyID << endl; }
|
||||
{ G4cout << " Energy added to CellID " << copyID << G4endl; }
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05DetectorConstruction.cc,v 1.1.10.1 1999/12/07 20:47:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05DetectorConstruction.cc,v 1.2 1999/12/15 14:49:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#include "ExN05DetectorConstruction.hh"
|
||||
#include "ExN05CalorimeterSD.hh"
|
||||
@@ -48,7 +48,7 @@ ExN05DetectorConstruction::~ExN05DetectorConstruction()
|
||||
|
||||
G4VPhysicalVolume* ExN05DetectorConstruction::Construct()
|
||||
{
|
||||
G4cout << "\nExN05DetectorConstruction....\n" << endl;
|
||||
G4cout << "\nExN05DetectorConstruction....\n" << G4endl;
|
||||
|
||||
//--------- Material definition ---------
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05DetectorMessenger.cc,v 1.1.10.1 1999/12/07 20:47:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05DetectorMessenger.cc,v 1.2 1999/12/15 14:49:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -16,13 +16,9 @@
|
||||
#include "G4UIcmdWithAString.hh"
|
||||
#include "G4UIcmdWithADoubleAndUnit.hh"
|
||||
#include "globals.hh"
|
||||
#include <iomanip.h>
|
||||
#include "g4std/iomanip"
|
||||
|
||||
#ifdef WIN32
|
||||
# include <Strstrea.h>
|
||||
#else
|
||||
# include <strstream.h>
|
||||
#endif
|
||||
#include "g4std/strstream"
|
||||
|
||||
ExN05DetectorMessenger::ExN05DetectorMessenger(ExN05DetectorConstruction * myDet) : myDetector(myDet)
|
||||
{
|
||||
@@ -92,7 +88,7 @@ G4String ExN05DetectorMessenger::GetCurrentValue(G4UIcommand * command)
|
||||
{
|
||||
G4String returnValue('\0');
|
||||
char line[255];
|
||||
ostrstream os(line,255);
|
||||
G4std::ostrstream os(line,255);
|
||||
|
||||
if( command == SwitchCmd ) {
|
||||
if ( myDetector->IsUseUserLimits() )returnValue = "on";
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05EMShowerModel.cc,v 1.1.10.1 1999/12/07 20:47:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05EMShowerModel.cc,v 1.2 1999/12/15 14:49:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#include "ExN05EMShowerModel.hh"
|
||||
#include "ExN05EnergySpot.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05EnergySpot.cc,v 1.1.10.1 1999/12/07 20:47:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05EnergySpot.cc,v 1.2 1999/12/15 14:49:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#include "ExN05EnergySpot.hh"
|
||||
|
||||
@@ -65,7 +65,7 @@ void ExN05EnergySpot::Draw(G4Colour *color)
|
||||
|
||||
void ExN05EnergySpot::Print()
|
||||
{
|
||||
G4cout << " ExN05EnergySpot {E = " << Energy << "; Position = " << Point << " }"<< endl;
|
||||
G4cout << " ExN05EnergySpot {E = " << Energy << "; Position = " << Point << " }"<< G4endl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05EventAction.cc,v 1.2.6.1.2.1 1999/12/07 20:47:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05EventAction.cc,v 1.4 1999/12/15 14:49:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "ExN05EventAction.hh"
|
||||
@@ -53,7 +53,7 @@ void ExN05EventAction::EndOfEventAction(const G4Event* evt )
|
||||
calorimeterCollID = SDman->GetCollectionID(colNam="CalCollection");
|
||||
hadCalorimeterCollID = SDman->GetCollectionID(colNam="HadCollection");
|
||||
|
||||
G4cout << ">>> Event " << evt->GetEventID() << endl;
|
||||
G4cout << ">>> Event " << evt->GetEventID() << G4endl;
|
||||
|
||||
G4HCofThisEvent * HCE = evt->GetHCofThisEvent();
|
||||
ExN05CalorimeterHitsCollection* CaloHC = NULL;
|
||||
@@ -68,24 +68,24 @@ void ExN05EventAction::EndOfEventAction(const G4Event* evt )
|
||||
{
|
||||
int n_hit = CaloHC->entries();
|
||||
G4cout << " " << n_hit
|
||||
<< " hits are stored in EM ExN05CalorimeterHitsCollection." << endl;
|
||||
<< " hits are stored in EM ExN05CalorimeterHitsCollection." << G4endl;
|
||||
G4double totE = 0;
|
||||
for(int i=0;i<n_hit;i++)
|
||||
{ totE += (*CaloHC)[i]->GetEdep(); }
|
||||
G4cout << " Total energy deposition in EM calorimeter crytals : "
|
||||
<< totE / GeV << " (GeV)" << endl;
|
||||
<< totE / GeV << " (GeV)" << G4endl;
|
||||
}
|
||||
|
||||
if(HadCaloHC)
|
||||
{
|
||||
int n_hit = HadCaloHC->entries();
|
||||
G4cout << " " << n_hit
|
||||
<< " hits are stored in HAD ExN05CalorimeterHitsCollection." << endl;
|
||||
<< " hits are stored in HAD ExN05CalorimeterHitsCollection." << G4endl;
|
||||
G4double totE = 0;
|
||||
for(int i=0;i<n_hit;i++)
|
||||
{ totE += (*HadCaloHC)[i]->GetEdep(); }
|
||||
G4cout << " Total energy deposition in HAD calorimeter towers : "
|
||||
<< totE / GeV << " (GeV)" << endl;
|
||||
<< totE / GeV << " (GeV)" << G4endl;
|
||||
}
|
||||
|
||||
if(drawFlag)
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05EventActionMessenger.cc,v 1.1.10.1 1999/12/07 20:47:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05EventActionMessenger.cc,v 1.2 1999/12/15 14:49:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "ExN05EventActionMessenger.hh"
|
||||
@@ -32,7 +32,7 @@ void ExN05EventActionMessenger::SetNewValue(G4UIcommand* command, G4String newVa
|
||||
{
|
||||
G4int vl;
|
||||
const char* t = newValues;
|
||||
istrstream is((char*)t);
|
||||
G4std::istrstream is((char*)t);
|
||||
is >> vl;
|
||||
EventAction->SetDrawFlag(vl!=0);
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05MaxTimeCuts.cc,v 1.1.10.1 1999/12/07 20:47:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05MaxTimeCuts.cc,v 1.2 1999/12/15 14:49:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -31,7 +31,7 @@ ExN05MaxTimeCuts::ExN05MaxTimeCuts(const G4String& aName)
|
||||
: ExN05SpecialCuts(aName)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << GetProcessName() << " is created "<< endl;
|
||||
G4cout << GetProcessName() << " is created "<< G4endl;
|
||||
}
|
||||
SetProcessType(fUserDefined);
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05MinEkineCuts.cc,v 1.1.10.1 1999/12/07 20:47:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05MinEkineCuts.cc,v 1.2 1999/12/15 14:49:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -31,7 +31,7 @@ ExN05MinEkineCuts::ExN05MinEkineCuts(const G4String& aName)
|
||||
: ExN05SpecialCuts(aName)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << GetProcessName() << " is created "<< endl;
|
||||
G4cout << GetProcessName() << " is created "<< G4endl;
|
||||
}
|
||||
SetProcessType(fUserDefined);
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05MinRangeCuts.cc,v 1.1.10.1 1999/12/07 20:47:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05MinRangeCuts.cc,v 1.2 1999/12/15 14:49:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -31,7 +31,7 @@ ExN05MinRangeCuts::ExN05MinRangeCuts(const G4String& aName)
|
||||
: ExN05SpecialCuts(aName)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << GetProcessName() << " is created "<< endl;
|
||||
G4cout << GetProcessName() << " is created "<< G4endl;
|
||||
}
|
||||
SetProcessType(fUserDefined);
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05PhysicsList.cc,v 1.4.6.1 1999/12/07 20:47:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05PhysicsList.cc,v 1.5 1999/12/15 14:49:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip.h>
|
||||
#include "g4std/iomanip"
|
||||
|
||||
#include "G4FastSimulationManagerProcess.hh"
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05PiModel.cc,v 1.1.10.1 1999/12/07 20:47:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05PiModel.cc,v 1.2 1999/12/15 14:49:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#include "ExN05PiModel.hh"
|
||||
|
||||
@@ -38,10 +38,10 @@ G4bool ExN05PiModel::ModelTrigger(const G4FastTrack& fastTrack) {
|
||||
// are available at this level via the fastTrack parameter (allowing
|
||||
// to check distance from boundaries, see below to allow the decision)
|
||||
//--------------------------------------------------------------
|
||||
G4cout << "\nExN05PiModel::ModelTrigger() called:" << endl;
|
||||
G4cout << "--------------------------------" << endl;
|
||||
G4cout << "\nExN05PiModel::ModelTrigger() called:" << G4endl;
|
||||
G4cout << "--------------------------------" << G4endl;
|
||||
G4cout << "(particle is a " << fastTrack.GetPrimaryTrack()->
|
||||
GetDefinition()->GetParticleName() << " )\n" << endl;
|
||||
GetDefinition()->GetParticleName() << " )\n" << G4endl;
|
||||
|
||||
// -- Examples of available informations:
|
||||
|
||||
@@ -49,14 +49,14 @@ G4bool ExN05PiModel::ModelTrigger(const G4FastTrack& fastTrack) {
|
||||
G4cout << " Track position: " <<
|
||||
fastTrack.GetPrimaryTrack()->GetPosition() << "(global coord.)" <<
|
||||
fastTrack.GetPrimaryTrackLocalPosition() << "(in envelope coord.)"
|
||||
<< endl;
|
||||
<< G4endl;
|
||||
|
||||
// -- direction:
|
||||
G4cout << " Track direction:" <<
|
||||
fastTrack.GetPrimaryTrack()->GetMomentum().unit() <<
|
||||
"(global coord.)" <<
|
||||
fastTrack.GetPrimaryTrackLocalDirection() << "(in envelope coord.)" <<
|
||||
endl;
|
||||
G4endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -75,7 +75,7 @@ void ExN05PiModel::DoIt(const G4FastTrack& fastTrack,
|
||||
// The primary track continues along its direction.
|
||||
// One secondary (a photon) is added:
|
||||
//------------------------------------------------
|
||||
G4cout << " Pion `model' applied\n" << endl;
|
||||
G4cout << " Pion `model' applied\n" << G4endl;
|
||||
|
||||
//------------------------------
|
||||
// Primary:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05PionShowerModel.cc,v 1.1.10.1 1999/12/07 20:47:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05PionShowerModel.cc,v 1.2 1999/12/15 14:49:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#include "ExN05PionShowerModel.hh"
|
||||
#include "ExN05EnergySpot.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05PrimaryGeneratorAction.cc,v 1.1.10.1 1999/12/07 20:47:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05PrimaryGeneratorAction.cc,v 1.2 1999/12/15 14:49:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "ExN05PrimaryGeneratorAction.hh"
|
||||
|
||||
@@ -5,12 +5,14 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05RunAction.cc,v 1.3.8.1 1999/12/07 20:47:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05RunAction.cc,v 1.5 2000/01/06 15:06:51 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "ExN05RunAction.hh"
|
||||
// Make this appear first!
|
||||
#include "G4Timer.hh"
|
||||
|
||||
#include "ExN05RunAction.hh"
|
||||
#include "G4Run.hh"
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4ios.hh"
|
||||
@@ -27,14 +29,14 @@ ExN05RunAction::~ExN05RunAction()
|
||||
|
||||
void ExN05RunAction::BeginOfRunAction(const G4Run* aRun)
|
||||
{
|
||||
G4cout << "### Run " << aRun->GetRunID() << " start." << endl;
|
||||
G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
|
||||
// timer->Start();
|
||||
}
|
||||
|
||||
void ExN05RunAction::EndOfRunAction(const G4Run* aRun)
|
||||
{
|
||||
timer->Stop();
|
||||
G4cout << "number of event = " << aRun->GetNumberOfEvent() << endl;
|
||||
// << " " << *timer << endl;
|
||||
G4cout << "number of event = " << aRun->GetNumberOfEvent() << G4endl;
|
||||
// << " " << *timer << G4endl;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05SpecialCuts.cc,v 1.2.8.1 1999/12/07 20:47:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05SpecialCuts.cc,v 1.3 1999/12/15 14:49:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -27,7 +27,7 @@ ExN05SpecialCuts::ExN05SpecialCuts(const G4String& aName)
|
||||
: G4VProcess(aName)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << GetProcessName() << " is created "<< endl;
|
||||
G4cout << GetProcessName() << " is created "<< G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05SteppingAction.cc,v 1.2.8.1 1999/12/07 20:47:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05SteppingAction.cc,v 1.3 1999/12/15 14:49:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "ExN05SteppingAction.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: ExN05SteppingActionMessenger.cc,v 1.1.10.1 1999/12/07 20:47:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: ExN05SteppingActionMessenger.cc,v 1.2 1999/12/15 14:49:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "ExN05SteppingActionMessenger.hh"
|
||||
@@ -34,7 +34,7 @@ void ExN05SteppingActionMessenger::SetNewValue(G4UIcommand* command, G4String ne
|
||||
{
|
||||
G4int vl;
|
||||
const char* t = newValues;
|
||||
istrstream is((char*)t);
|
||||
G4std::istrstream is((char*)t);
|
||||
is >> vl;
|
||||
SteppingAction->SetDrawFlag(vl!=0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user