]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/QA/detectorQAscripts/TRK.sh
Merge branch 'feature-movesplit'
[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 #  #ocdbStorage  e.g. "raw://", "local://./OCDB"
8
9 runLevelHighPtTreeQA()
10 {
11   highPtTreeFile=${1}
12     
13   #makePlots needs to compile it locally for now
14   cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.h .
15   cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.cxx .
16
17   aliroot -l -b -q "$ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/makePlots.C(\"$highPtTreeFile\")"
18 }
19
20 periodLevelQA()
21 {
22   trendingFile=$1
23
24   if ls */genericHistos_Bneg.root&>/dev/null; then
25     hadd mergedGenericHistos_Bneg.root */genericHistos_Bneg.root
26     mkdir outputBneg
27     oldDir=${PWD}
28     cd outputBneg
29     mv ${oldDir}/mergedGenericHistos_Bneg.root .
30
31     #makePlots needs to compile it locally for now
32     cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.h .
33     cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.cxx .
34
35     aliroot -l -b -q "$ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/makePeriodPlots.C(\"mergedGenericHistos_Bneg.root\",\"${period}/${pass}\")"
36     cd ${oldDir}
37   fi
38   if ls */genericHistos_Bpos.root&>/dev/null; then
39     hadd mergedGenericHistos_Bpos.root */genericHistos_Bpos.root
40     mkdir outputBpos
41     oldDir=${PWD}
42     cd outputBpos
43
44     #makePlots needs to compile it locally for now
45     cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.h .
46     cp $ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/AliHighPtTreeAnalysis.cxx .
47
48     mv ${oldDir}/mergedGenericHistos_Bpos.root .
49     aliroot -l -b -q "$ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/makePeriodPlots.C(\"mergedGenericHistos_Bpos.root\",\"${period}/${pass}\")"
50     cd ${oldDir}
51   fi
52
53   aliroot -l -b -q "$ALICE_ROOT/PWGPP/QA/Tracking/ExpertQA/makeTrendingPlots.C(\"${trendingFile}\")"
54 }