Supported platforms
Dependencies
Content
Release notes
Cern installation
Some tips on how to use Objectivity/DB
Setting up the environment
To convert HBOOK files to Objectivity/DB
Examples
Distribution kit
$LHCXXTOP/specific/$PLATF/LHCXX/2.0.0/lib
$LHCXXTOP/specific/$PLATF/LHCXX/2.0.0/include
$LHCXXTOP/specific/$PLATF/2.0.0/etcA README file gives more information on how to use them.
$LHCXXTOP/share/LHCXX/2.0.0/installand must be sourced from personal setup files such as .profile or .login
/afs/cern.ch/sw/lhcxx/share/HepUtilities/0.2.0.0/doc/html/index.html
/afs/cern.ch/sw/lhcxx
share
HTL
1.1.1.1
HepODBMS
0.3.1.3
Gemini
1.0.1.0
HepFitting
1.0.1.0
CLHEP
1.5
LHCXX
2.0.0
specific
redhat61
HTL
1.1.1.1
HepODBMS
0.3.1.3
Gemini
1.0.1.0
HepFitting
1.0.1.0
CLHEP
1.5
2.0.0
bin
lib
include
etc
The directory /afs/cern.ch/sw/lhcxx/share/LHCXX/2.0.0/install contains
two scripts which will set up the environment so that the following LHC++
environment variables are defined:
export LHCXXTOP=/afs/cern.ch/sw/lhcxx
case ${OS} in
Linux*)
export PLATF=redhat61
;;
Solaris*)
export PLATF=sun4x_56
;;
HP*)
export PLATF=hp_ux102
;;
esac
. $LHCXXTOP/share/LHCXX/2.0.0/install/sharedstart.sh
Please note that for the moment it is recommended to set the PLATF variable yourself (otherwise in sharedstart.sh it defaults to redhat61).
setenv LHCXXTOP /afs/cern.ch/sw/lhcxx
switch ($OS)
case Solaris*:
setenv PLATF sun4x_56
breaksw
case HP*:
setenv PLATF hp_ux102
breaksw
case Linux*:
setenv PLATF redhat61
breaksw
endsw
source $LHCXXTOP/share/LHCXX/2.0.0/install/sharedstart.csh
Please note that for the moment it is recommended to set the PLATF variable yourself (otherwise in sharedstart.csh it defaults to redhat61).
When you log on you must check whether the lock server is running. You
can do that with the command: oolockmon. If it is NOT
running, you may start it with the command: oolockserver -noauto.
If it is running and you want to kill it you issue the command ookillls
.
To install your own user federated database you can do the following (Bourne flavour shells):
export MY_FDID=<a valid number in the range allocated to you>
export OO_FD_BOOT=<name of your choice; preferably full path>
$HEP_ODBMS_DIR/etc/getdb $LHCXXTOP/share/HTL/1.1.1.1/schema/HISTO
$OO_FD_BOOT $MY_FDID
For csh flavour shells:
setenv MY_FDID <a valid number in the range allocated to you>
setenv OO_FD_BOOT <name of your choice; preferably full path>
$HEP_ODBMS_DIR/etc/getdb $LHCXXTOP/share/HTL/1.1.1.1/schema/HISTO
$OO_FD_BOOT $MY_FDID
To delete your own user federated database :
oodeletefd $OO_FD_BOOT
To delete a database in your federation:
oodeletedb -db <dbname>
In case of machine/network crashes you may need to run oocleanup.
You may use ootoolmgr to browse the federation and
the databases inside it.
You may use the -help option with any Objectivity oo-
command (see complete list).
Extensive documentation (pointers to Technical Overview, Quick Start
guide, C++ User Guide etc) is available from the
Objectivity/DB
page .
You can use the command:
$LHCXXTOP/specific/$PLATF/HTL/1.1.1.1/bin/Hbook2Objy <HBOOK_filename>
Hbook2Objy converts histograms contained in an HBOOK file into persistent HTL histograms that can be saved in an Objectivity/DB database. Only one- and two-dimensional histograms are converted, Ntuples are ignored. The database name is that of the original HBOOK file. The Objectivity/DB database pointed at by the environment variable OO_FD_BOOT is taken.
e.g.
export MY_FDID=2060
export OO_FD_BOOT=/afs/cern.ch/user/a/atllhcxx/public/xkalman/db/TRT
$HEP_ODBMS_DIR/etc/getdb $LHCXXTOP/share/HTL/1.1.1.1/schema/HISTO
$OO_FD_BOOT $MY_FDID
$LHCXXTOP/specific/$PLATF/HTL/1.1.1.1/bin/Hbook2Objy trtrun2128.hbook