Installing PadmeMC on CVMFS - PADME-Experiment/padme-prod GitHub Wiki

  1. Compile the desired version of PadmeRoot and PadmeMC on a CentOs7 and on a SLC6 node.

  2. Create the directory structure for the package. Use version identifier as the top directory name (here test20191014)

[leonardi@padmeui PadmeReco]$ mkdir test20191014
[leonardi@padmeui PadmeReco]$ cd test20191014
[leonardi@padmeui test20191014]$ mkdir config gdml centos7 slc6
[leonardi@padmeui test20191014]$ mkdir centos7/bin centos7/lib slc6/bin slc6/lib
  1. Copy all needed libraries and the PADMEMC binary to the lib and bin directories, respectively
[leonardi@padmeui test20191014]$ cp /home/leonardi/padme-fw/PadmeMC/bin/Linux-g++/PADMEMC centos7/bin/
[leonardi@padmeui test20191014]$ cp /home/leonardi/padme-fw/PadmeMC/tmp/Linux-g++/PADMEMC/lib*.so centos7/lib/
[leonardi@padmeui test20191014]$ cp /home/leonardi/padme-fw/PadmeRoot/lib/libPadmeRoot.so centos7/lib/

This must be repeated for both the CentOS7 and the SLC6 version

  1. Copy the GDML files with the Vacuum Chamber geometry to the gdml directory
[leonardi@padmeui test20191014]$ cp -r /home/leonardi/padme-fw/PadmeMC/gdml/* gdml/
  1. Copy the job configuration script from the padme-prod package to the config directory
[leonardi@padmeui test20191014]$ cp /home/leonardi/prod/padme-prod/cfg/padme-configure.sh.template config/padme-configure.sh

N.B. the template script might need modifications if the version of the gcc/root/geant4 packages changes

Also, if your MonteCarlo needs any kinematics files, include them in the config directory

  1. Prepare the tar ball which will be installed on cvmfs
[leonardi@padmeui test20191014]$ cd ..
[leonardi@padmeui PadmeMC]$ tar -czvf test20191014.tar.gz test20191014
  1. Copy the tar ball to bastion.cnaf.infn.it at CNAF
[leonardi@padmeui PadmeReco]$ scp test20191014.tar.gz [email protected]:
  1. Log on the CVMFS server node via bastion
[leonardi@padmeui PadmeReco]$ ssh -Y -l leonardi bastion.cnaf.infn.it
[leonardi@bastion ~]$ ssh -Y cvmfs-padme.cnaf.infn.it
  1. Initiate the CVMFS transaction to install the package
[leonardi@cvmfs-padme ~]$ sudo cvmfs_server transaction
  1. Using the special padme account, recover the tar ball from bastion and install it in /cvmfs/padme.infn.it/PadmeMC
[leonardi@cvmfs-padme ~]$ sudo su - padme
[padme@cvmfs-padme ~]$ scp leonardi@bastion:test20191014.tar.gz .
[padme@cvmfs-padme ~]$ cd /cvmfs/padme.infn.it/PadmeMC
[padme@cvmfs-padme PadmeMC]$ tar -xzvf /home/padme/test20191014.tar.gz
[padme@cvmfs-padme PadmeMC]$ exit
  1. Finalize the CVMFS transaction
[leonardi@cvmfs-padme ~]$ sudo cvmfs_server publish
  1. All is done: you can logout from CNAF
[leonardi@cvmfs-padme ~]$ exit
[leonardi@bastion ~]$ exit
  1. After a few minutes check if package is visible on cvmfs
[leonardi@padmeui PadmeMC]$ ls -l /cvmfs/padme.infn.it/PadmeMC/test20191014