Developing DIRAC on AFS

For some basic traning of LHCb software, see LHCbSoftwareTrainingBasics.

What you need to know is that:

  • LXPLUS is the CERN Public Login Linux system. This environment ensures that you will have direct access to the AFS file system, which holds the LHCb software Releases, including DIRAC. Additionally, all the tools you'll need to develop your software are installed and set up on LXPLUS.
  • LHCb software organization is based on CMT.

Get DIRAC

Quick'n dirty guide

Issue the following commands. These are valid with tcsh... do your adjustements for bash.

setenvProject LHCbDirac vXrY 
source $LHCb_release_area/LBSCRIPTS/prod/InstallArea/scripts/LbLogin.csh (still needed?)
SetupProject LbScripts (still needed?)
getpack DIRAC/DataMgmt or getpack LHCbDIRAC/BookkeepingSystem 'head'    --- repeat this command for all the packets you want, otherwise do a getpack -r DiracSys 'head' to get them all
make
SetupProject LHCbDirac    --- yes, once again. The suggestion is to put this line in your login script

Step-by-step explanation

setenvProject

This command is an alias for

SetupProject LHCbDirac --build-env

SetupProject Dirac

SetupProject is a tool to prepare a customized environment in which run an LHCb application. If given without any options, SetupProject will choose for you the most up-to-date stable release.

The next two commands are needed to prepare an environment in which to run scripts you may need.

getpack

getpack
and the SVN repository of DIRAC have been adapted to allow checking out a DIRAC package in a user directory (e.g. ~/cmtuser). This command basically does a
svn co
and
cmt config

With getpack you can checkout single DIRAC packages, or the whole DIRAC. Using

getpack -i
allows to select the package in a list of available packages. One can also check out the whole of DIRAC with the following command:
getpack -r DiracSys

Modify DIRAC

We suggest you to use eclipse.

Since the LHCb code repository is based on CVS (Code Versioning System), follow this documentation.

-- FedericoStagni - 24 Apr 2009

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r4 - 2010-03-12 - FedericoStagni
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

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