5 # This script gests as input a directory where the AnalysisResults root file is stored
6 # , it also needs the desired output directory where the produced root files are put.
7 # If nothing is given it will use ./ for the input directory and ./Output for the output
9 #Input 1: Root file to analyze (not including the .root) Default: AnalyisResults
10 #Input 2: Input directory Default:$PWD
11 #Input 3: Output directory Default: $PWD/Output (directory will be created if it does not exist)
16 RootFile=AnalysisResults
28 echo Input directory is $InputDirectory
32 OutputDirectory=$PWD/Output/
37 if [ ! -d $OutputDirectory ]; then
38 mkdir $OutputDirectory
40 echo Output directory is $OutputDirectory
42 DatFilenameBase=RB-data-AnalysisResults;
45 if [ -f $OutputDirectory/$DatFilenameBase.dat ]; then
46 echo Warning: The file RB-data-AnalysisResults.dat exists, please remove before continuing.
47 echo -e "\t Otherwise the file will accumulate more entries than it is supposed to."
52 root -b -q $ALICE_ROOT/PWGGA/GammaConv/macros/MakeCutLog.C\(\"$RootFile\"\,\"$InputDirectory\"\,\"$OutputDirectory\"\)
54 # Read the different cuts form the Cut selection log file
55 exec<"$OutputDirectory/CutSelection.log"
57 while read cutSelection
59 echo CutSelection is $cutSelection;
60 root -b -q $ALICE_ROOT/PWGGA/GammaConv/macros/Extract_IntegratedPi0Yield.C\(\"$cutSelection\"\,\"$RootFile\"\,\"$InputDirectory\"\,\"$OutputDirectory\"\"\);
62 root -b -q $ALICE_ROOT/PWGGA/GammaConv/macros/Extract_Pi0_Characteristics.C\(\"$cutSelection\"\,\"$RootFile\"\,\"$InputDirectory\"\,\"$OutputDirectory\"\);
66 root -b -q $ALICE_ROOT/PWGGA/GammaConv/macros/Plot_IntegratedPi0Yield.C\(\"$DatFilenameBase\"\,\"$OutputDirectory\"\,\"$Suffix\"\)
68 root -b -q $ALICE_ROOT/PWGGA/GammaConv/macros/Plot_Pi0_Characteristics.C