Import Geant4 10.5.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2018-06-29 10:58:11 +02:00
parent fe81a77428
commit 6aa23be517
1581 changed files with 124288 additions and 83758 deletions
+31 -39
View File
@@ -27,10 +27,12 @@
/// \brief Main program of the hadronic/Hadr07 example
//
// $Id$
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "G4Types.hh"
#ifdef G4MULTITHREADED
#include "G4MTRunManager.hh"
#else
@@ -45,21 +47,20 @@
#include "ActionInitialization.hh"
#include "SteppingVerbose.hh"
#ifdef G4VIS_USE
#include "G4VisExecutive.hh"
#endif
#ifdef G4UI_USE
#include "G4UIExecutive.hh"
#endif
#include "G4VisExecutive.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
int main(int argc,char** argv) {
//detect interactive mode (if no arguments) and define UI session
G4UIExecutive* ui = nullptr;
if (argc == 1) ui = new G4UIExecutive(argc,argv);
//choose the Random engine
G4Random::setTheEngine(new CLHEP::RanecuEngine);
// Construct the default run manager
#ifdef G4MULTITHREADED
G4MTRunManager* runManager = new G4MTRunManager;
@@ -71,47 +72,38 @@ int main(int argc,char** argv) {
G4VSteppingVerbose::SetInstance(new SteppingVerbose);
G4RunManager* runManager = new G4RunManager;
#endif
//set mandatory initialization classes
DetectorConstruction* det = new DetectorConstruction;
runManager->SetUserInitialization(det);
PhysicsList* phys = new PhysicsList;
runManager->SetUserInitialization(phys);
runManager->SetUserInitialization(new ActionInitialization(det));
//get the pointer to the User Interface manager
G4UImanager* UI = G4UImanager::GetUIpointer();
if (argc!=1) // batch mode
{
G4String command = "/control/execute ";
G4String fileName = argv[1];
UI->ApplyCommand(command+fileName);
}
else //define visualization and UI terminal for interactive mode
{
#ifdef G4VIS_USE
G4VisManager* visManager = new G4VisExecutive;
visManager->Initialize();
#endif
#ifdef G4UI_USE
G4UIExecutive * ui = new G4UIExecutive(argc,argv);
ui->SessionStart();
delete ui;
#endif
#ifdef G4VIS_USE
delete visManager;
#endif
}
//initialize visualization
G4VisManager* visManager = nullptr;
//get the pointer to the User Interface manager
G4UImanager* UImanager = G4UImanager::GetUIpointer();
if (ui) {
//interactive mode
visManager = new G4VisExecutive;
visManager->Initialize();
ui->SessionStart();
delete ui;
}
else {
//batch mode
G4String command = "/control/execute ";
G4String fileName = argv[1];
UImanager->ApplyCommand(command+fileName);
}
//job termination
//
delete visManager;
delete runManager;
return 0;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+14
View File
@@ -15,6 +15,20 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
04-06-18 mma (exhadr07-V10-04-03)
- SteppingAction.cc : Photoelectric, edep at end of step
09-05-18 B. Morgan (exhadr07-V10-04-02)
- Include G4Types before use of G4MULTITHREADED. For forward
compatibility with move to #defines over -D for G4 preprocessor
symbols.
05-04-18 mma (exhadr07-V10-04-01)
- Hadr07.cc : set visualisation only in interactive session.
16-03-18 mma (exhadr07-V10-04-00)
- Hadr07.cc : remove G4UI_USE and G4VIS_USE
28-11-17 I. Hrivnacova (exhadr07-V10-03-02)
- Fixed Doxygen warnings
+32 -32
View File
@@ -4,7 +4,7 @@
############################################
**************************************************************
Geant4 version Name: geant4-10-04-patch-02 (25-May-2018)
Geant4 version Name: geant4-10-05-beta-01 (29-June-2018)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -309,7 +309,6 @@ NeutronHP: /Capture file for Z = 8, A = 18 is not found and NeutronHP will use /
Model: NeutronHPInelastic: 0 meV ---> 20 MeV
Cr_sctns: NeutronHPInelasticXS: 0 meV ---> 20 MeV
Cr_sctns: Barashenkov-Glauber: 0 meV ---> 100 TeV
Cr_sctns: GheishaInelastic: 0 meV ---> 100 TeV
Process: nCapture
Model: NeutronHPCapture: 0 meV ---> 20 MeV
@@ -332,7 +331,6 @@ NeutronHP: /Capture file for Z = 8, A = 18 is not found and NeutronHP will use /
Model: hElasticLHEP: 0 meV ---> 1.0001 GeV
Model: hElasticGlauber: 1 GeV ---> 100 TeV
Cr_sctns: Barashenkov-Glauber: 0 meV ---> 100 TeV
Cr_sctns: GheishaElastic: 0 meV ---> 100 TeV
Process: pi+Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
@@ -349,7 +347,6 @@ NeutronHP: /Capture file for Z = 8, A = 18 is not found and NeutronHP will use /
Model: hElasticLHEP: 0 meV ---> 1.0001 GeV
Model: hElasticGlauber: 1 GeV ---> 100 TeV
Cr_sctns: Barashenkov-Glauber: 0 meV ---> 100 TeV
Cr_sctns: GheishaElastic: 0 meV ---> 100 TeV
Process: pi-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
@@ -371,7 +368,6 @@ NeutronHP: /Capture file for Z = 8, A = 18 is not found and NeutronHP will use /
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 meV ---> 12 GeV
Cr_sctns: Barashenkov-Glauber: 0 meV ---> 100 TeV
Cr_sctns: GheishaInelastic: 0 meV ---> 100 TeV
---------------------------------------------------
Hadronic Processes for triton
@@ -444,7 +440,7 @@ Index : 1 used in the geometry : Yes
Run terminated.
Run Summary
Number of events processed : 10000
User=7.23s Real=7.38s Sys=0s
User=5.330000s Real=5.345513s Sys=0.000000s
======================== run summary =====================
@@ -452,43 +448,47 @@ Run Summary
1 30 cm of Li7 (density: 1.85 g/cm3 )
Process calls frequency :
RadioactiveDecay= 101417 Transportation= 90522 annihil= 112
compt= 129345 conv= 118 eBrem= 1033
eIoni= 141492 hIoni= 454 hadElastic= 87252
ionIoni= 101710 msc= 391 neutronInelastic= 14297
phot= 12987
Decay= 1 RadioactiveDecay= 99757 Transportation= 89581
annihil= 99 compt= 127952 conv= 102
dInelastic= 1 eBrem= 1006 eIoni= 139911
hIoni= 465 hadElastic= 85668 ionIoni= 100060
msc= 356 nCapture= 2 neutronInelastic= 14216
phot= 12903 photonNuclear= 1
Edep in absorber 1 = 8.06 MeV (1.24 keV-->37.6 MeV)
Edep in absorber 1 = 8.04 MeV (7.99 keV-->30.8 MeV)
List of generated particles in absorber 1:
He6: 161 Emean = 2.55 MeV ( 8.89 keV --> 4.92 MeV)
Li6: 734 Emean = 1.58 MeV ( 46.5 eV --> 7.29 MeV)
Li7: 100522 Emean = 552 keV ( 73 meV --> 6.2 MeV)
alpha: 293 Emean = 1.21 MeV ( 64.6 keV --> 3.89 MeV)
anti_nu_e: 161 Emean = 1.95 MeV ( 261 keV --> 3.5 MeV)
deuteron: 453 Emean = 4.61 MeV ( 125 keV --> 33 MeV)
e+: 118 Emean = 1.53 MeV ( 121 keV --> 4.62 MeV)
e-: 140890 Emean = 154 keV ( 100 eV --> 5.56 MeV)
gamma: 42273 Emean = 1.24 MeV ( 1 keV --> 5.88 MeV)
neutron: 15003 Emean = 3.63 MeV ( 8.65 keV --> 13.6 MeV)
proton: 1 Emean = 3.28 MeV ( 3.28 MeV --> 3.28 MeV)
Be8[3030.000]: 2 Emean = 4.88 keV ( 3.51 keV --> 6.26 keV)
He6: 167 Emean = 2.43 MeV ( 134 keV --> 4.92 MeV)
Li6: 747 Emean = 1.54 MeV ( 12.4 eV --> 7.84 MeV)
Li7: 98839 Emean = 562 keV ( 442 meV --> 6.22 MeV)
Li8: 2 Emean = 699 keV ( 460 eV --> 1.4 MeV)
alpha: 305 Emean = 1.17 MeV ( 82.5 keV --> 4.57 MeV)
anti_nu_e: 169 Emean = 2.04 MeV ( 422 keV --> 7.94 MeV)
deuteron: 464 Emean = 4.78 MeV ( 187 keV --> 25.6 MeV)
e+: 102 Emean = 1.42 MeV ( 48 keV --> 4.12 MeV)
e-: 139359 Emean = 152 keV ( 100 eV --> 8.25 MeV)
gamma: 41689 Emean = 1.22 MeV ( 1 keV --> 11.2 MeV)
neutron: 14929 Emean = 3.61 MeV ( 1.33 keV --> 13.6 MeV)
proton: 1 Emean = 5.83 MeV ( 5.83 MeV --> 5.83 MeV)
triton: 1 Emean = 1.37 MeV ( 1.37 MeV --> 1.37 MeV)
List of particles emerging from absorbers :
anti_nu_e: 161 Emean = 1.95 MeV ( 261 keV --> 3.5 MeV)
e+: 6 Emean = 1.68 MeV ( 487 keV --> 4.06 MeV)
e-: 206 Emean = 1.22 MeV ( 15.1 keV --> 4.2 MeV)
gamma: 29168 Emean = 1.06 MeV ( 2.34 keV --> 5.88 MeV)
neutron: 10706 Emean = 2.13 MeV ( 131 meV --> 14.1 MeV)
anti_nu_e: 169 Emean = 2.04 MeV ( 422 keV --> 7.94 MeV)
e+: 3 Emean = 389 keV ( 200 keV --> 593 keV)
e-: 215 Emean = 1.25 MeV ( 49.5 keV --> 4.42 MeV)
gamma: 28683 Emean = 1.05 MeV ( 2.08 keV --> 11.2 MeV)
neutron: 10711 Emean = 2.23 MeV ( 9.6 eV --> 14.1 MeV)
Nb of events with primary absorbed = 87 %, transmit = 6.5 %, reflected = 6 %
Nb of events with primary absorbed = 87 %, transmit = 6.7 %, reflected = 6.4 %
--------- Ranecu engine status ---------
Initial seed (index) = 0
Current couple of seeds = 436367230, 1503345295
Current couple of seeds = 12967661, 503143653
----------------------------------------
G4 kernel has come to Quit state.
================== Deleting memory pools ===================
Number of memory pools allocated: 10 of which, static: 0
Dynamic pools deleted: 10 / Total memory freed: 0.043 MB
Number of memory pools allocated: 11 of which, static: 0
Dynamic pools deleted: 11 / Total memory freed: 0.04 MB
============================================================
RunManagerKernel is deleted. Good bye :)
@@ -108,6 +108,12 @@ void DetectorConstruction::DefineMaterials()
H2O->AddElement(H, 2);
H2O->AddElement(O, 1);
H2O->GetIonisation()->SetMeanExcitationEnergy(78.0*eV);
G4Element* Hf = man->FindOrBuildElement("Hf");
G4Material* HfO2 = new G4Material("HfO2", 9.68*g/cm3, 2);
HfO2->AddElement(Hf, 1);
HfO2->AddElement(O , 2);
// example of vacuum
G4double density = universe_mean_density; //from PhysicalConstants.h
@@ -77,6 +77,7 @@ void SteppingAction::UserSteppingAction(const G4Step* step)
G4ThreeVector P1 = prePoint ->GetPosition();
G4ThreeVector P2 = postPoint->GetPosition();
G4ThreeVector point = P1 + G4UniformRand()*(P2 - P1);
if (step->GetTrack()->GetDefinition()->GetPDGCharge() == 0.) point = P2;
G4double x = point.x();
G4double xshifted = x + 0.5*fDetector->GetAbsorSizeX();
analysisManager->FillH1(10, xshifted, edep);