Setup GEMC

In your work space (/work/clas12/users/yourjlabusername), create a new repository named gemc

mkdir gemc
cd gemc

GEMC source

Now, clone my version of GEMC :

git clone git@github.com:ftouchte/gemc_source.git source

N.B: The repository has been renamed source.

If you don't have a ssh key, you will get an error. You can learn how to create one and add this in your GitHub account. Then you can re-use the same command. If you don't want to create a ssh key, you can use :

git clone https://github.com/ftouchte/gemc_source.git source

Now go inside the directory and compile gemc.

cd source
scons -j4

An executabe called gemc has been created.

GEMC detector

Go back in your working space (/work/clas12/users/yourjlabusername/gemc) and clone this repository:

git clone git@github.com:mpaolone/detectors.git detectors

or

git clone https://github.com/mpaolone/detectors.git detectors

Now go inside the directory

cd detectors/clas12/alert

and copy and paste the following lines in the terminal (line by line)

cd ../targets
./targets.pl config.dat
cd ../alert/ahdc
./ahdc.pl config.dat
cd ../atof
./atof.pl config.dat
cd ../external_shell_nonActif
./alertshell.pl config.dat
cd ../He_bag
./hebag.pl config.dat
cd ../