]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/RESONANCES/macros/lego_train/README
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGLF / RESONANCES / macros / lego_train / README
1 # Working from v5-02-16-AN
2
3 root 'RunALICE.C("proof","test","aod","",1e10,0,"my_local_data.txt","AddAMRsn")'
4
5 root 'RunALICE.C("local","full","aod","",1e10,0,"my_local_data.txt","AddAMRsn")'
6
7 root 'RunALICE.C("proof","full","aod","",1e10,0,"datasets-proof/LHC11a_p3_SSD_AOD072.txt","AddAMRsn")'
8
9
10
11 ##### Init working direcotry to be able use lego_train stuff #####
12
13 # get source from RSN git (readonly version) [please install git]
14
15 mkdir -p $HOME/ALICE/
16 cd $HOME/ALICE/
17 git clone git://github.com/mvala/AliRsn.git
18
19 # to get latest source
20 cd $HOME/ALICE/AliRsn
21 git pull
22
23 # Let's create working direcotry (any directory you want)
24 mkdir -p /tmp/my_wk_dir
25 cd /tmp/my_wk_dir
26 $HOME/ALICE/AliRsn/scripts/alirsn-create-wk-dir.sh
27 # now you should have .C files needed to run analysis
28
29 # modify RsnManager.C to set your RSN you want to study
30 # for example line
31
32 listRsn->Add(new TNamed("Phi","Phi2010"));
33
34 # will use 
35 # AddRsnPairsPhi.C
36 # AddRsnDaughterCutsPhi2010.C
37 # more info in 'RsnManager.C'
38 # NOTE: ORDER of loading macros 
39 # 1. Looks for macro in local direcotry
40 # 2. Looks in direcotry defined in RsnManager.C as variable 'legoTrainPath'
41 #    Default is '$ALICE_ROOT/PWGLF/RESONANCES/macros/lego_train'
42
43 # if you want to use latest macros, which are not even in aliroot, but they are in RSN git, you can do
44 # in 'RsnManager.C' change legoTrainPath
45 # for example (my RSN git copy is located /home/mvala/ALICE/AliRsn)
46 legoTrainPath = "/home/mvala/ALICE/AliRsn/PWGLF/RESONANCES/macros/lego_train";
47
48 # and you can do for example , where 'my_local_data.txt' has
49 # list of files localy saved
50
51 root 'RunALICE.C("proof","test","aod","",1e10,0,"my_local_data.txt","AddAMRsn")'
52
53 ##### END Init working direcotry to be able use lego_train stuff #####
54
55
56 ###### EXTRA STUFF ###############################
57
58 # <1> #
59 # Create latest PWGLFresonances.par from RSN git
60 cd $HOME/ALICE/AliRsn
61 mkdir build
62 cd build
63 ../scripts/alirsn-make.sh PWGLFresonances.par
64 # and now PWGLFresonances.par is saved in build direcotry
65
66 # to use PWGLFresonances.par in lego_train macros
67 # just set 
68
69 Int_t useRsnPar = 1;
70
71 # and run as usual, for example
72 root 'RunALICE.C("proof","test","aod","",1e10,0,"my_local_data.txt","AddAMRsn")'
73
74 ###### END EXTRA STUFF ###############################