-
Notifications
You must be signed in to change notification settings - Fork 0
Installing PadmeMC on CVMFS
Emanuele Leonardi edited this page Jul 26, 2024
·
8 revisions
-
Compile the desired version of PadmeRoot and PadmeMC on a CentOs7 and on a SLC6 node.
-
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
- Copy all needed libraries and the
PADMEMC
binary to thelib
andbin
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
- 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/
- 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
- Prepare the tar ball which will be installed on cvmfs
[leonardi@padmeui test20191014]$ cd ..
[leonardi@padmeui PadmeMC]$ tar -czvf test20191014.tar.gz test20191014
- Copy the tar ball to bastion.cnaf.infn.it at CNAF
[leonardi@padmeui PadmeReco]$ scp test20191014.tar.gz leonardi@bastion.cnaf.infn.it:
- 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
- Initiate the CVMFS transaction to install the package
[leonardi@cvmfs-padme ~]$ sudo cvmfs_server transaction
- 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
- Finalize the CVMFS transaction
[leonardi@cvmfs-padme ~]$ sudo cvmfs_server publish
- All is done: you can logout from CNAF
[leonardi@cvmfs-padme ~]$ exit
[leonardi@bastion ~]$ exit
- After a few minutes check if package is visible on cvmfs
[leonardi@padmeui PadmeMC]$ ls -l /cvmfs/padme.infn.it/PadmeMC/test20191014