]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/scripts/README
Adding dump and analysis of syswatch logs
[u/mrichter/AliRoot.git] / TPC / scripts / README
CommitLineData
594d338f 1
2f45251d 2ABOUT:
3Authors: Jens Wiechula
4 Marian Ivanov (marian.ivanov@cern.ch)
5
6Scripts for viusalization and analysis of the TPC OCDB entries and visualization of trends.
7For visualization and analisys purposes root trees and queries on top of trees are used.
594d338f 8
2f45251d 9Algorithm:
101. Creation of the run lists. (Expert operation)
112. Making a calibration trees. (Expert operation)
123. OCDB visualization analysis. (Non /software/ expert mode)
594d338f 13
2f45251d 14Requiroments:
151. AliRoot installed.
162. Alien installed + valid alien certificate
173. In some cases (only to speed up tree creation process) the batch farm can be used.
594d338f 18
2f45251d 19----------
20Quickstart
21-----------
594d338f 22
2f45251d 23Without thinking, you can do the following to create a tree with calibration entries.
24The default settings should work, however you might want to change them for 'better'
25performance.
594d338f 26
2f45251d 27Do the following:
281. Setup environment
29 1.a) gui dependend variables
30 export SCRIPTDIR=$ALICE_ROOT/TPC/scripts
31 export PATH=$SCRIPTDIR:$PATH
32 1.b) Modify your guiEnv.sh script in $SCRIPTDIR
33 1.c) Run: source guiEnv.sh debug
34 1.d) Check the output of script. All checks has to be OK.
35
362. Run tree creation (Jens Wiechula scripts) Options:
37 2.a) Run on a list of run numbers with name 'list.txt', one run number per line
38 makeCalibTree -l list.txt
39 2.b) Run on a range of run numbers:
40 makeCalibTree -r 75000-80000
41 2.c) Run automatic tree creation for all runs in the
42 data taking period which was set up (see below)
43 !!!WARNING!!! this will take quite some time
44 makeCalibTree -a
45
463. Run tree creation for extended statistic. This part can be run only if batchcommand specified. (Marian Ivanov part of scripts)
47 WARNING this is just example usage of expert mode:
48
49 ifirst=70000;
50 ilast=90000;
51 step=500;
52 runList=`pwd`/run.list
53 for (( startRun=$ifirst; startRun<$ilast; startRun=startRun+$step )) ; do
54 let endRun=$startRun+$step
55 echo $startRun $endRun
56 echo $BATCHCOMMAND -oo $GUI_OUTDIR/logs/out$startRun.log -eo $GUI_OUTDIR/logs/err$startRun.out makeCalibTree.sh $runList $startRun $endRun;
57 $BATCHCOMMAND -oo $GUI_OUTDIR/logs/out$startRun.log -eo $GUI_OUTDIR/logs/err$startRun.out makeCalibTree.sh $runList $startRun $endRun;
58 done;
59
604. Start the GUI browser. This should work always (even on your laptop).
594d338f 61guiTime
62
63
2f45251d 64
594d338f 65-------------------
66General information
67-------------------
68The macros and shell scripts used are stored in $ALICE_ROOT/TPC/CalibMacros/guiTime
69If you would like to modify some setting (see below), but do not have write access to this
70directory, you can copy the complete directory somewhere else and setup the environment
71variables accordingly:
72
73export SCRIPTDIR=path_to_my_directory
74export PATH=$SCRIPTDIR:$PATH
75
76- setup scripts
77All user relevant setup is done the shell script 'guiEnv' and the root macro 'ConfigOCDB.C'
78All other files don't need to be modified by the user.
79
80- scripts for the tree creation:
81makeCalibTree: Steering script to launch the tree creation
82makeCalibTreeList: script running the actual root process to create the tree
83
84- scripts to start the gui:
85gui 'filename': Start the CalibViewerGUI using the tree in file 'filename'. Invokes the script
86 startGUI.C
87guiTime ['filename']: Start the CalibViewerGUItime. Optionally a filename containing the calibration
88 calibration tree can be specified. Otherwise the trees from the directory setup
89 in guiEnv will be used (see below). Invokes the script startGUItime.C
90
91-oter scripts:
92loadlibsREC.C: Root macro to load only libraries needed to start the gui and tree creation.
93
94
95----------------
96Customised setup
97----------------
98
99- Defining the OCDB directories (ConfigOCDB.C):
100Before starting the tree creation or gui the macro 'ConfigOCDB.C' is exectued. This macro should contain
101all the setup needed to point to the proper OCDB directories. If alien is used, alien needs also to be
102setup in the macro. Open the macro for examples.
103
104- General output information (guiEnv):
105In the 'guiEnv' script environment variables defining default output directories etc. See comments in the
106file for explanations.
107
2f45251d 108
109Troubleshouting:
110
1111. Check your environment.
112 source guiEnv.sh debug
113 1.a) If not execuitng check your $PATH
114 1.b) Check the output of script. All checks should be indicated OK.
1152. Modify environment if neccessary
53b43553 1163. Missing ConfigOCDB.C macro. This macro is not provided by default.
117 It is setup specific. You should contact experts to get it.
1184. Wrong ConfigOCDB.C macro, tests:
119 4.a) ls $SCRIPTDIR/ConfigOCDB.C - file should exist
120 4.b) run ConfigOCDB.C macro in aliroot session. Check the output.
2f45251d 121
53b43553 122In case of further problems, please inform authors.