]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/GammaConv/macros/start_Resolution.sh
added macros for analysis
[u/mrichter/AliRoot.git] / PWG4 / GammaConv / macros / start_Resolution.sh
CommitLineData
dab7b5d6 1#!/bin/sh
2
3# - This script will handle the running of the different Macros of the Resolution of the Conversions for you.
4# - In the directory, in which this script is lying in, the different macros and header files which the macros
5# need have to be included as well.
6# - Variable #1 is the directory where your rootfiles are put in
7# - Variable #2 is the cut you want to analyse, a directory with the same name will be created in #1
8# - You need to put in one directory the different root files for MC and data, and rename them so that they
9# contain the words MC and data an in the corresponding filename. With the outputMerge, outputPdf, outputEps
10# outputSvg and outputGif you can set the different output formats of the files by setting the specific variable
11# to 1.
12# - $backup is the the directory where a copy of the macros will be stored.
13# - The script will handle all other things for you.
14
15
16outputMerge=1
17outputPdf=1
18outputGif=1
19outputEps=1
20outputSvg=1
21
22cp *.C $1
23cp *.h $1
24
25backup= /home/fredi/Dokumente/CERN/ALICE/Photon/Aktuelle\ Makros/newest\ Macros/
26cp *.C $backup
27cp *.h $backup
28
29cd $1
30
31data=`ls *.root | grep -v Output | grep -i data`
32mc=`ls *.root | grep -v Output | grep -i mc`
33
34echo $data
35echo $mc
36
37mkdir $2
38cp $data $2/
39cp $mc $2/
40cp *.C $2
41cp *.h $2
42
43cd $2
44
45echo $outputMerge
46if [ "$outputMerge" -eq 1 ]; then
47 root -l -x -q -b Photon_Resolution.C\(\"$mc\"\,\"$2\"\,\"\"\,\"Photon_Resolution\"\,\"kFALSE\"\,\"eps\"\)
48fi
49
50if [ "$outputPdf" -eq 1 ]; then
51 mkdir pdf
52 root -l -x -q -b Photon_Resolution.C\(\"$mc\"\,\"$2\"\,\"\"\,\"Photon_Resolution\"\,\"kTRUE\"\,\"pdf\"\)
53fi
54
55if [ "$outputGif" -eq 1 ]; then
56 mkdir gif
57 root -l -x -q -b Photon_Resolution.C\(\"$mc\"\,\"$2\"\,\"\"\,\"Photon_Resolution\"\,\"kTRUE\"\,\"gif\"\)
58fi
59
60if [ "$outputEps" -eq 1 ]; then
61 mkdir eps
62 root -l -x -q -b Photon_Resolution.C\(\"$mc\"\,\"$2\"\,\"\"\,\"Photon_Resolution\"\,\"kTRUE\"\,\"eps\"\)
63fi
64
65if [ "$outputSvg" -eq 1 ]; then
66 mkdir svg
67 root -l -x -q -b Photon_Resolution.C\(\"$mc\"\,\"$2\"\,\"\"\,\"Photon_Resolution\"\,\"kTRUE\"\,\"svg\"\)
68fi
69
70
71rm $mc
72rm $data
73rm *.C
74rm *.h
75
76cd ..
77rm *.C
78rm *.h
79
80
81cd ..
82echo Ready with Conversion Resolution Analysis
83