Skip to content

alexsr-98/FPFE_PL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My first Geant4 application

This contains the code of the lab sessions of FPFE.

To get the code:
git clone [email protected]:alexsr-98/FPFE_PL.git MyFirstApplication

How to build this application

  1. Create the build folder

cd MyFirstApplication

mkdir build

cd build

  1. Compile the code

cmake3 -DGeant4_DIR=/Where/Your/Geant4/installation/is/lib/Geant4-10.6.0/ ../

make

How to run this application

  1. Interactive mode

To run the application in the interactive mode, move to the build folder an execute

./main

  1. Use macros

You can use macros to set up the simulation automaticaly. To display the visual simulation execute

./main ../vis.mac

A simple simulation without visual representation is implemented in the run2.mac

./main ../run2.mac

  1. Perform the Meroli experiment

To reproduce the results from the Meroli experiment

./main ../experiment/Meroli_exp.mac

This will produce a rootfile in the build folder called Histograms.root

To plot this information together with the experimental data from experiment/exp_Meroli_100MeV_electron_5p6um_Si.dat, move to MyFirstApplication and execute

python experiment/plotter.py

This will create a folder plots_ExpMeroli with the plots.

  1. Study different materials, thickness, energy and particles.

Move to MyFirstApplication and execute

python executer.py

python plotter.py

This will create a folder plots with all the histograms configured in executer.py.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published