## Setup on Twister
Twister: `twister.phy.bnl.gov`
Geant4, ROOT, edep-sim are preinstalled:
```
source /data1/apps/geant4/geant4-v11.1.1-install/bin/geant4.sh
source /data1/apps/root/root-6.28/bin/thisroot.sh
export PATH=$PATH:/data1/apps/edep-sim/edep-sim/build-1/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data1/apps/edep-sim/edep-sim/build-1/lib
```
Genie+EdepSim output files are located at `/data2/users/chao/dune/edep/data`
If you want to use anaconda to install python packages such as matplotlib, it is also preinstalled:
```
source /home/chao/setup_conda.sh
```
Visual Studio code is pre-installed: `code`
## Links
* [Running Genie+EdepSim on FNAL](https://github.com/weishi10141993/NeutrinoPhysics/blob/main/GeneralPurposeTools/NuEventGen.md)
* [Analyze EdepSim file with PyEdep](https://github.com/czczc/PyEdep)
* [EdepSim source repo](https://github.com/ClarkMcGrew/edep-sim)
## Additonal Information
If you need to install Geant4, ROOT, etc.
### Geant4 Installation
```
sudo apt install git dpkg-dev cmake g++ gcc binutils libx11-dev libxmu-dev libxpm-dev libxft-dev libxext-dev xlibmesa-glu-dev libxerces-c-dev qt5-default qtbase5-dev-tools libqt5gui5 libqt5opengl5-dev expat libmotif-common libmotif-dev
cd geant4-v11.1.1-build/
cmake -DCMAKE_INSTALL_PREFIX=/data1/apps/geant4/geant4-v11.1.1-install /data1/apps/geant4/geant4-v11.1.1
cmake -DGEANT4_INSTALL_DATA=ON .
cmake -DGEANT4_USE_GDML=ON -DGEANT4_USE_QT=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_BUILD_MULTITHREADED=ON .
make -j8
make install
```
### ROOT Installation
```
cmake -DCMAKE_INSTALL_PREFIX=/data1/apps/root/root-6.28 -Dminuit2=ON -Dgdml=ON ../src/root-6.28.06
make -j8
```