alcap-org / g4sim

Simulation toolkit based on Geant4 and ROOT
http://wuchen1106.github.io/g4sim/
2 stars 2 forks source link

Condense installation #17

Closed AndrewEdmonds11 closed 10 years ago

AndrewEdmonds11 commented 10 years ago

Ok I've managed to condense things down.

Here are the steps to install g4sim and geant4:

> git clone git@github.com:alcap-org/g4sim.git
> cd g4sim
> git checkout condense-installation
> ./install-geant4.sh

To compile g4sim:

> source env.sh
> cd cmake
> cmake .
> make

To run g4sim:

> cd ../alcap
> g4sim macros/test_run.mac

This should then produce a visualisation of the experiment and produce tracks for one photon from the target.

I've tested this on SLC5 here at UCL and will test on Merlin. If others could check that they can get it to work as well and post any issues they have then that would be great.

I will merge this branch in a couple of days if there are no major problems.

PS The env.sh script assumes that g4sim/ is put in the same folder as AlcapDAQ i.e:

- YourDir/
| - AlcapDAQ/
| | - analyzer/
| | - etc.
| - g4sim/
AndrewEdmonds11 commented 10 years ago

Just tested it on Merlin and it all worked! :)

thnam commented 10 years ago

Nice!

wuchen1106 commented 10 years ago

Works for Arch Linux. Thanks to Andy! I think we can merge it back to master.

AndrewEdmonds11 commented 10 years ago

Done