]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/scripts/README
Minor changes:
[u/mrichter/AliRoot.git] / TPC / scripts / README
CommitLineData
3b9b13ee 1cdABOUT:
2f45251d 2Authors: Jens Wiechula
3 Marian Ivanov (marian.ivanov@cern.ch)
4
5Scripts for viusalization and analysis of the TPC OCDB entries and visualization of trends.
6For visualization and analisys purposes root trees and queries on top of trees are used.
594d338f 7
2f45251d 8Algorithm:
91. Creation of the run lists. (Expert operation)
102. Making a calibration trees. (Expert operation)
113. OCDB visualization analysis. (Non /software/ expert mode)
594d338f 12
2f45251d 13Requiroments:
141. AliRoot installed.
152. Alien installed + valid alien certificate
163. In some cases (only to speed up tree creation process) the batch farm can be used.
594d338f 17
2f45251d 18----------
19Quickstart
20-----------
594d338f 21
2f45251d 22Without thinking, you can do the following to create a tree with calibration entries.
23The default settings should work, however you might want to change them for 'better'
24performance.
594d338f 25
2f45251d 26Do the following:
271. Setup environment
28 1.a) gui dependend variables
29 export SCRIPTDIR=$ALICE_ROOT/TPC/scripts
30 export PATH=$SCRIPTDIR:$PATH
3b9b13ee 31 source $ALICE_ROOT/TPC/scripts/guiEnv.sh
2f45251d 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.
3b9b13ee 35
2f45251d 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:
3b9b13ee 48 bgroup=/bgui
49 ifirst=79000
50 ilast=102000
51 step=250
2f45251d 52 runList=`pwd`/run.list
3b9b13ee 53 bgadd $bgroup
2f45251d 54 for (( startRun=$ifirst; startRun<$ilast; startRun=startRun+$step )) ; do
55 let endRun=$startRun+$step
56 echo $startRun $endRun
3b9b13ee 57 echo $BATCHCOMMAND -g $bgroup -oo $GUI_OUTDIR/logs/out$startRun.log -eo $GUI_OUTDIR/logs/err$startRun.log makeCalibTree.sh $runList $startRun $endRun;
58 $BATCHCOMMAND -g $bgroup -oo $GUI_OUTDIR/logs/out$startRun.log -eo $GUI_OUTDIR/logs/err$startRun.log makeCalibTree.sh $runList $startRun $endRun;
2f45251d 59 done;
60
614. Start the GUI browser. This should work always (even on your laptop).
594d338f 62guiTime
63
64
2f45251d 65
594d338f 66-------------------
67General information
68-------------------
69The macros and shell scripts used are stored in $ALICE_ROOT/TPC/CalibMacros/guiTime
70If you would like to modify some setting (see below), but do not have write access to this
71directory, you can copy the complete directory somewhere else and setup the environment
72variables accordingly:
73
74export SCRIPTDIR=path_to_my_directory
75export PATH=$SCRIPTDIR:$PATH
76
77- setup scripts
78All user relevant setup is done the shell script 'guiEnv' and the root macro 'ConfigOCDB.C'
79All other files don't need to be modified by the user.
80
81- scripts for the tree creation:
82makeCalibTree: Steering script to launch the tree creation
83makeCalibTreeList: script running the actual root process to create the tree
84
85- scripts to start the gui:
86gui 'filename': Start the CalibViewerGUI using the tree in file 'filename'. Invokes the script
87 startGUI.C
88guiTime ['filename']: Start the CalibViewerGUItime. Optionally a filename containing the calibration
89 calibration tree can be specified. Otherwise the trees from the directory setup
90 in guiEnv will be used (see below). Invokes the script startGUItime.C
91
92-oter scripts:
93loadlibsREC.C: Root macro to load only libraries needed to start the gui and tree creation.
94
95
96----------------
97Customised setup
98----------------
99
100- Defining the OCDB directories (ConfigOCDB.C):
101Before starting the tree creation or gui the macro 'ConfigOCDB.C' is exectued. This macro should contain
102all the setup needed to point to the proper OCDB directories. If alien is used, alien needs also to be
103setup in the macro. Open the macro for examples.
104
105- General output information (guiEnv):
106In the 'guiEnv' script environment variables defining default output directories etc. See comments in the
107file for explanations.
108
2f45251d 109
110Troubleshouting:
111
1121. Check your environment.
113 source guiEnv.sh debug
114 1.a) If not execuitng check your $PATH
115 1.b) Check the output of script. All checks should be indicated OK.
1162. Modify environment if neccessary
53b43553 1173. Missing ConfigOCDB.C macro. This macro is not provided by default.
118 It is setup specific. You should contact experts to get it.
1194. Wrong ConfigOCDB.C macro, tests:
120 4.a) ls $SCRIPTDIR/ConfigOCDB.C - file should exist
121 4.b) run ConfigOCDB.C macro in aliroot session. Check the output.
2f45251d 122
53b43553 123In case of further problems, please inform authors.