processing of event_stat_outer.root
[u/mrichter/AliRoot.git] / PWGPP / QA / detectorQAscripts / EXAMPLE.sh.template
CommitLineData
f7707400 1# this is a simple template
4beeae53 2# it defines few functions: one for each input file type (per run):
3# (QAresults.root, QAresults_outer.root, event_stat.root, Filter_trees.root)
4# and a function to process the output of those on a per-period level,
5# ideally for each run a trending.root file is created - it is then automatically merged
6# and offered as input to the per-period trending function, see below.
f7707400 7#
e6b479eb 8# available variables (can be used in all functions):
9# $qaFile e.g. /path/QA_merge_archive.zip#QAresults.root
10# $qaFileOuter e.g. /path/QA_merge_archive.zip#QAresults_outer.root
11# $highPtTree e.g. /path/Filter_trees.root
12# $eventStatFile e.g. /path/event_stat.root
13# $eventStatFileOuter e.g. /path/event_stat_outer.root
4beeae53 14#
e6b479eb 15# $dataType e.g. data or sim
16# $year e.g. 2011
17# $period e.g. LHC13g
18# $runNumber e.g. 169123
19# $pass e.g. cpass1,pass1,passMC
20# $ocdbStorage e.g. "raw://", "local://./OCDB"
f7707400 21
22runLevelQA()
23{
e6b479eb 24 #full path of QAresults.root is provided:
f7707400 25 qaFile=$1
26
27 #aliroot....
28
29 #should produce a file trending.root
161409c5 30 #if not, a default one will be provided
f7707400 31}
32
33periodLevelQA()
34{
e6b479eb 35 #per-run trending is merged by the framework,
36 #path of the merged trending.root is provided:
f7707400 37 trendingFile=$1
161409c5 38
39 #merged trending file in fact present in current dir
f7707400 40 #runs in the production dir: ...../LHCXXx/passX/
41 #the running dir contains all the run sub directories
42 #named like 000123123 with the outputs of runLevelQA
43
44 #aliroot...
45}
645f513c 46
47#########################################################
48#########EXPERTS ONLY####################################
49runLevelHighPtTreeQA()
50{
e6b479eb 51 #input is the high pt tree file (if available)
645f513c 52 highPtTree=$1
53}
dd03b684 54
55runLevelEventStatQA()
56{
4beeae53 57 #input is the event_stat file (if available)
dd03b684 58 eventStatFile=$1
59}
4beeae53 60
61runLevelQAouter()
62{
63 #input is the QAresults_outer.root (if available)
64 qaFileOuter=$1
65}
e6b479eb 66
67runLevelEventStatQAouter()
68{
69 #input is the event_stat_outer.root file (if available)
70 eventStatFileOuter=$1
71}