]> git.uio.no Git - u/mrichter/AliRoot.git/commit - STEER/CDB/AliCDBPath.cxx
Check CVMFS_OCDB and deal with storages accordingly
authorrgrosso <Raffaele.Grosso@cern.ch>
Tue, 4 Feb 2014 10:00:31 +0000 (11:00 +0100)
committerrgrosso <Raffaele.Grosso@cern.ch>
Wed, 19 Feb 2014 13:24:11 +0000 (14:24 +0100)
commit5078a13f2b37e58dfd1ac048b532c1c82f0c7078
treed5a78dff5ff29191bba324544d46dee00f659a43
parent9613497c2034abecfb86ed1fb4814b344a19dc0a
Check CVMFS_OCDB and deal with storages accordingly

In SetDefaultStorage check environment variable triggering cvmfs case:
CVMFS_OCDB. It is supposed to be set to the cvmfs path, containing
OCDB tags (list of all files seen in each OCDB at the moment when
the AliRoot tag was created) and two scripts, to get the year from the
run number and to extract the files valid for the given run.

The method ValidateCvmfsCase validates the $OCDB_PATH path
    // and modify Uri if it is "raw://"
The "alien://" uri passed to GetStorage is converted into a
"local:///cvmfs" uri inside CreateParameter called by GetStorage, via
AlienToCvmfsUri.

E.g.: OCDB_PATH="/cvmfs/alice.cern.ch/Packages/v5-04-Rev-12"
Example of expected subtree inside OCDB_PATH:
     Ideal.list.gz
  MC/Residual.list.gz
     Full.list.gz

     2009.list.gz
data/.......
     2013.list.gz

 bin/getUriFromYear.sh
     getOCDBFilesPerRun.sh

In addition:
Set indent to standard two spaces
Fixed indentation of comments foll. method header

Get only highest sub+version in L::QueryValidFiles

Let AliCDBLocal::GetId look in the list of valid fileIds and let
AliCDBLocal::GetEntry get from the list of valid FileIds

SetRun sets AliEn URI via SetDefaultStorageFromRun also in
CVMFS case, via getUriFromYear.sh script
32 files changed:
STEER/CDB/AliBaseCalibViewer.cxx
STEER/CDB/AliBaseCalibViewer.h
STEER/CDB/AliBaseCalibViewerGUI.cxx
STEER/CDB/AliCDBDump.cxx
STEER/CDB/AliCDBDump.h
STEER/CDB/AliCDBEntry.cxx
STEER/CDB/AliCDBEntry.h
STEER/CDB/AliCDBGrid.cxx
STEER/CDB/AliCDBGrid.h
STEER/CDB/AliCDBHandler.cxx
STEER/CDB/AliCDBId.cxx
STEER/CDB/AliCDBId.h
STEER/CDB/AliCDBLocal.cxx
STEER/CDB/AliCDBLocal.h
STEER/CDB/AliCDBManager.cxx
STEER/CDB/AliCDBManager.h
STEER/CDB/AliCDBMetaData.cxx
STEER/CDB/AliCDBMetaData.h
STEER/CDB/AliCDBPath.cxx
STEER/CDB/AliCDBPath.h
STEER/CDB/AliCDBRunRange.cxx
STEER/CDB/AliCDBRunRange.h
STEER/CDB/AliCDBStorage.cxx
STEER/CDB/AliCDBStorage.h
STEER/CDB/AliDCSGenDB.cxx
STEER/CDB/AliPreprocessor.cxx
STEER/CDB/AliPreprocessor.h
STEER/CDB/AliShuttleInterface.cxx
STEER/CDB/AliShuttleInterface.h
STEER/CDB/AliSplineFit.cxx
STEER/STEER/AliGeomManager.cxx
STEER/STEER/AliGeomManager.h