Import Geant4 10.4.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2017-06-30 10:49:55 +02:00
parent 3a5407696b
commit 1a1316fea4
2180 changed files with 237880 additions and 59109 deletions
+13 -6
View File
@@ -1,4 +1,4 @@
//$Id: .README.txt 94957 2016-01-08 13:27:26Z gcosmo $
//$Id: .README.txt 104901 2017-06-26 14:40:57Z gcosmo $
///\file "B4/.README.txt"
///\brief Example B4 README page
@@ -190,15 +190,22 @@
- Track length in absorber
- Track length in gap
The same values are also saved in an ntuple. The histograms and ntuple are saved
in the output file in a format according to a technology selected in B4Analysis.hh.
The same values are also saved in an ntuple.
The histograms and the ntuple are saved in the output file in a format
according to a technology selected in B4Analysis.hh, the default in this example
is ROOT.
The accumulated statistic and computed dispersion is printed at the end of
run, in B4RunAction::EndOfRunAction() ((see also
\link B4bRunAction::EndOfRunAction() B4b \endlink variant).
When running in multi-threading mode, the histograms accumulated on threads are
automatically merged in a single output file, while the ntuple is written
in files per thread.
When running in multi-threading mode, the histograms and the ntuple accumulated
on threads are merged in a single output file. While merging of histograms is
performed by default, merging of ntuples is explicitly activated in the B4RunAction
constructor.
The ROOT histograms and ntuple can be plotted with ROOT using the plotHisto.C
and plotNtuple.C macros.
\section B4_s8 VISUALIZATION TUTORIAL
+2 -1
View File
@@ -1,4 +1,4 @@
# $Id: CMakeLists.txt 100923 2016-11-03 10:50:34Z gcosmo $
# $Id: CMakeLists.txt 104871 2017-06-23 14:17:13Z gcosmo $
#----------------------------------------------------------------------------
# Setup the project
@@ -48,6 +48,7 @@ set(EXAMPLEB4A_SCRIPTS
exampleB4.in
gui.mac
init_vis.mac
plotHisto.C
run1.mac
run2.mac
vis.mac
+56 -37
View File
@@ -4,7 +4,7 @@
############################################
*************************************************************
Geant4 version Name: geant4-10-03-patch-01 (24-February-2017)
Geant4 version Name: geant4-10-03-ref-06 (30-June-2017)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
@@ -66,7 +66,7 @@ Available colours:
***** Table : Nb of materials = 3 *****
Material: G4_Pb density: 11.350 g/cm3 RadL: 5.613 mm Nucl.Int.Length: 18.248 cm
Imean: 823.000 eV
Imean: 823.000 eV temperature: 293.15 K pressure: 1.00 atm
---> Element: Pb (Pb) Z = 82.0 N = 207 A = 207.217 g/mole
---> Isotope: Pb204 Z = 82 N = 204 A = 203.97 g/mole abundance: 1.400 %
@@ -77,7 +77,7 @@ Available colours:
Material: liquidArgon density: 1.390 g/cm3 RadL: 14.065 cm Nucl.Int.Length: 86.078 cm
Imean: 188.000 eV
Imean: 188.000 eV temperature: 293.15 K pressure: 1.00 atm
---> Element: Ar (Ar) Z = 18.0 N = 40 A = 39.950 g/mole
---> Isotope: Ar36 Z = 18 N = 36 A = 35.97 g/mole abundance: 0.337 %
@@ -115,7 +115,7 @@ Checking overlaps for volume Gap ... OK!
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -129,6 +129,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -793,47 +799,48 @@ Type of pre-compound inverse x-section 3
Type of de-excitation inverse x-section 3
Min excitation energy (keV) 0.01
Level density (1/MeV) 0.1
Time limit for long lived isomeres (ns) 1000
Time limit for long lived isomeres (ns) 1e+12
Use new data files 1
Use complete data files 0
Correlated gamma emission flag 0
Electron internal conversion ID 2
=======================================================================
Number of de-excitation channels 8
### Run 0 starts.
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 288.973 MeV total track length: 20.951 cm
Gap: total energy: 7.92506 MeV total track length: 3.60411 cm
Absorber: total energy: 267.062 MeV total track length: 19.0834 cm
Gap: total energy: 9.63246 MeV total track length: 5.07935 cm
----> print histograms statistic for the entire run
EAbs : mean = 288.973 MeV rms = 0 eV
EGap : mean = 7.92506 MeV rms = 0 eV
LAbs : mean = 20.951 cm rms = 0 fm
LGap : mean = 3.60411 cm rms = 0 fm
EAbs : mean = 267.062 MeV rms = 0 eV
EGap : mean = 9.63246 MeV rms = 0 eV
LAbs : mean = 19.0834 cm rms = 0 fm
LGap : mean = 5.07935 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
Transportation, msc, hIoni, ionIoni
hBrems, hPairProd, CoulombScat, eIoni
eBrem, annihil, phot, compt
conv, muIoni, muBrems, muPairProd
photonNuclear, electronNuclear, positronNuclear, muonNuclear
Decay, hadElastic, neutronInelastic, nCapture
protonInelastic, pi+Inelastic, pi-Inelastic, kaon+Inelastic
kaon-Inelastic, kaon0LInelastic, kaon0SInelastic, lambdaInelastic
anti-lambdaInelastic, sigma-Inelastic,anti_sigma-Inelastic, sigma+Inelastic
anti_sigma+Inelastic, xi-Inelastic, anti_xi-Inelastic, xi0Inelastic
anti_xi0Inelastic, omega-Inelastic,anti_omega-Inelastic,anti_protonInelastic
anti_neutronInelastic,anti_deuteronInelastic,anti_tritonInelastic, anti_He3Inelastic
anti_alphaInelastic,hFritiofCaptureAtRest,hBertiniCaptureAtRest,muMinusCaptureAtRest
dInelastic, tInelastic, He3Inelastic, alphaInelastic
ionInelastic, nKiller
conv, Rayl, muIoni, muBrems
muPairProd, photonNuclear, electronNuclear, positronNuclear
muonNuclear, Decay, hadElastic, neutronInelastic
nCapture, protonInelastic, pi+Inelastic, pi-Inelastic
kaon+Inelastic, kaon-Inelastic, kaon0LInelastic, kaon0SInelastic
lambdaInelastic,anti-lambdaInelastic, sigma-Inelastic,anti_sigma-Inelastic
sigma+Inelastic,anti_sigma+Inelastic, xi-Inelastic, anti_xi-Inelastic
xi0Inelastic, anti_xi0Inelastic, omega-Inelastic,anti_omega-Inelastic
anti_protonInelastic,anti_neutronInelastic,anti_deuteronInelastic,anti_tritonInelastic
anti_He3Inelastic,anti_alphaInelastic,hFritiofCaptureAtRest,hBertiniCaptureAtRest
muMinusCaptureAtRest, dInelastic, tInelastic, He3Inelastic
alphaInelastic, ionInelastic, nKiller
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -847,6 +854,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -1193,22 +1206,22 @@ CoulombScat: for pi-, integral: 1 SubType= 1 BuildTable= 1
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 257.259 MeV total track length: 18.7821 cm
Gap: total energy: 19.948 MeV total track length: 10.183 cm
Absorber: total energy: 284.965 MeV total track length: 20.5096 cm
Gap: total energy: 15.5384 MeV total track length: 7.91371 cm
----> print histograms statistic for the entire run
EAbs : mean = 257.259 MeV rms = 0 eV
EGap : mean = 19.948 MeV rms = 0 eV
LAbs : mean = 18.7821 cm rms = 0 fm
LGap : mean = 10.183 cm rms = 0 fm
EAbs : mean = 284.965 MeV rms = 0 eV
EGap : mean = 15.5384 MeV rms = 0 eV
LAbs : mean = 20.5096 cm rms = 0 fm
LGap : mean = 7.91371 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -1222,6 +1235,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -1568,15 +1587,15 @@ CoulombScat: for pi-, integral: 1 SubType= 1 BuildTable= 1
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 457.539 MeV total track length: 32.8939 cm
Gap: total energy: 22.9867 MeV total track length: 11.5387 cm
Absorber: total energy: 452.281 MeV total track length: 32.8474 cm
Gap: total energy: 30.1405 MeV total track length: 15.7021 cm
----> print histograms statistic for the entire run
EAbs : mean = 457.539 MeV rms = 0 eV
EGap : mean = 22.9867 MeV rms = 0 eV
LAbs : mean = 32.8939 cm rms = 0 fm
LGap : mean = 11.5387 cm rms = 0 fm
EAbs : mean = 452.281 MeV rms = 0 eV
EGap : mean = 30.1405 MeV rms = 0 eV
LAbs : mean = 32.8474 cm rms = 0 fm
LGap : mean = 15.7021 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
Graphics systems deleted.
+43
View File
@@ -0,0 +1,43 @@
// ROOT macro file for plotting example B4 histograms
//
// Can be run from ROOT session:
// root[0] .x plotHisto.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Draw Eabs histogram in the pad 1
c1->cd(1);
TH1D* hist1 = (TH1D*)f.Get("Eabs");
hist1->Draw("HIST");
// Draw Labs histogram in the pad 2
c1->cd(2);
TH1D* hist2 = (TH1D*)f.Get("Labs");
hist2->Draw("HIST");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y
TH1D* hist3 = (TH1D*)f.Get("Egap");
c1->cd(3);
gPad->SetLogy(1);
hist3->Draw("HIST");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y
c1->cd(4);
gPad->SetLogy(1);
TH1D* hist4 = (TH1D*)f.Get("Lgap");
hist4->Draw("HIST");
}
+42
View File
@@ -0,0 +1,42 @@
// ROOT macro file for plotting example B4 ntuple
//
// Can be run from ROOT session:
// root[0] .x plotNtuple.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Get ntuple
TNtuple* ntuple = (TNtuple*)f.Get("B4");
// Draw Eabs histogram in the pad 1
c1->cd(1);
ntuple->Draw("Eabs");
// Draw Labs histogram in the pad 2
c1->cd(2);
ntuple->Draw("Labs");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y ?? how to do this?
c1->cd(3);
gPad->SetLogy(1);
ntuple->Draw("Egap");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y ?? how to do this?
c1->cd(4);
gPad->SetLogy(1);
ntuple->Draw("Egap");
}
+2 -1
View File
@@ -1,4 +1,4 @@
# $Id: CMakeLists.txt 100923 2016-11-03 10:50:34Z gcosmo $
# $Id: CMakeLists.txt 104871 2017-06-23 14:17:13Z gcosmo $
#----------------------------------------------------------------------------
# Setup the project
@@ -48,6 +48,7 @@ set(EXAMPLEB4B_SCRIPTS
exampleB4.in
gui.mac
init_vis.mac
plotHisto.C
run1.mac
run2.mac
vis.mac
+56 -37
View File
@@ -4,7 +4,7 @@
############################################
*************************************************************
Geant4 version Name: geant4-10-03-patch-01 (24-February-2017)
Geant4 version Name: geant4-10-03-ref-06 (30-June-2017)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
@@ -66,7 +66,7 @@ Available colours:
***** Table : Nb of materials = 3 *****
Material: G4_Pb density: 11.350 g/cm3 RadL: 5.613 mm Nucl.Int.Length: 18.248 cm
Imean: 823.000 eV
Imean: 823.000 eV temperature: 293.15 K pressure: 1.00 atm
---> Element: Pb (Pb) Z = 82.0 N = 207 A = 207.217 g/mole
---> Isotope: Pb204 Z = 82 N = 204 A = 203.97 g/mole abundance: 1.400 %
@@ -77,7 +77,7 @@ Available colours:
Material: liquidArgon density: 1.390 g/cm3 RadL: 14.065 cm Nucl.Int.Length: 86.078 cm
Imean: 188.000 eV
Imean: 188.000 eV temperature: 293.15 K pressure: 1.00 atm
---> Element: Ar (Ar) Z = 18.0 N = 40 A = 39.950 g/mole
---> Isotope: Ar36 Z = 18 N = 36 A = 35.97 g/mole abundance: 0.337 %
@@ -115,7 +115,7 @@ Checking overlaps for volume Gap ... OK!
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -129,6 +129,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -793,10 +799,11 @@ Type of pre-compound inverse x-section 3
Type of de-excitation inverse x-section 3
Min excitation energy (keV) 0.01
Level density (1/MeV) 0.1
Time limit for long lived isomeres (ns) 1000
Time limit for long lived isomeres (ns) 1e+12
Use new data files 1
Use complete data files 0
Correlated gamma emission flag 0
Electron internal conversion ID 2
=======================================================================
Number of de-excitation channels 8
### Run 0 starts.
@@ -804,37 +811,37 @@ Number of de-excitation channels 8
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 288.973 MeV total track length: 20.951 cm
Gap: total energy: 7.92506 MeV total track length: 3.60411 cm
Absorber: total energy: 267.062 MeV total track length: 19.0834 cm
Gap: total energy: 9.63246 MeV total track length: 5.07935 cm
----> print histograms statistic for the entire run
EAbs : mean = 288.973 MeV rms = 0 eV
EGap : mean = 7.92506 MeV rms = 0 eV
LAbs : mean = 20.951 cm rms = 0 fm
LGap : mean = 3.60411 cm rms = 0 fm
EAbs : mean = 267.062 MeV rms = 0 eV
EGap : mean = 9.63246 MeV rms = 0 eV
LAbs : mean = 19.0834 cm rms = 0 fm
LGap : mean = 5.07935 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
Transportation, msc, hIoni, ionIoni
hBrems, hPairProd, CoulombScat, eIoni
eBrem, annihil, phot, compt
conv, muIoni, muBrems, muPairProd
photonNuclear, electronNuclear, positronNuclear, muonNuclear
Decay, hadElastic, neutronInelastic, nCapture
protonInelastic, pi+Inelastic, pi-Inelastic, kaon+Inelastic
kaon-Inelastic, kaon0LInelastic, kaon0SInelastic, lambdaInelastic
anti-lambdaInelastic, sigma-Inelastic,anti_sigma-Inelastic, sigma+Inelastic
anti_sigma+Inelastic, xi-Inelastic, anti_xi-Inelastic, xi0Inelastic
anti_xi0Inelastic, omega-Inelastic,anti_omega-Inelastic,anti_protonInelastic
anti_neutronInelastic,anti_deuteronInelastic,anti_tritonInelastic, anti_He3Inelastic
anti_alphaInelastic,hFritiofCaptureAtRest,hBertiniCaptureAtRest,muMinusCaptureAtRest
dInelastic, tInelastic, He3Inelastic, alphaInelastic
ionInelastic, nKiller
conv, Rayl, muIoni, muBrems
muPairProd, photonNuclear, electronNuclear, positronNuclear
muonNuclear, Decay, hadElastic, neutronInelastic
nCapture, protonInelastic, pi+Inelastic, pi-Inelastic
kaon+Inelastic, kaon-Inelastic, kaon0LInelastic, kaon0SInelastic
lambdaInelastic,anti-lambdaInelastic, sigma-Inelastic,anti_sigma-Inelastic
sigma+Inelastic,anti_sigma+Inelastic, xi-Inelastic, anti_xi-Inelastic
xi0Inelastic, anti_xi0Inelastic, omega-Inelastic,anti_omega-Inelastic
anti_protonInelastic,anti_neutronInelastic,anti_deuteronInelastic,anti_tritonInelastic
anti_He3Inelastic,anti_alphaInelastic,hFritiofCaptureAtRest,hBertiniCaptureAtRest
muMinusCaptureAtRest, dInelastic, tInelastic, He3Inelastic
alphaInelastic, ionInelastic, nKiller
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -848,6 +855,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -1195,22 +1208,22 @@ CoulombScat: for pi-, integral: 1 SubType= 1 BuildTable= 1
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 257.259 MeV total track length: 18.7821 cm
Gap: total energy: 19.948 MeV total track length: 10.183 cm
Absorber: total energy: 284.965 MeV total track length: 20.5096 cm
Gap: total energy: 15.5384 MeV total track length: 7.91371 cm
----> print histograms statistic for the entire run
EAbs : mean = 257.259 MeV rms = 0 eV
EGap : mean = 19.948 MeV rms = 0 eV
LAbs : mean = 18.7821 cm rms = 0 fm
LGap : mean = 10.183 cm rms = 0 fm
EAbs : mean = 284.965 MeV rms = 0 eV
EGap : mean = 15.5384 MeV rms = 0 eV
LAbs : mean = 20.5096 cm rms = 0 fm
LGap : mean = 7.91371 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -1224,6 +1237,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -1571,15 +1590,15 @@ CoulombScat: for pi-, integral: 1 SubType= 1 BuildTable= 1
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 457.539 MeV total track length: 32.8939 cm
Gap: total energy: 22.9867 MeV total track length: 11.5387 cm
Absorber: total energy: 452.281 MeV total track length: 32.8474 cm
Gap: total energy: 30.1405 MeV total track length: 15.7021 cm
----> print histograms statistic for the entire run
EAbs : mean = 457.539 MeV rms = 0 eV
EGap : mean = 22.9867 MeV rms = 0 eV
LAbs : mean = 32.8939 cm rms = 0 fm
LGap : mean = 11.5387 cm rms = 0 fm
EAbs : mean = 452.281 MeV rms = 0 eV
EGap : mean = 30.1405 MeV rms = 0 eV
LAbs : mean = 32.8474 cm rms = 0 fm
LGap : mean = 15.7021 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
Graphics systems deleted.
+43
View File
@@ -0,0 +1,43 @@
// ROOT macro file for plotting example B4 histograms
//
// Can be run from ROOT session:
// root[0] .x plotHisto.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Draw Eabs histogram in the pad 1
c1->cd(1);
TH1D* hist1 = (TH1D*)f.Get("Eabs");
hist1->Draw("HIST");
// Draw Labs histogram in the pad 2
c1->cd(2);
TH1D* hist2 = (TH1D*)f.Get("Labs");
hist2->Draw("HIST");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y
TH1D* hist3 = (TH1D*)f.Get("Egap");
c1->cd(3);
gPad->SetLogy(1);
hist3->Draw("HIST");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y
c1->cd(4);
gPad->SetLogy(1);
TH1D* hist4 = (TH1D*)f.Get("Lgap");
hist4->Draw("HIST");
}
+42
View File
@@ -0,0 +1,42 @@
// ROOT macro file for plotting example B4 ntuple
//
// Can be run from ROOT session:
// root[0] .x plotNtuple.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Get ntuple
TNtuple* ntuple = (TNtuple*)f.Get("B4");
// Draw Eabs histogram in the pad 1
c1->cd(1);
ntuple->Draw("Eabs");
// Draw Labs histogram in the pad 2
c1->cd(2);
ntuple->Draw("Labs");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y ?? how to do this?
c1->cd(3);
gPad->SetLogy(1);
ntuple->Draw("Egap");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y ?? how to do this?
c1->cd(4);
gPad->SetLogy(1);
ntuple->Draw("Egap");
}
+2 -1
View File
@@ -1,4 +1,4 @@
# $Id: CMakeLists.txt 100923 2016-11-03 10:50:34Z gcosmo $
# $Id: CMakeLists.txt 104871 2017-06-23 14:17:13Z gcosmo $
#----------------------------------------------------------------------------
# Setup the project
@@ -48,6 +48,7 @@ set(EXAMPLEB4C_SCRIPTS
exampleB4.in
gui.mac
init_vis.mac
plotHisto.C
run1.mac
run2.mac
vis.mac
+56 -37
View File
@@ -4,7 +4,7 @@
############################################
*************************************************************
Geant4 version Name: geant4-10-03-patch-01 (24-February-2017)
Geant4 version Name: geant4-10-03-ref-06 (30-June-2017)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
@@ -66,7 +66,7 @@ Available colours:
***** Table : Nb of materials = 3 *****
Material: G4_Pb density: 11.350 g/cm3 RadL: 5.613 mm Nucl.Int.Length: 18.248 cm
Imean: 823.000 eV
Imean: 823.000 eV temperature: 293.15 K pressure: 1.00 atm
---> Element: Pb (Pb) Z = 82.0 N = 207 A = 207.217 g/mole
---> Isotope: Pb204 Z = 82 N = 204 A = 203.97 g/mole abundance: 1.400 %
@@ -77,7 +77,7 @@ Available colours:
Material: liquidArgon density: 1.390 g/cm3 RadL: 14.065 cm Nucl.Int.Length: 86.078 cm
Imean: 188.000 eV
Imean: 188.000 eV temperature: 293.15 K pressure: 1.00 atm
---> Element: Ar (Ar) Z = 18.0 N = 40 A = 39.950 g/mole
---> Isotope: Ar36 Z = 18 N = 36 A = 35.97 g/mole abundance: 0.337 %
@@ -115,7 +115,7 @@ Checking overlaps for volume Gap ... OK!
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -129,6 +129,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -793,47 +799,48 @@ Type of pre-compound inverse x-section 3
Type of de-excitation inverse x-section 3
Min excitation energy (keV) 0.01
Level density (1/MeV) 0.1
Time limit for long lived isomeres (ns) 1000
Time limit for long lived isomeres (ns) 1e+12
Use new data files 1
Use complete data files 0
Correlated gamma emission flag 0
Electron internal conversion ID 2
=======================================================================
Number of de-excitation channels 8
### Run 0 starts.
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 288.973 MeV total track length: 20.951 cm
Gap: total energy: 7.92506 MeV total track length: 3.60411 cm
Absorber: total energy: 267.062 MeV total track length: 19.0834 cm
Gap: total energy: 9.63246 MeV total track length: 5.07935 cm
----> print histograms statistic for the entire run
EAbs : mean = 288.973 MeV rms = 0 eV
EGap : mean = 7.92506 MeV rms = 0 eV
LAbs : mean = 20.951 cm rms = 0 fm
LGap : mean = 3.60411 cm rms = 0 fm
EAbs : mean = 267.062 MeV rms = 0 eV
EGap : mean = 9.63246 MeV rms = 0 eV
LAbs : mean = 19.0834 cm rms = 0 fm
LGap : mean = 5.07935 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
Transportation, msc, hIoni, ionIoni
hBrems, hPairProd, CoulombScat, eIoni
eBrem, annihil, phot, compt
conv, muIoni, muBrems, muPairProd
photonNuclear, electronNuclear, positronNuclear, muonNuclear
Decay, hadElastic, neutronInelastic, nCapture
protonInelastic, pi+Inelastic, pi-Inelastic, kaon+Inelastic
kaon-Inelastic, kaon0LInelastic, kaon0SInelastic, lambdaInelastic
anti-lambdaInelastic, sigma-Inelastic,anti_sigma-Inelastic, sigma+Inelastic
anti_sigma+Inelastic, xi-Inelastic, anti_xi-Inelastic, xi0Inelastic
anti_xi0Inelastic, omega-Inelastic,anti_omega-Inelastic,anti_protonInelastic
anti_neutronInelastic,anti_deuteronInelastic,anti_tritonInelastic, anti_He3Inelastic
anti_alphaInelastic,hFritiofCaptureAtRest,hBertiniCaptureAtRest,muMinusCaptureAtRest
dInelastic, tInelastic, He3Inelastic, alphaInelastic
ionInelastic, nKiller
conv, Rayl, muIoni, muBrems
muPairProd, photonNuclear, electronNuclear, positronNuclear
muonNuclear, Decay, hadElastic, neutronInelastic
nCapture, protonInelastic, pi+Inelastic, pi-Inelastic
kaon+Inelastic, kaon-Inelastic, kaon0LInelastic, kaon0SInelastic
lambdaInelastic,anti-lambdaInelastic, sigma-Inelastic,anti_sigma-Inelastic
sigma+Inelastic,anti_sigma+Inelastic, xi-Inelastic, anti_xi-Inelastic
xi0Inelastic, anti_xi0Inelastic, omega-Inelastic,anti_omega-Inelastic
anti_protonInelastic,anti_neutronInelastic,anti_deuteronInelastic,anti_tritonInelastic
anti_He3Inelastic,anti_alphaInelastic,hFritiofCaptureAtRest,hBertiniCaptureAtRest
muMinusCaptureAtRest, dInelastic, tInelastic, He3Inelastic
alphaInelastic, ionInelastic, nKiller
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -847,6 +854,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -1193,22 +1206,22 @@ CoulombScat: for pi-, integral: 1 SubType= 1 BuildTable= 1
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 257.259 MeV total track length: 18.7821 cm
Gap: total energy: 19.948 MeV total track length: 10.183 cm
Absorber: total energy: 284.965 MeV total track length: 20.5096 cm
Gap: total energy: 15.5384 MeV total track length: 7.91371 cm
----> print histograms statistic for the entire run
EAbs : mean = 257.259 MeV rms = 0 eV
EGap : mean = 19.948 MeV rms = 0 eV
LAbs : mean = 18.7821 cm rms = 0 fm
LGap : mean = 10.183 cm rms = 0 fm
EAbs : mean = 284.965 MeV rms = 0 eV
EGap : mean = 15.5384 MeV rms = 0 eV
LAbs : mean = 20.5096 cm rms = 0 fm
LGap : mean = 7.91371 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -1222,6 +1235,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -1568,15 +1587,15 @@ CoulombScat: for pi-, integral: 1 SubType= 1 BuildTable= 1
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 457.539 MeV total track length: 32.8939 cm
Gap: total energy: 22.9867 MeV total track length: 11.5387 cm
Absorber: total energy: 452.281 MeV total track length: 32.8474 cm
Gap: total energy: 30.1405 MeV total track length: 15.7021 cm
----> print histograms statistic for the entire run
EAbs : mean = 457.539 MeV rms = 0 eV
EGap : mean = 22.9867 MeV rms = 0 eV
LAbs : mean = 32.8939 cm rms = 0 fm
LGap : mean = 11.5387 cm rms = 0 fm
EAbs : mean = 452.281 MeV rms = 0 eV
EGap : mean = 30.1405 MeV rms = 0 eV
LAbs : mean = 32.8474 cm rms = 0 fm
LGap : mean = 15.7021 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
Graphics systems deleted.
+43
View File
@@ -0,0 +1,43 @@
// ROOT macro file for plotting example B4 histograms
//
// Can be run from ROOT session:
// root[0] .x plotHisto.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Draw Eabs histogram in the pad 1
c1->cd(1);
TH1D* hist1 = (TH1D*)f.Get("Eabs");
hist1->Draw("HIST");
// Draw Labs histogram in the pad 2
c1->cd(2);
TH1D* hist2 = (TH1D*)f.Get("Labs");
hist2->Draw("HIST");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y
TH1D* hist3 = (TH1D*)f.Get("Egap");
c1->cd(3);
gPad->SetLogy(1);
hist3->Draw("HIST");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y
c1->cd(4);
gPad->SetLogy(1);
TH1D* hist4 = (TH1D*)f.Get("Lgap");
hist4->Draw("HIST");
}
+42
View File
@@ -0,0 +1,42 @@
// ROOT macro file for plotting example B4 ntuple
//
// Can be run from ROOT session:
// root[0] .x plotNtuple.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Get ntuple
TNtuple* ntuple = (TNtuple*)f.Get("B4");
// Draw Eabs histogram in the pad 1
c1->cd(1);
ntuple->Draw("Eabs");
// Draw Labs histogram in the pad 2
c1->cd(2);
ntuple->Draw("Labs");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y ?? how to do this?
c1->cd(3);
gPad->SetLogy(1);
ntuple->Draw("Egap");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y ?? how to do this?
c1->cd(4);
gPad->SetLogy(1);
ntuple->Draw("Egap");
}
+2 -1
View File
@@ -1,4 +1,4 @@
# $Id: CMakeLists.txt 100923 2016-11-03 10:50:34Z gcosmo $
# $Id: CMakeLists.txt 104871 2017-06-23 14:17:13Z gcosmo $
#----------------------------------------------------------------------------
# Setup the project
@@ -48,6 +48,7 @@ set(EXAMPLEB4D_SCRIPTS
exampleB4.in
gui.mac
init_vis.mac
plotHisto.C
run1.mac
run2.mac
vis.mac
+56 -37
View File
@@ -4,7 +4,7 @@
############################################
*************************************************************
Geant4 version Name: geant4-10-03-patch-01 (24-February-2017)
Geant4 version Name: geant4-10-03-ref-06 (30-June-2017)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
@@ -66,7 +66,7 @@ Available colours:
***** Table : Nb of materials = 3 *****
Material: G4_Pb density: 11.350 g/cm3 RadL: 5.613 mm Nucl.Int.Length: 18.248 cm
Imean: 823.000 eV
Imean: 823.000 eV temperature: 293.15 K pressure: 1.00 atm
---> Element: Pb (Pb) Z = 82.0 N = 207 A = 207.217 g/mole
---> Isotope: Pb204 Z = 82 N = 204 A = 203.97 g/mole abundance: 1.400 %
@@ -77,7 +77,7 @@ Available colours:
Material: liquidArgon density: 1.390 g/cm3 RadL: 14.065 cm Nucl.Int.Length: 86.078 cm
Imean: 188.000 eV
Imean: 188.000 eV temperature: 293.15 K pressure: 1.00 atm
---> Element: Ar (Ar) Z = 18.0 N = 40 A = 39.950 g/mole
---> Isotope: Ar36 Z = 18 N = 36 A = 35.97 g/mole abundance: 0.337 %
@@ -119,7 +119,7 @@ G4SDManager::AddNewCollection : the collection <Gap/TrackLength> is registered a
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -133,6 +133,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -797,47 +803,48 @@ Type of pre-compound inverse x-section 3
Type of de-excitation inverse x-section 3
Min excitation energy (keV) 0.01
Level density (1/MeV) 0.1
Time limit for long lived isomeres (ns) 1000
Time limit for long lived isomeres (ns) 1e+12
Use new data files 1
Use complete data files 0
Correlated gamma emission flag 0
Electron internal conversion ID 2
=======================================================================
Number of de-excitation channels 8
### Run 0 starts.
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 288.973 MeV total track length: 20.951 cm
Gap: total energy: 7.92506 MeV total track length: 3.60411 cm
Absorber: total energy: 267.062 MeV total track length: 19.0834 cm
Gap: total energy: 9.63246 MeV total track length: 5.07935 cm
----> print histograms statistic for the entire run
EAbs : mean = 288.973 MeV rms = 0 eV
EGap : mean = 7.92506 MeV rms = 0 eV
LAbs : mean = 20.951 cm rms = 0 fm
LGap : mean = 3.60411 cm rms = 0 fm
EAbs : mean = 267.062 MeV rms = 0 eV
EGap : mean = 9.63246 MeV rms = 0 eV
LAbs : mean = 19.0834 cm rms = 0 fm
LGap : mean = 5.07935 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
Transportation, msc, hIoni, ionIoni
hBrems, hPairProd, CoulombScat, eIoni
eBrem, annihil, phot, compt
conv, muIoni, muBrems, muPairProd
photonNuclear, electronNuclear, positronNuclear, muonNuclear
Decay, hadElastic, neutronInelastic, nCapture
protonInelastic, pi+Inelastic, pi-Inelastic, kaon+Inelastic
kaon-Inelastic, kaon0LInelastic, kaon0SInelastic, lambdaInelastic
anti-lambdaInelastic, sigma-Inelastic,anti_sigma-Inelastic, sigma+Inelastic
anti_sigma+Inelastic, xi-Inelastic, anti_xi-Inelastic, xi0Inelastic
anti_xi0Inelastic, omega-Inelastic,anti_omega-Inelastic,anti_protonInelastic
anti_neutronInelastic,anti_deuteronInelastic,anti_tritonInelastic, anti_He3Inelastic
anti_alphaInelastic,hFritiofCaptureAtRest,hBertiniCaptureAtRest,muMinusCaptureAtRest
dInelastic, tInelastic, He3Inelastic, alphaInelastic
ionInelastic, nKiller
conv, Rayl, muIoni, muBrems
muPairProd, photonNuclear, electronNuclear, positronNuclear
muonNuclear, Decay, hadElastic, neutronInelastic
nCapture, protonInelastic, pi+Inelastic, pi-Inelastic
kaon+Inelastic, kaon-Inelastic, kaon0LInelastic, kaon0SInelastic
lambdaInelastic,anti-lambdaInelastic, sigma-Inelastic,anti_sigma-Inelastic
sigma+Inelastic,anti_sigma+Inelastic, xi-Inelastic, anti_xi-Inelastic
xi0Inelastic, anti_xi0Inelastic, omega-Inelastic,anti_omega-Inelastic
anti_protonInelastic,anti_neutronInelastic,anti_deuteronInelastic,anti_tritonInelastic
anti_He3Inelastic,anti_alphaInelastic,hFritiofCaptureAtRest,hBertiniCaptureAtRest
muMinusCaptureAtRest, dInelastic, tInelastic, He3Inelastic
alphaInelastic, ionInelastic, nKiller
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -851,6 +858,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -1197,22 +1210,22 @@ CoulombScat: for pi-, integral: 1 SubType= 1 BuildTable= 1
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 257.259 MeV total track length: 18.7821 cm
Gap: total energy: 19.948 MeV total track length: 10.183 cm
Absorber: total energy: 284.965 MeV total track length: 20.5096 cm
Gap: total energy: 15.5384 MeV total track length: 7.91371 cm
----> print histograms statistic for the entire run
EAbs : mean = 257.259 MeV rms = 0 eV
EGap : mean = 19.948 MeV rms = 0 eV
LAbs : mean = 18.7821 cm rms = 0 fm
LGap : mean = 10.183 cm rms = 0 fm
EAbs : mean = 284.965 MeV rms = 0 eV
EGap : mean = 15.5384 MeV rms = 0 eV
LAbs : mean = 20.5096 cm rms = 0 fm
LGap : mean = 7.91371 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
phot: for gamma SubType= 12 BuildTable= 0
LambdaPrime table from 200 keV to 100 TeV in 61 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
PhotoElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
LivermorePhElectric : Emin= 0 eV Emax= 100 TeV AngularGenSauterGavrila FluoActive
compt: for gamma SubType= 13 BuildTable= 1
Lambda table from 100 eV to 1 MeV, 7 bins per decade, spline: 1
@@ -1226,6 +1239,12 @@ conv: for gamma SubType= 14 BuildTable= 1
BetheHeitler : Emin= 0 eV Emax= 80 GeV
BetheHeitlerLPM : Emin= 80 GeV Emax= 100 TeV
Rayl: for gamma SubType= 11 BuildTable= 1
Lambda table from 100 eV to 100 keV, 7 bins per decade, spline: 0
LambdaPrime table from 100 keV to 100 TeV in 63 bins
===== EM models for the G4Region DefaultRegionForTheWorld ======
LivermoreRayleigh : Emin= 0 eV Emax= 100 TeV CullenGenerator
msc: for e- SubType= 10
RangeFactor= 0.04, stepLimitType: 1, latDisplacement: 1
===== EM models for the G4Region DefaultRegionForTheWorld ======
@@ -1572,15 +1591,15 @@ CoulombScat: for pi-, integral: 1 SubType= 1 BuildTable= 1
... open Root analysis file : B4.root - done
--> Event 0 starts.
---> End of event: 0
Absorber: total energy: 457.539 MeV total track length: 32.8939 cm
Gap: total energy: 22.9867 MeV total track length: 11.5387 cm
Absorber: total energy: 452.281 MeV total track length: 32.8474 cm
Gap: total energy: 30.1405 MeV total track length: 15.7021 cm
----> print histograms statistic for the entire run
EAbs : mean = 457.539 MeV rms = 0 eV
EGap : mean = 22.9867 MeV rms = 0 eV
LAbs : mean = 32.8939 cm rms = 0 fm
LGap : mean = 11.5387 cm rms = 0 fm
EAbs : mean = 452.281 MeV rms = 0 eV
EGap : mean = 30.1405 MeV rms = 0 eV
LAbs : mean = 32.8474 cm rms = 0 fm
LGap : mean = 15.7021 cm rms = 0 fm
... write Root file : B4.root - done
... close Root file : B4.root - done
Graphics systems deleted.
+43
View File
@@ -0,0 +1,43 @@
// ROOT macro file for plotting example B4 histograms
//
// Can be run from ROOT session:
// root[0] .x plotHisto.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Draw Eabs histogram in the pad 1
c1->cd(1);
TH1D* hist1 = (TH1D*)f.Get("Eabs");
hist1->Draw("HIST");
// Draw Labs histogram in the pad 2
c1->cd(2);
TH1D* hist2 = (TH1D*)f.Get("Labs");
hist2->Draw("HIST");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y
TH1D* hist3 = (TH1D*)f.Get("Egap");
c1->cd(3);
gPad->SetLogy(1);
hist3->Draw("HIST");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y
c1->cd(4);
gPad->SetLogy(1);
TH1D* hist4 = (TH1D*)f.Get("Lgap");
hist4->Draw("HIST");
}
+42
View File
@@ -0,0 +1,42 @@
// ROOT macro file for plotting example B4 ntuple
//
// Can be run from ROOT session:
// root[0] .x plotNtuple.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Get ntuple
TNtuple* ntuple = (TNtuple*)f.Get("B4");
// Draw Eabs histogram in the pad 1
c1->cd(1);
ntuple->Draw("Eabs");
// Draw Labs histogram in the pad 2
c1->cd(2);
ntuple->Draw("Labs");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y ?? how to do this?
c1->cd(3);
gPad->SetLogy(1);
ntuple->Draw("Egap");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y ?? how to do this?
c1->cd(4);
gPad->SetLogy(1);
ntuple->Draw("Egap");
}
+6
View File
@@ -14,6 +14,12 @@ track of all tags.
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
26/06/17 M. Maire (exampleB4-V10-03-01)
- Improved plotHisto.C, added plotNtuple.C and updated documentation
23/06/17 M. Maire (exampleB4-V10-03-00)
- add the script plotHisto.C
19/11/16 A. Dotti (exampleB4-V10-02-04)
- explicit set of SDs to manager
+13 -7
View File
@@ -1,4 +1,4 @@
$Id: README 94957 2016-01-08 13:27:26Z gcosmo $
$Id: README 104901 2017-06-26 14:40:57Z gcosmo $
-------------------------------------------------------------------
=========================================================
@@ -168,15 +168,21 @@ $Id: README 94957 2016-01-08 13:27:26Z gcosmo $
- Track length in gap
The same values are also saved in an ntuple.
The histograms and ntuple are saved in the output file in a format
according to a technology selected in B4Analysis.hh.
The histograms and the ntuple are saved in the output file in a format
according to a technology selected in B4Analysis.hh, the default in this example
is ROOT.
The accumulated statistic and computed dispersion is printed at the end of
run, in B4RunAction::EndOfRunAction().
When running in multi-threading mode, the histograms accumulated on threads are
automatically merged in a single output file, while the ntuple is written
in files per thread.
When running in multi-threading mode, the histograms and the ntuple accumulated
on threads are merged in a single output file. While merging of histograms is
performed by default, merging of ntuples is explicitly activated in the B4RunAction
constructor.
The ROOT histograms and ntuple can be plotted with ROOT using the plotHisto.C
and plotNtuple.C macros.
8- VISUALIZATION TUTORIAL
Additional visualization tutorial macros are available in the visTutor
+43
View File
@@ -0,0 +1,43 @@
// ROOT macro file for plotting example B4 histograms
//
// Can be run from ROOT session:
// root[0] .x plotHisto.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Draw Eabs histogram in the pad 1
c1->cd(1);
TH1D* hist1 = (TH1D*)f.Get("Eabs");
hist1->Draw("HIST");
// Draw Labs histogram in the pad 2
c1->cd(2);
TH1D* hist2 = (TH1D*)f.Get("Labs");
hist2->Draw("HIST");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y
TH1D* hist3 = (TH1D*)f.Get("Egap");
c1->cd(3);
gPad->SetLogy(1);
hist3->Draw("HIST");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y
c1->cd(4);
gPad->SetLogy(1);
TH1D* hist4 = (TH1D*)f.Get("Lgap");
hist4->Draw("HIST");
}
+42
View File
@@ -0,0 +1,42 @@
// ROOT macro file for plotting example B4 ntuple
//
// Can be run from ROOT session:
// root[0] .x plotNtuple.C
{
gROOT->Reset();
gROOT->SetStyle("Plain");
// Draw histos filled by Geant4 simulation
//
// Open file filled by Geant4 simulation
TFile f("B4.root");
// Create a canvas and divide it into 2x2 pads
TCanvas* c1 = new TCanvas("c1", "", 20, 20, 1000, 1000);
c1->Divide(2,2);
// Get ntuple
TNtuple* ntuple = (TNtuple*)f.Get("B4");
// Draw Eabs histogram in the pad 1
c1->cd(1);
ntuple->Draw("Eabs");
// Draw Labs histogram in the pad 2
c1->cd(2);
ntuple->Draw("Labs");
// Draw Egap histogram in the pad 3
// with logaritmic scale for y ?? how to do this?
c1->cd(3);
gPad->SetLogy(1);
ntuple->Draw("Egap");
// Draw Lgap histogram in the pad 4
// with logaritmic scale for y ?? how to do this?
c1->cd(4);
gPad->SetLogy(1);
ntuple->Draw("Egap");
}