3 Marian Ivanov (marian.ivanov@cern.ch)
5 Scripts for viusalization and analysis of the TPC OCDB entries and visualization of trends.
6 For visualization and analisys purposes root trees and queries on top of trees are used.
9 1. Creation of the run lists. (Expert operation)
10 2. Making a calibration trees. (Expert operation)
11 3. OCDB visualization analysis. (Non /software/ expert mode)
15 2. Alien installed + valid alien certificate
16 3. In some cases (only to speed up tree creation process) the batch farm can be used.
17 4. Alien configuration/jobs to be included soon (Work in progress)
23 Without thinking, you can do the following to create a tree with calibration entries.
24 The default settings should work, however you might want to change them for 'better'
29 1.a) gui dependend variables
30 export SCRIPTDIR=$ALICE_ROOT/TPC/scripts/OCDBscan
31 or your local scriptdir if you want to modify it
33 export SCRIPTDIR=/lustre/alice/miranov/OCDBscan/scripts
35 export PATH=$SCRIPTDIR:$PATH
36 source $SCRIPTDIR/guiEnv.sh
38 1.b) Modify your guiEnv.sh script in $SCRIPTDIR
39 1.c) Run: source guiEnv.sh debug
40 1.d) Check the output of script. All checks has to be OK.
42 2. Run tree creation (Jens Wiechula scripts) Options:
43 2.a) Run on a list of run numbers with name 'list.txt', one run number per line
44 makeCalibTree -l list.txt
45 2.b) Run on a range of run numbers:
46 makeCalibTree -r 75000-80000
47 2.c) Run automatic tree creation for all runs in the
48 data taking period which was set up (see below)
49 !!!WARNING!!! this will take quite some time
52 3. OBSOLETE PART - Run tree creation for extended statistic. This part can be run only if batchcommand specified. (Marian Ivanov part of scripts)
53 WARNING this is just example usage of expert mode:
58 runList=`pwd`/run.list
60 for (( startRun=$ifirst; startRun<$ilast; startRun=startRun+$step )) ; do
61 let endRun=$startRun+$step
62 echo $startRun $endRun
63 echo $BATCHCOMMAND -g $bgroup -oo $GUI_OUTDIR/logs/out$startRun.log -eo $GUI_OUTDIR/logs/err$startRun.log makeCalibTree.sh $runList $startRun $endRun;
64 $BATCHCOMMAND -g $bgroup -oo $GUI_OUTDIR/logs/out$startRun.log -eo $GUI_OUTDIR/logs/err$startRun.log makeCalibTree.sh $runList $startRun $endRun;
67 4. New approach - run the jobs for each run separatelly - more robust - but more jobs
70 for arun in `cat run.list`; do
71 echo submitting jobs for run $arun
72 echo $BATCHCOMMAND -g $bgroup -oo $GUI_OUTDIR/logs/out$arun.log -eo $GUI_OUTDIR/logs/err$arun.log makeCalibTreeRun.sh $arun alien://///alice/cern.ch/user/m/miranov/OCDBscan/
73 $BATCHCOMMAND -g $bgroup -oo $GUI_OUTDIR/logs/out$arun.log -eo $GUI_OUTDIR/logs/err$arun.log $SCRIPTDIR/makeCalibTreeRun.sh $arun alien://///alice/cern.ch/user/m/miranov/OCDBscan/
80 4. Start the GUI browser. This should work always (even on your laptop).
88 - Defining the OCDB directories (ConfigOCDB.C):
89 Before starting the tree creation or gui the macro 'ConfigOCDB.C' is exectued. This macro should contain
90 all the setup needed to point to the proper OCDB directories. If alien is used, alien needs also to be
91 setup in the macro. Open the macro for examples.
93 - General output information (guiEnv):
94 In the 'guiEnv' script environment variables defining default output directories etc. See comments in the
95 file for explanations.
100 1. Check your environment.
101 source guiEnv.sh debug
102 1.a) If not execuitng check your $PATH
103 1.b) Check the output of script. All checks should be indicated OK.
104 2. Modify environment if neccessary
105 3. Missing ConfigOCDB.C macro. This macro is not provided by default.
106 It is setup specific. You should contact experts to get it.
107 4. Wrong ConfigOCDB.C macro, tests:
108 4.a) ls $SCRIPTDIR/ConfigOCDB.C - file should exist
109 4.b) run ConfigOCDB.C macro in aliroot session. Check the output.
111 In case of further problems, please inform authors.