Skip to content

missionnowin/NIR-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo now contains:

1. examples

  • B1 - basic example from geant4/examples/basic/B1
  • field2 - simple example with particle in e/m field
  • kon1 - basic example with particle passing throught breaking target to some detector(detecting volume)

2. projects

  • mpc-detector - microchannel plates detector model
  • muon-flight - mini-project with simulation of cosmic muons flight through atmosphere (20 - 0 km). (Maybe not working now)
  • radioactive-decay - project with simulation of radioactive decay of some ions. Planned to be a simulation of 3D-material with some radioactive ion inclusions and some detecting volume as a detector model. NOT real detector model, this task is not considered

Note:

All projects were initialy build on Geant4 v.11.2.1 + OS Windows so they may contains some platform specific libraries for C++ & platrom-specific .mac files, but they can be easily transfered to any other OS. For some projects additional software may be required (e.g. ROOT)

Required software:

  1. Geant4
  2. CMake
  3. ROOT (optional)
  4. HepRep vis tools (optional)

Build & run order:

1. Pre-build setup

   cd ${geant4-install}/bin

Windows:

   call geant4.bat

Linux:

   source geant4.sh

2. Build

   cd ${your_project}/
   cd ..
   mkdir ${your_project}-build
   cd ${your_project}-build/
   cmake ../${your_project}

3. Compile

Winows: build via Visual Studio or any other tool
Linux:

   make -j8

4. Run

Linux: run executable from same teriminal or new terminal after source geant4.sh
Windows: run executable from sane cmd/shell or new session after call geant4.bat
Or setup proper enviroment with all required imports

About

Repository with my uni geant4 projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published