The Edinburgh G4 simulation of the Crystal Ball detector

Visualisation of G4 Crystall Ball/ TAPS simulation

The Edinburgh Nuclear Physics group has developed a new GEANT 4 simulation of the Crystal Ball and associated apparatus at MAMI. The development of a new simulation using the latest software packages is crucial to have accurate treatment of hadronic nuclear interactions for further development of particle-ID techniques and polarized nucleon-nucleus scattering reactions necessary for our recoil polarimeter. GEANT4 is a particle tracking simulation created and supported by CERN.

Download

Source code

Not stand-alone version which requires GEANT4, acqu, etc. to be preinstalled on the system and correctly set with the system environments (GEANT4)

  1. The most recent version for downloading can be found here
    This version as been tested but not benchmarked with the GEANT4 version 4.9.6p02. See README.txt file inside for installation.
  2. The branch GEANT4.10_single contains an updated version that works with the current GEANT4.10 versions
  3. The branch GEANT4.10_multi contains the work in progress towards the multi-core support  of the A2 simulation software.
  •  A detailed manual and history are available here.
  • For polarized targets, the magnetic field map (transverse only) is here.
  • The previous version is of this GEANT4 simulation software is available here.

Virtual Machine

A second option is a Full Virtual Machine with no need of extra installations (other than the VMWARE player): Comes with full Acqu software (Nov 2013) installed, ROOT 5.34/12 (Nov 2013), GEANT4.9.6p02 (current in Nov 2013), CLHEP 2.1.4.1 (current in Nov 2013) and the latest A2 geant4 simulation package.
A password "hint" is written in the home directory of the virtual system !!!! It requires 15Gb of space in your hard disk in order to complete the installation !!!!.
For the Virtual machine there are two choices:

VMWARE Virtual Machine

(suggested for every OS, but a free player is just available for Linux (32bit and 64bit) and Windows ... No Mac (!? for which it is available a paid version).

  • VMWARE is suggested because has a better support of the new OpenGL libraries used in the current Linux systems and everything seems running more fluently
  • One can grab the VMWARE player here.
    The version of the player used to build this machine is VMWARE player 6.0.1, stick to this version in order to avoid problems of compatibility).
  • The virtual machine has been "zipped" with p7zip (If not available with your current package manager, the last version is available here ) in order to minimize the file transfer size (3120Mb zipped to 10707Mb unzipped).
  • Then download the Acqu system image from here
    (It is a large file of 3.0Gb, because it is a full system).
  • Place it in your directory of choice, unpack the image with the command: p7zip -d Acqu_vmware.7z (Or use the software for your system)
  • Just open the VMWARE player and click on "Open a Virtual Machine" and point it to the .vmdk file inside the directory Acqu_vmware. You can now use a full portable Acqu software release.
  • The configuration of the guest system (Acqu_vmware) : 4CPU, 4Gb of ram. (Edit Virtual machine settings if your system host (your computer) does not satisfy (CPU) and surpass(ram) the requirements)

VIRTUALBOX Virtual Machine

(It is free on any OS, It is fine if not intensive graphic are required)  

  • Grab your VirtualBox player from here
  • The virtual machine has been "zipped" with p7zip (If not available with your current package manager, the last version is available here ) in order to minimize the file transfer size (3120Mb zipped to 10707Mb unzipped).
  • Then download the Acqu system image from here
    (It is a large file of 3.0Gb because it is a full system).
  • Place it in your directory of choice, unpack the image with the command: p7zip -d Acqu_vmware.7z (Or use the software for your system)
  • Open the installed VirtualBox Manager
  • Click on "New", give a Name, and select the system (Linux, Ubuntu(64bit) ). Click on Next
  • Now you can choose the Memory size that will have your virtual machine (the more, the better, but should be less than what the host system is using). Click on Next
  • Hard drive: Select "Use an existing virtual hard drive file". Now click on the icon in order to browse the files and pointed it to "Acqu_vmware/Ubuntu 64-bit 12.04.vmdk" (it is in the Acqu_vmware directory that you will find after lrzuntar the file). (there are multiple vdmk files, you should point it to the correct one). Click on Create

Suggestions

  • You can configure your system changing your settings, by selecting your system and clicking on settings (the virtual machine will need to be powered off).
  • Both Virtual machine systems have the possibility to "Save the machine state". This will freeze your machine to the point you were working and it is normally faster than starting it (The one issue is that you cannot change its settings).
  • A password "hint" is written in the home directory of the virtual system
  • Considering that this Virtual Machine has as main goal its portability, the available direct free space it is not too much (4-5Gb). But one can use the feature of Sharing Folders with the host system in order to easily read data, etc. This option is available in the Settings (just remember to "power off" the virtual machine in order to modify its settings)