]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/dNdEta/runSystematicStudies.sh
Changed selector to fit with the new AlidNdEtaCorrection scheme.
[u/mrichter/AliRoot.git] / PWG0 / dNdEta / runSystematicStudies.sh
1 # /* $Id$ */
2
3 # This script runs the dN/dEta analysis with different correction maps to gather systematics
4
5 function run
6 {
7   root -l -q testAnalysis2.C\(\"analysisInputMerged.txt\",10000,0,kFALSE,kFALSE,kTRUE,\"$1\",\"$2\"\)
8   mv analysis_esd.root $3
9
10   if [ "$?" -ne "0" ]
11   then
12     echo "$3 failed"
13     exit
14   fi
15
16   sleep 5
17 }
18
19 function particleComposition
20 {
21   ## this runs particle composition study
22   # It runs with the "normal map", and with 4 other different cases where particle species are enhanced
23   # or reduced.
24   # The normal map is expected in correction_map.root, created by AlidNdEtaCorrectionSelector
25   # The others in new_compositions.root in the folders (K|p)(Boosted|Reduced), created
26   #   by AlidNdEtaSystematicsSelector and Composition() out of drawSystematics.C
27
28   run correction_map.root dndeta_correction systematics_dndeta_reference.root
29   run new_compositions.root KBoosted systematics_dndeta_KBoosted.root
30   run new_compositions.root KReduced systematics_dndeta_KReduced.root
31   run new_compositions.root pBoosted systematics_dndeta_pBoosted.root
32   run new_compositions.root pReduced systematics_dndeta_pReduced.root
33 }
34
35 function vertexRecoStudy
36 {
37   ## this runs vertex reco study
38
39   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vertexreco_pythia systematics_vtxreco_pythia.root
40   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vertexreco_ddmore systematics_vtxreco_ddmore.root
41   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vertexreco_ddless systematics_vtxreco_ddless.root
42   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vertexreco_sdmore systematics_vtxreco_sdmore.root
43   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vertexreco_sdless systematics_vtxreco_sdless.root
44   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vertexreco_dmore systematics_vtxreco_dmore.root
45   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vertexreco_dless systematics_vtxreco_dless.root
46 }
47
48 function triggerBiasStudy
49 {
50   ## this runs trigger bias study
51
52   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_trigger_pythia systematics_trigger_pythia.root
53   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_trigger_ddmore systematics_trigger_ddmore.root
54   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_trigger_ddless systematics_trigger_ddless.root
55   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_trigger_sdmore systematics_trigger_sdmore.root
56   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_trigger_sdless systematics_trigger_sdless.root
57   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_trigger_dmore systematics_trigger_dmore.root
58   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_trigger_dless systematics_trigger_dless.root
59 }
60
61 function vertexRecoTriggerBiasStudy
62 {
63   ## this runs trigger bias and vertex reco study
64
65   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vtxtrigger_pythia systematics_vtxtrigger_pythia.root
66   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vtxtrigger_ddmore systematics_vtxtrigger_ddmore.root
67   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vtxtrigger_ddless systematics_vtxtrigger_ddless.root
68   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vtxtrigger_sdmore systematics_vtxtrigger_sdmore.root
69   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vtxtrigger_sdless systematics_vtxtrigger_sdless.root
70   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vtxtrigger_dmore systematics_vtxtrigger_dmore.root
71   run systematics_vtxtrigger_compositions.root dndeta_correction_syst_vtxtrigger_dless systematics_vtxtrigger_dless.root
72 }
73
74 function misalignmentStudy
75 {
76   ## runs same analysis with correction build from aligned and misaligned detector
77
78   #run correction_map_aligned.root dndeta_correction systematics_misalignment_aligned.root
79   #run correction_map_misaligned.root dndeta_correction systematics_misalignment_misaligned.root
80   run correction_map_misaligned_single.root dndeta_correction_alignment_track2particle systematics_misalignment_track2particle.root
81   run correction_map_misaligned_single.root dndeta_correction_alignment_vertex systematics_misalignment_vertex.root
82   run correction_map_misaligned_single.root dndeta_correction_alignment_trigger systematics_misalignment_trigger.root
83 }
84
85 rm analysis_esd.root
86
87 #particleComposition
88 #vertexRecoStudy
89 #triggerBiasStudy
90 #vertexRecoTriggerBiasStudy
91 misalignmentStudy