]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/qa/FMD.sh
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / qa / FMD.sh
1 # QA processing for the FMD
2 #
3 # it defines two functions: runLevelQA and periodLevelQA
4
5 #available variables:
6 #  $dataType     e.g. data or sim
7 #  $year         e.g. 2011
8 #  $period       e.g. LHC13g
9 #  $runNumber    e.g. 169123
10 #  $pass         e.g. cpass1,pass1,passMC
11 fwd=${ALICE_ROOT}/PWGLF/FORWARD/analysis2
12 # fwd=$ANA_SRC
13
14 runLevelQA()
15 {
16   #full path of QAresults.root is provided
17   ${fwd}/qa/runQA.sh "$1" "$dataType" "$year" "$period" "$pass" "$runNumber"
18 }
19
20 periodLevelQA()
21 {
22   #path of the merged period trending.root is provided
23   ${fwd}/qa/periodQA.sh "$1" 
24
25   if test x$outputDir = x ; then 
26       outputDir=/afs/cern.ch/work/a/aliqafmd/www
27   fi
28   if test ! -d $outputDir ; then 
29       echo "No output directory specified, index not recreated"
30       exit 0
31   fi
32   (cd ${outputDir} && \
33       pwd && \
34       # if test -d FMD ; then cd FMD ; fi ; \
35       ${fwd}/makeIndex.sh \
36           -t "QA for the FMD" \
37           -d "For more see <a href='://cern.ch/go/6Bwz'>TWiki pages</a>." \
38           -m 5 \
39           -o index.html \
40           -l \
41           -f ; \
42       cp ${fwd}/qa/style.css . ; \
43       cp ${fwd}/qa/script.js . ; \
44       cp ${fwd}/qa/fmd_favicon.png . ; \
45       cp ${fwd}/qa/fmd_logo.png . ; \
46       )
47 }
48 #
49 # EOF
50 #
51