]> git.uio.no Git - u/mrichter/AliRoot.git/commit - macros/MakeCDBSnapshot.C
Implementing the possibility of loading the CDB as a snapshot in two ways:
authorrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Oct 2011 21:40:36 +0000 (21:40 +0000)
committerrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Oct 2011 21:40:36 +0000 (21:40 +0000)
commit647d2bb8a166cdee4736f181c6d2ebe091919a87
treea1eaf3177f967b6b1b374337b764c52a75fc9d3c
parent67a82ef2286e3a862da2d2fe1bb12ab24ea74666
Implementing the possibility of loading the CDB as a snapshot in two ways:
1) you suppose you have it locally, in ./OCDB. That will be the case if you untar a CDB tarball.
2) you suppose you can find in some place in alien a root file containing both a map of the
   CDB entries and a list of the corresponding Ids (for the UserInfo)

1) is triggered by using:
cdb->SetDefaultStorage("snapshot://*) where one would put instead of "*" the original alien
location from where the tarball has been built.

2) is triggered by the call:
reco->SetFromCDBSnapshot(filename)
where filename is the name of the file containing the entries map and the ids
list.

1) is implemented in AliCDBLocal and AliCDBLocalParam changes
2) is implemented in AliReconstruction and AliCDBManager changes. For 2) also
the macro macros/MakeCDBSnapshot.C is added, as an example of how to produce
the snapshot file.

Additionally two coding conventions fixed in AliCDBManager (adding const to two parameters).
STEER/CDB/AliCDBLocal.cxx
STEER/CDB/AliCDBLocal.h
STEER/CDB/AliCDBManager.cxx
STEER/CDB/AliCDBManager.h
STEER/STEER/AliReconstruction.cxx
STEER/STEER/AliReconstruction.h
macros/MakeCDBSnapshot.C [new file with mode: 0644]