Skip to content

Optical simulation of SiPM reading scintillating crystal, particularly focused on LYSO

Notifications You must be signed in to change notification settings

fabio-mon/SiPM_simulation

Repository files navigation

SiPM_simulation

#Optical simulation of SiPM reading scintillating crystal, particularly focused on LYSO

#Installing instructions on lxplus

mkdir <work_dir>

cd <work_dir>

git clone [email protected]:fabio-mon/SiPM_simulation.git

cd SiPM_simulation

mkdir <build_dir>

cd <build_dir>

source /afs/cern.ch/sw/lcg/contrib/gcc/4.9/x86_64-slc6/setup.sh

source /afs/cern.ch/sw/lcg/external/geant4/10.1.p02/x86_64-slc6-gcc49-opt-MT/CMake-setup.sh

export CXX=/afs/cern.ch/sw/lcg/contrib/gcc/4.9/x86_64-slc6/bin/g++

export CC=/afs/cern.ch/sw/lcg/contrib/gcc/4.9/x86_64-slc6/bin/gcc

cmake -DGeant4_DIR=/afs/cern.ch/sw/lcg/external/geant4/10.1.p02/x86_64-slc6-gcc49-opt-MT/lib64/Geant4-10.1.2 ..

#to compile and get the executable (executable name = "exampleB4c") in the <build_dir>

make

#when opening a new shell BEFORE running the executable

source /afs/cern.ch/sw/lcg/contrib/gcc/4.9/x86_64-slc6/setup.sh

source /afs/cern.ch/sw/lcg/external/geant4/10.1.p02/x86_64-slc6-gcc49-opt-MT/CMake-setup.sh

export CXX=/afs/cern.ch/sw/lcg/contrib/gcc/4.9/x86_64-slc6/bin/g++

export CC=/afs/cern.ch/sw/lcg/contrib/gcc/4.9/x86_64-slc6/bin/gcc

#to run the executable

./exampleB4c <configfile.cfg>

#the outputs of the simulation are many files produced by multithreaded geant, for example: filename_t0.root -> file produced by thread 0 #to work with them an hadd is required or in root TChain::Add

#NOTE: some configfile can be found in python folder (see LASC.cfg which is updated with the last config options)

About

Optical simulation of SiPM reading scintillating crystal, particularly focused on LYSO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published