coral from your local computer
Foreword
- This is mean to be stub. Users are invited to develop it, based on their own experience.
- The problem of the access to the data is left aside: let's assume that they are copied locally.
- Here we concentrate on these other inputs needed by coral for the setup info.
cvmfs
- cvmfs is useful at various steps of the installation and execution.
- See CernVM-FS web page for the installation.
- /etc/cvmfs/default.local could be:
CVMFS_REPOSITORIES=compass.cern.ch,compass-condb.cern.ch,compass-mc.cern.ch,/sft.cern.ch
CVMFS_CLIENT_PROFILE=single
Environment
if ( $DEBUG == 1 ) then
set lcg = /cvmfs/sft.cern.ch/lcg/views/LCG_94python3/x86_64-centos7-gcc7-deb
else
set lcg = /cvmfs/sft.cern.ch/lcg/views/LCG_94python3/x86_64-centos7-gcc7-opt
endif
set wdSave = $PWD
printf ' * .login: source %s...' $lcg/setup.csh
cd $lcg; source setup.csh # Execute LCG setup in its own directory
if ( -e $lcg/bin/geant4.csh ) then
set geant4Setup = `readlink -m $lcg/bin/geant4.csh`
printf '\n * .login: source %s...' $geant4Setup
cd $geant4Setup:h; source geant4.csh
else
printf '\n** .login: No "geant4.csh" script found in "%s"\n' $lcg/bin
endif
printf '\n'
cd $wdSave
setenv CERNLIB /cvmfs/compass-mc.cern.ch/sw/cernlib/x86_64-centos7-linux_gcc6.3.1/2006
- We also need a TGEANT installation.
Configuration
- See the § about configuration on coral's main wiki page.
- For an installation on a local computer, the configuration can be simplified by dropping some of CERNLIB. E.g:
$ ./configure --with-TGEANT=$TGEANT --disable-ZEBRA --disable-HBOOK --enable-shared
- Note that the above will prevent you from running coral's Event Display. As a consequence, take care to disable it in options file:
TraF Graph [0] 0 // Switch off coral's Event Display
Calibrations
- Calibrations require an access to MySQL Data Base and an access to afs (where calibration files are stored).
- Access to the DB can be obtained via an ssh tunnel:
$ ssh -f -N -L ${HOST}:3306:compassvm-userdb01.cern.ch:3306 $USER@lxplus.cern.ch
where 3306 is mySQL default port number, compassvm-userdb01.cern.ch is the server name (as of 2022/04), and...
...-f -N sends the tunnel into the background w/o executing any remote command.
This binds the local port 3306 to the remote port 3306 on the compassvm-userdb01.cern.ch server.
- One can ceck that the tunnel is working by accessing the remote DB w/ mysql(1):
$ mysql -u coral -p -h $HOST
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
[...]
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| CMAD2012 |
| beamdb2014 |
| runlb |
| test |
+--------------------+
- Nota Bene: The server name specified in options file has to be changed for $HOST w.r.t. to what's done in the files from coral's git distribution:
CDB server $HOST // Server compassvm-userdb01.cern.ch accessed via ssh tunnel/
afs
- For a CentOS system, instructions for installing afs can be found in InstallingOpenAFSonCentOS7.
- Note that the afs client needs only be installed.
- Kerberos has to be configured for defining the CERN.CH realm and cern.ch domain: in /etc/krb5.conf:
[realms]
# EXAMPLE.COM = {
# kdc = kerberos.example.com
# admin_server = kerberos.example.com
# }
CERN.CH = {
default_domain = cern.ch
kpasswd_server = afskrb5m.cern.ch
admin_server = afskrb5m.cern.ch
kdc = cerndc.cern.ch
v4_name_convert = {
host = {
rcmd = host
}
}
}
[domain_realm]
# .example.com = EXAMPLE.COM
# example.com = EXAMPLE.COM
cern.ch = CERN.CH
.cern.ch = CERN.CH
- On a CentOS system, start the client w:
$ sudo systemctl start openafs-client
$ sudo systemctl enable openafs-client
$ kinit $USER@CERN.CH
$ aklog cern.ch
Execution
- In order to start coral, remember to source the setup file.
(Note that when via a fresh cvmfs, this may take a few minutes...)
- Then
$ $PHAST/coral/coral.exe <options_file.opt>
should be able to go past:
+--------------------------------------------------------------------------+
reading calibration (Wed, 20/Apr/2022 13:10:17 (GMT))
+--------------------------------------------------------------------------+
Time since the Epoch : 1650460217.2020 s
CPU Time (user) : 9.0405 s
CPU Time (sys) : 0.3710 s
+--------------------------------------------------------------------------+
and retrieve calibrations... w/ unfortunately, as of 2022/04, a lot of warning messages...
--
YannBedfer - 2022-04-11