coral from your local computer


  • 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 is useful at various steps of the installation and execution.
  • See CernVM-FS web page for the installation.
  • /etc/cvmfs/default.local could be:,,,/


    if ( $DEBUG == 1 ) then
	set lcg = /cvmfs/
	set lcg = /cvmfs/
    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
	printf '\n** .login: No "geant4.csh" script found in "%s"\n' $lcg/bin
    printf '\n'
    cd $wdSave
    setenv CERNLIB /cvmfs/
  • We also need a TGEANT installation.


  • 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 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} $
      where 3306 is mySQL default port number, 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 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 accessed via ssh tunnel/


  • 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 domain: in /etc/krb5.conf:
   # EXAMPLE.COM = {
   #  kdc =
   #  admin_server =
   # }

   CERN.CH = {
   default_domain =
   kpasswd_server =
   admin_server =
   kdc =

   v4_name_convert = {
      host = {
          rcmd = host

  • On a CentOS system, start the client w:
   $ sudo systemctl start openafs-client
   $ sudo systemctl enable openafs-client
      and get a token w/:
   $ kinit $USER@CERN.CH
   $ aklog


  • 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

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2022-04-20 - YannBedfer
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Compass/Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback