]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/QA/detectorQAscripts/TRK.sh
- add the possibility to process highPt trees as QA input for expert tracking QA
[u/mrichter/AliRoot.git] / PWGPP / QA / detectorQAscripts / TRK.sh
1 #available variables:
2 #  $dataType     e.g. data or sim
3 #  $year         e.g. 2011
4 #  $period       e.g. LHC13g
5 #  $runNumer     e.g. 169123
6 #  $pass         e.g. cpass1,pass1,passMC
7
8 runLevelHighPtTreeQA()
9 {
10   highPtTreeFile=${1}
11     
12   #makePlots needs to compile it locally for now
13   cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.h .
14   cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.cxx .
15
16   aliroot -l -b -q "$ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/makePlots.C(\"$highPtTreeFile\")"
17 }
18
19 periodLevelQA()
20 {
21   trendingFile=$1
22
23   if ls */genericHistos_Bneg.root&>/dev/null; then
24     hadd mergedGenericHistos_Bneg.root */genericHistos_Bneg.root
25     mkdir outputBneg
26     oldDir=${PWD}
27     cd outputBneg
28     mv ${oldDir}/mergedGenericHistos_Bneg.root .
29
30     #makePlots needs to compile it locally for now
31     cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.h .
32     cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.cxx .
33
34     aliroot -l -b -q "$ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/makePeriodPlots.C(\"mergedGenericHistos_Bneg.root\",\"${period}/${pass}\")"
35     cd ${oldDir}
36   fi
37   if ls */genericHistos_Bpos.root&>/dev/null; then
38     hadd mergedGenericHistos_Bpos.root */genericHistos_Bpos.root
39     mkdir outputBpos
40     oldDir=${PWD}
41     cd outputBpos
42
43     #makePlots needs to compile it locally for now
44     cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.h .
45     cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.cxx .
46
47     mv ${oldDir}/mergedGenericHistos_Bpos.root .
48     aliroot -l -b -q "$ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/makePeriodPlots.C(\"mergedGenericHistos_Bpos.root\",\"${period}/${pass}\")"
49     cd ${oldDir}
50   fi
51
52   aliroot -l -b -q "$ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/makeTrendingPlots.C(\"${trendingFile}\")"
53 }