Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
+1 -1
View File
@@ -85,7 +85,7 @@
The scorers hits are saved in form of ntuples in a Root file using Geant4
analysis tools. This feature is activated in the main () function with instantiating
G4ScoreNtupleWriter.
G4TScoreNtupleWriter.
Two variants of accumulation event statistics in a run are demonstrated
in this example:
+13 -5
View File
@@ -36,15 +36,16 @@
#endif
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "G4TScoreNtupleWriter.hh"
#include "Randomize.hh"
#include "B3DetectorConstruction.hh"
#include "B3PhysicsList.hh"
#include "B3aActionInitialization.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "B3Analysis.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -57,9 +58,9 @@ int main(int argc,char** argv)
ui = new G4UIExecutive(argc, argv);
}
// Choose the Random engine
// Optionally: choose a different Random engine...
//
G4Random::setTheEngine(new CLHEP::RanecuEngine);
// G4Random::setTheEngine(new CLHEP::MTwistEngine);
// Construct the default run manager
//
@@ -89,6 +90,13 @@ int main(int argc,char** argv)
// Get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
// Activate score ntuple writer
// The Root output type (Root) is selected in B3Analysis.hh.
// The verbose level can be also set via UI commands
// /score/ntuple/writerVerbose level
G4TScoreNtupleWriter<G4AnalysisManager> scoreNtupleWriter;
scoreNtupleWriter.SetVerboseLevel(1);
// Process macro or start UI session
//
if ( ! ui ) {
+57 -50
View File
@@ -1,6 +1,10 @@
############################################
!!! WARNING - FPE detection is activated !!!
############################################
**************************************************************
Geant4 version Name: geant4-10-05-ref-06 (30-June-2019)
Geant4 version Name: geant4-10-06-ref-00 (6-December-2019)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -53,49 +57,49 @@ End of Run User Vis Actions: none
Some /vis commands (optionally) take a string to specify colour.
"/vis/list" to see available colours.
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume Detector ... OK!
Checking overlaps for volume Patient ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume Detector (G4Tubs) ... OK!
Checking overlaps for volume Patient (G4Tubs) ... OK!
***** Table : Nb of materials = 3 *****
@@ -203,9 +207,9 @@ G4SDManager::AddNewCollection : the collection <patient/dose> is registered at 2
#
/run/printProgress 1000
/run/beamOn 10000
=======================================================================
====== Radioactive Decay Physics Parameters ========
=======================================================================
======================================================================
====== Radioactive Decay Physics Parameters =======
======================================================================
Max life time 1.4427e+06 ps
Internal e- conversion flag 1
Stored internal conversion coefficients 1
@@ -216,11 +220,12 @@ Auger electron emission enabled 1
Auger cascade enabled 1
Check EM cuts disabled for atomic de-excitation 1
Use Bearden atomic level energies 0
=======================================================================
======================================================================
G4VisManager: Using G4TrajectoryDrawByCharge as fallback trajectory model.
See commands in /vis/modeling/trajectories/ for other options.
### Run 0 starts.
### Run 0 start.
... open Root analysis file : scoring.root - done
--> Event 0 starts.
--> Event 1000 starts.
--> Event 2000 starts.
@@ -233,9 +238,11 @@ See commands in /vis/modeling/trajectories/ for other options.
--> Event 9000 starts.
--------------------End of Global Run-----------------------
The run was 10000 events Nb of 'good' e+ annihilations: 1286
Total dose in patient : 291.796 picoGy
The run was 10000 events Nb of 'good' e+ annihilations: 1345
Total dose in patient : 292.044 picoGy
------------------------------------------------------------
... write Root file : scoring.root - done
... close Root file : scoring.root - done
Graphics systems deleted.
Visualization Manager deleting...
@@ -0,0 +1,37 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B3Analysis.hh
/// \brief Selection of the analysis technology
#ifndef B3Analysis_h
#define B3Analysis_h 1
#include "g4root.hh"
//#include "g4csv.hh"
//#include "g4xml.hh"
#endif
+13 -5
View File
@@ -36,15 +36,16 @@
#endif
#include "G4UImanager.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "G4TScoreNtupleWriter.hh"
#include "Randomize.hh"
#include "B3DetectorConstruction.hh"
#include "B3PhysicsList.hh"
#include "B3bActionInitialization.hh"
#include "G4VisExecutive.hh"
#include "G4UIExecutive.hh"
#include "B3Analysis.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -57,9 +58,9 @@ int main(int argc,char** argv)
ui = new G4UIExecutive(argc, argv);
}
// Choose the Random engine
// Optionally: choose a different Random engine...
//
G4Random::setTheEngine(new CLHEP::RanecuEngine);
// G4Random::setTheEngine(new CLHEP::MTwistEngine);
// Construct the default run manager
//
@@ -89,6 +90,13 @@ int main(int argc,char** argv)
// Get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
// Activate score ntuple writer
// The Root output type (Root) is selected in B3Analysis.hh.
// The verbose level can be also set via UI commands
// /score/ntuple/writerVerbose level
G4TScoreNtupleWriter<G4AnalysisManager> scoreNtupleWriter;
scoreNtupleWriter.SetVerboseLevel(1);
// Process macro or start UI session
//
if ( ! ui ) {
+58 -51
View File
@@ -1,6 +1,10 @@
############################################
!!! WARNING - FPE detection is activated !!!
############################################
**************************************************************
Geant4 version Name: geant4-10-05-ref-06 (30-June-2019)
Geant4 version Name: geant4-10-06-ref-00 (6-December-2019)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -53,49 +57,49 @@ End of Run User Vis Actions: none
Some /vis commands (optionally) take a string to specify colour.
"/vis/list" to see available colours.
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume crystal ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume ring ... OK!
Checking overlaps for volume Detector ... OK!
Checking overlaps for volume Patient ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume crystal (G4Box) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume ring (G4Tubs) ... OK!
Checking overlaps for volume Detector (G4Tubs) ... OK!
Checking overlaps for volume Patient (G4Tubs) ... OK!
***** Table : Nb of materials = 3 *****
@@ -203,9 +207,9 @@ G4SDManager::AddNewCollection : the collection <patient/dose> is registered at 2
#
/run/printProgress 1000
/run/beamOn 10000
=======================================================================
====== Radioactive Decay Physics Parameters ========
=======================================================================
======================================================================
====== Radioactive Decay Physics Parameters =======
======================================================================
Max life time 1.4427e+06 ps
Internal e- conversion flag 1
Stored internal conversion coefficients 1
@@ -216,11 +220,12 @@ Auger electron emission enabled 1
Auger cascade enabled 1
Check EM cuts disabled for atomic de-excitation 1
Use Bearden atomic level energies 0
=======================================================================
======================================================================
G4VisManager: Using G4TrajectoryDrawByCharge as fallback trajectory model.
See commands in /vis/modeling/trajectories/ for other options.
### Run 0 starts.
### Run 0 start.
... open Root analysis file : scoring.root - done
--> Event 0 starts.
---> end of event: 0
@@ -235,10 +240,12 @@ See commands in /vis/modeling/trajectories/ for other options.
--> Event 9000 starts.
--------------------End of Global Run-----------------------
The run was 10000 events Nb of 'good' e+ annihilations: 1286
Total dose in patient : 291.796 picoGy
Total dose in patient : 2.91796e-10 [sigma: 1.75238e-14 | error: 0.0060055 | coeff: 0.0060055 | eff: 1 | fom: 27726.9 | r2int: 3.60625e-05 | r2eff: 0 | hits: 10000 ] Gy
The run was 10000 events Nb of 'good' e+ annihilations: 1345
Total dose in patient : 292.044 picoGy
Total dose in patient : 2.92044e-10 [sigma: 1.76605e-14 | error: 0.0060472 | coeff: 0.0060472 | eff: 1 | fom: 27345.9 | r2int: 3.65649e-05 | r2eff: 0 | hits: 10000 ] Gy
------------------------------------------------------------
... write Root file : scoring.root - done
... close Root file : scoring.root - done
Graphics systems deleted.
Visualization Manager deleting...
@@ -0,0 +1,37 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * 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. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B3Analysis.hh
/// \brief Selection of the analysis technology
#ifndef B3Analysis_h
#define B3Analysis_h 1
#include "g4root.hh"
//#include "g4csv.hh"
//#include "g4xml.hh"
#endif
+9
View File
@@ -14,6 +14,15 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
21/11/19 G. Cosmo (exampleB3-V10-05-02)
- Use default MixMax random engine.
30/09/19 I. Hrivnacova (exampleB3-V10-05-01)
- Updated comments in main() for modified score ntuple writer UI commands.
08/07/19 I. Hrivnacova (exampleB3-V10-05-00)
- Added score ntuple writer.
30/11/18 I. Hrivnacova (exampleB3-V10-04-05)
- Moved the previous update from B3b in B3 documentation
and removed obsolete README files from B3a and B3b.
+1 -1
View File
@@ -86,7 +86,7 @@
The scorers hits are saved in form of ntuples in a Root file using Geant4
analysis tools. This feature is activated in the main () function with instantiating
G4ScoreNtupleWriter.
G4TScoreNtupleWriter.
Two variants of accumulation event statistics in a run are demonstrated
in this example: