Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -28,16 +28,17 @@
|
||||
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);
|
||||
// set logarithmic scale for y
|
||||
//gPad->SetLogy(1);
|
||||
hist3->Draw("HIST");
|
||||
|
||||
// Draw Lgap histogram in the pad 4
|
||||
// with logaritmic scale for y
|
||||
c1->cd(4);
|
||||
gPad->SetLogy(1);
|
||||
// set logarithmic scale for y
|
||||
//gPad->SetLogy(1);
|
||||
TH1D* hist4 = (TH1D*)f.Get("Lgap");
|
||||
hist4->Draw("HIST");
|
||||
}
|
||||
|
||||
@@ -28,15 +28,15 @@
|
||||
c1->cd(2);
|
||||
ntuple->Draw("Labs");
|
||||
|
||||
// Draw Egap histogram in the pad 3
|
||||
// with logaritmic scale for y ?? how to do this?
|
||||
// Draw Egap histogram in the pad
|
||||
c1->cd(3);
|
||||
gPad->SetLogy(1);
|
||||
//set logarithmic scale for y
|
||||
//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");
|
||||
//set logarithmic scale for y
|
||||
//gPad->SetLogy(1);
|
||||
ntuple->Draw("Lgap");
|
||||
}
|
||||
|
||||
@@ -1,44 +1,40 @@
|
||||
# Macro file for example B4
|
||||
#
|
||||
#
|
||||
# Can be run in batch, without graphic
|
||||
# or interactively: Idle> /control/execute run1.mac
|
||||
#
|
||||
# Change the default number of workers (in multi-threading mode)
|
||||
#
|
||||
# change the default number of workers (in multi-threading mode)
|
||||
#/run/numberOfThreads 4
|
||||
#
|
||||
# Kind of tutorial:
|
||||
# interactively with visualization, issue the commands one by one:
|
||||
# Idle> gun/particle mu+
|
||||
# Idle> ...etc...
|
||||
#
|
||||
# Initialize kernel
|
||||
/run/initialize
|
||||
#
|
||||
# Default kinematics:
|
||||
# electron 50 MeV in direction (0.,0.,1.)
|
||||
# 1 event with tracking/verbose
|
||||
# muon 300 MeV in direction (0.,0.,1.)
|
||||
/gun/particle mu+
|
||||
/gun/energy 300 MeV
|
||||
#
|
||||
/tracking/verbose 1
|
||||
/run/beamOn 1
|
||||
#
|
||||
#
|
||||
# muon 300 MeV in direction (0.,0.,1.)
|
||||
# 3 events
|
||||
#
|
||||
/gun/particle mu+
|
||||
/gun/energy 3 MeV
|
||||
/run/beamOn 3
|
||||
#
|
||||
# 20 events
|
||||
#
|
||||
/tracking/verbose 0
|
||||
/run/printProgress 5
|
||||
/run/beamOn 20
|
||||
/run/beamOn 10
|
||||
#
|
||||
# Magnetic field
|
||||
#
|
||||
/globalField/setValue 0.2 0 0 tesla
|
||||
/run/beamOn 3
|
||||
# inactivate multiple scattering process
|
||||
/process/inactivate msc
|
||||
/run/beamOn 10
|
||||
#
|
||||
# Activate/inactivate physics processes
|
||||
# set a magnetic field
|
||||
/globalField/setValue 2 0 0 tesla
|
||||
/run/beamOn 10
|
||||
#
|
||||
/process/list
|
||||
/process/inactivate eBrem
|
||||
#
|
||||
/run/beamOn 20
|
||||
# re-activate multiple scattering
|
||||
/process/activate msc
|
||||
/run/beamOn 10
|
||||
#
|
||||
# verbosity
|
||||
/tracking/verbose 2
|
||||
/run/beamOn 1
|
||||
|
||||
@@ -1,17 +1,23 @@
|
||||
# Macro file for example B4
|
||||
#
|
||||
#
|
||||
# To be run preferably in batch, without graphics:
|
||||
# % exampleB4[a,b,c,d] run2.mac
|
||||
# % exampleB4[a,b,c,d] -m run2.mac
|
||||
#
|
||||
# Produce Histograms and Ntuples
|
||||
#
|
||||
#/run/numberOfThreads 4
|
||||
#/control/cout/ignoreThreadsExcept 0
|
||||
#
|
||||
# reduce the verbosity level for EM and hadronic physics
|
||||
#/process/em/verbose 0
|
||||
#/process/had/verbose 0
|
||||
#
|
||||
/run/initialize
|
||||
#
|
||||
# Default kinemtics:
|
||||
# electron 50 MeV in direction (0.,0.,1.)
|
||||
# 1000 events
|
||||
# Default kinemtics:
|
||||
# electron 300 MeV in direction (0.,0.,1.)
|
||||
# 10000 events
|
||||
#
|
||||
/run/printProgress 100
|
||||
/run/beamOn 1000
|
||||
/run/printProgress 1000
|
||||
/run/beamOn 10000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user