How To - Import                                                                        Kenji Hamano

Last modified : Jun27, 2005                                              Back to How To      Back to Home


To import skims you need a "babarpro" account on mercury
      > ssh -l babarpro mercury.uvic.ca
      > source .cshrc_sp8
      > cd releases/sp1603-physics-1
      > srtpath [return] [return]
You need a token from SLAC
      > klog -principal [your user ID] -cell slac.stanford.edu
To check token
      > tokens

Use "BbkImport" script
      > BbkImport --dbsite=slac-old --dataset=SP-3522 --noremote --noupdate-sql --ftp=bbftp --nstreams 7 bbrdist@bbr-xfer01.slac.stanford.edu /home1x/OtherMounts/hep10/babar

All you need to do is to specify
     the name of dataset
         --dataset=SP-3522
     and the location
         /home1x/OtherMounts/hep10/babar


After importing skims

1. You might have to change the group name so that other users can access the data.
   For example, supposing your skims are under /home1x/OtherMounts/hep10/babar/store/awg/ and the group is babarpro,
   you need to change the group from babarpro to hep to allow other user's access.
      > cd /home1x/OtherMounts/hep10/babar/store/
      > chown -R babarpro:hep awg

2. You might have to change access settings. To change settings modify this file:
      $BFROOT/kanga/config/KanAccess.cfg


To check data collections
      > KanCollUtil -L /store/SPskims/R12/16.1.1c/BToDlnu/001237/200103/BToDlnu_001237_6115

      > Kanga
      root [0] KanEventSource* mc = KanEventSource::microMC();
      root [1] mc->Add("/store/SPskims/R12/16.1.1c/BToDlnu/001237/200103/BToDlnu_001237_6115");
      root [2] mc->getCnd()->Print();
      root [3] mc->listComponents();
      root [4] mc->nEvt();