TPC rdEdx analysis code, macros and more (P.Christiansen)
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / IdentifiedHighPt / README.txt
CommitLineData
4ebdd20e 1The idea is to document the different steps needed to make spectra.
2
3STEP 1: GRID CODE
4=================
5
6In the directory grid you will find the code used to produce the trees. For
7info on how to use have a look at runAAF.C
8
9STEP 2: EXTRACT TREES
10=====================
11
12The file produced on the grid contains the trees in the list. This means that
13one cannot direcrtly chain tghem. Therefore we use the code in extract_code to
14make new files with the trees only.
15
16Example:
17./merge.sh aortizve/Trees_LHC10b_Pass3/files/
18and
19./merge.sh aortizve/Trees_LHC10b_Pass3/files/ HighPtDeDxV0
20
21STEP 3: COMPILE LIBRARY
22=======================
23
24cd lib
25make clean
26make
27
28
29STEP 4: DETERMINE RATIOS
30========================
31
32This is the biggest step.
33
34mkdir ratios_7tevb
35cd ratios_7tevb
36
37First we need to create the text files we want to analyze.
38Example:
39find /home/pchristi/work/analysis/7tev/ | grep HighPtDeDx_Tree | grep new | grep 117059 > 7tev_b_test.dat
40find /home/pchristi/work/analysis/7tev/ | grep HighPtDeDx_Tree | grep new > 7tev_b.dat
41
42find /home/pchristi/work/analysis/7tev/ | grep HighPtDeDxV0_Tree | grep new | grep 117059 > 7tev_b_test_v0.dat
43find /home/pchristi/work/analysis/7tev/ | grep HighPtDeDxV0_Tree | grep new > 7tev_b_v0.dat
44
45ln -s ../macros/run_code.C .
46ln -s ../macros/calibrate_de_dx.C .
47
48cp ../macros/drawText.C .
49Edit the text here. This macro is used to tag the pictures.
50
51Follow the example in the macro run_code.C
52
53Step 1-5 is about determining the dE/dx calibrations and the input data to the
54fits in pT.
55
56Now it is time for extracting the uncorrected ratios.
57
58ln -s ../macros/fit_yields_final.C .
59
60This is documented in fit_yields_final.C
61
62
63There is still things missing:
64- Option to generate tree when generating the data.
65- The code to estimate systematic errors
66- Efficiency code
67- Corrected fractions
68- Spectra and RAA code
69
70But that will come soon - hopefully next week.
71
72
73
74
75To zip:
76
77ls -1 README.txt lib/Makefile lib/*.cxx lib/*.h macros/*.C > tozip.txt
78tar -hcvzf analysis.tgz -T tozip.txt
79