Cond18boot was created as a mirror of the MASTER which means that all the constants that were loaded to the MASTER will also be seen in cond18boot. However, new constants for the 22-series are loaded to the MASTER and must not be used by an analysis based on a 18-series release. Therefore, con18boot has been modified (or frozen) by changing its identity. It's local-name has been changed from master-core to analysis18-core.
The local-name of a federation is the value of
FDB_LOCAL_NAME used at the time a federation was created. This
name is stored in a special data structure inside the federation. It is used
by CDB to identify it self. The view on the conditions provided
by a federation depends on its local-name. This feature has been used to freeze
cond18boot. The local-name can be changed
after a federation has been created, and therefore there are two possibilities
to freeze cond18boot, either create a new one with the correct local-name or
change the local-name of an existing fdb.
Will cond18boot be updated in the future? So far there are no plans to update cond18boot. However, it is possible to load new constants into the MASTER, but they have to be made visible by updating the view for cond18boot. Is it safe to update cond18boot? Yes, as long as the federation has been frozen as described in this document. The update will be very simple. All that has to be done is to load a new official CDB snapshot even if this snapshot contains new constants that must not be used in cond18boot.
There are two possibilities to create a cond18boot federation.FDB_LOCAL_NAME=analysis18-core
$BFROOT/Bdb/Production/global/export/global.bdbIf not then make a copy of this file from the same location at SLAC. BTW, at SLAC BFROOT translates into:
/afs/slac.stanford.edu/g/babar/
% gmake database.import % gmake database.load SNAPSHOT_DIR=<most_recent_snapshot_dir>A full snapshot is currently found at:
/nfs/objyserv01/objy/databases/snapshots/master/full/rePartitonForCond22bootbut soon will be in
/nfs/objyserv03/objy/databases/snapshots/master/full/currentThe snapshot has to be taken after (cat snapshotDate in snapshot directory) 20061218.
% CdbBrowser views | grep DEFAULT NAME="ANALYSIS18::End_Of_Run5" ID=266::1 STATUS=FROZEN,DEFAULT (if cond18boot gets updated the view will change so the name shown here might be out of date.)
Refresh a database installation from the most recent snapshot of the MASTER.
Note, that at this point your CDB will turn into COND22BOOT like CDB, unless you complete two remaining steps explained below.
The latest CDB snapshot is found currently in
/nfs/objyserv01/objy/databases/snapshots/master/rePartitonForCond22boot/but once all procedures are setup the it will be in its usual place:
/nfs/objyserv03/objy/databases/snapshot2/master/analysis/currentThe snapshot has to be taken after (cat snapshotDate in snapshot directory) 20061218.
/afs/slac.stanford.edu/g/babar/Bdb/Production/global/export/global.bdbYou can check that the right dbid's are allocated running:
% allocateDbId
.......
Allocation for "analysis18-core" is [5928, 5943].
.......
You have to see the line about analysis18-core.% BdbSetupLocalDb "analysis18-core"to test if the local name was changed run:
% manageDbId -e Using the "evs" domain. Federation Local Name is: analysis18-core Total number DbIds allocated: 16 Number of DbIds used: 0 Percentage of DbIds used: 0%and
% CdbBrowser local_origin "ANALYSIS18" (ID=266)
% CdbBrowser views | grep DEFAULT NAME="ANALYSIS18::End_Of_Run5" ID=266::1 STATUS=FROZEN,DEFAULT (if cond18boot gets updated the view will change so the name shown here might be out of date.)