Skip to content

jintonic/gefica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doxygen License: MIT Code size

Introduction

GeFiCa stands for Ge detector Field Calculator. It provides classes to calculate static electric fields and potentials in Ge detectors using various coordinates in up to three dimensions. The field potential values together with their grid coordinates are saved in a ROOT tree to take the advantage of the file compression and the Draw function provided by the ROOT TTree class. GeFiCa is provided as a shared library that can be directly loaded by ROOT. All GeFiCa classes can be used directly in a ROOT interactive session or a Jupyter notebook. Users can modify and run their calculation codes without compilation.

Directories

Directory Contents
src source code
docs documentation
examples ROOT & Python scripts demonstrating usage of GeFiCa

Get started

  1. Make sure that ROOT (version 6 and above) is installed.
  2. Execute the following commands in a terminal:
git clone https://github.com/jintonic/gefica.git
cd gefica/src
make
export LD_LIBRARY_PATH=$(PWD):$LD_LIBRARY_PATH
# change LD_LIBRARY_PATH to DYLD_LIBRARY_PATH for MAC
cd ../examples/segmented
root -l drawSliceInPhi.cc

References

Similar projects

Git submodule of MJD fieldgen

GeFiCa contains a Git submodule of MJD fieldgen. It is a mirror of the MJD siggen (including fieldgen) subversion repository in GitHub. The mirroring is done by

apt install git-svn
git svn clone https://radware.phy.ornl.gov/MJ/mjd_siggen/ siggen
git remote add origin git@github.com:jintonic/siggen.git
git push origin master

Adding it as a git submodule to GeFiCa is done by

cd /path/to/GeFiCa
git submodle add https://github.com/jintonic/siggen.git examples/pointContact/fieldgen
git commit -m "added siggen submodule"
git push

Cloning GeFiCa with fieldgen can be done by doing

git clone https://github.com/jintonic/gefica.git
cd gefica
git submodule init
git submodule update

Updating GeFiCa and fieldgen can be done by doing

cd gefica
git pull
cd examples/pointContact/fieldgen
git pull