BaBar: Rebuilding the BaBar Framework to enable file access over DCAP and RFIO

From GridPP Wiki
Jump to: navigation, search


You will need to have imported BaBar Root version 4.04-02-xrd to your site before you can do this. This is already available at RAL.

Check out your test release:

newrel -t 18.6.4 new-18.6.4
cd new-18.6.4
srtpath ; addpkg workdir ; gmake installdirs ; gmake workdir.setup

Add packages SoftRelTools and KanUtils along with whatever packages you require (SkimMini in this case)

addpkg SoftRelTools
addpkg KanUtils cajb20060814
addpkg SkimMini

Edit arch_spec_ROOT.mk in SoftRelTools to change the version of root to 4.04-02-xrd

vi SoftRelTools/arch_spec_ROOT.mk
...
ROOTVER := 4.04-02-xrd
...

Pick up the changes:

gmake SoftRelTools.bin
srtpath

Rebuild the shared libraries and library symlinks:

gmake ldlink

Build the KanUtils binaries:

gmake KanUtils.bin

Followed by building your own code:

gmake SkimMini.bin

You should then be able to use lines of the form:

read /store/* rfio dpm_host.your.site/path/to/babar/

or

read /store/* dcap dcache_host.your.site:22125/pnfs/your.site/path/babar/

to read files directly from the SE.

Note you will have to preserve the BaBar /store namespace underneath the BaBar storage area on the SE. The simplest way to do this is to use the -P option on the lcg-* tools when you upload the file. For example:

lcg-rep -v --vo babar -n 8 -d heplnx204.pp.rl.ac.uk -t 600 \
-P store/SP/BkgTriggers/BkgTriggers_200604_OnPeak_V01.01.root \
lfn:/grid/babar/store/SP/BkgTriggers/BkgTriggers_200604_OnPeak_V01.01.root

Would replicate the file with lfn /grid/babar/store/SP/BkgTriggers/BkgTriggers_200604_OnPeak_V01.01.root to srm://heplnx204.pp.rl.ac.uk/pnfs/pp.rl.ac.uk/data/babar/store/SP/BkgTriggers/BkgTriggers_200604_OnPeak_V01.01.root without you having to know that the BaBar strage area on that Storage Element is under /pnfs/pp.rl.ac.uk/data/babar.


Chris brew 10:14, 8 Jun 2006 (BST)