]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/scripts/multdist/MakeMultAOD.C
The code and scripts to do multiplicity distributions with FMD+SPD from C.Nygaard
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / scripts / multdist / MakeMultAOD.C
1 /*
2 void Setup900GeV(MakeAODTrain p);
3 void Setup900GeVMC(MakeAODTrain p);
4 void Add900GeVruns(MakeAODTrain p);
5 */
6 class MakeAODTrain;
7
8 void MakeMultAOD()
9 {
10   bool        usePar  =  true;
11   bool        mc      =  true;
12   Int_t       nEvents = -1;
13   UShort_t    proof   = 0;
14
15   const char* name    = "test_flatMult_withbg";
16   UShort_t    type    = 1;  // pp==1, PbPb==2
17   UShort_t    cms     = 900; // 2750 for 2760GeV
18   Short_t     field   = 5; // -5 for 2760GeV!!!
19   Bool_t      useCent = false;
20   const char* builder = "$(ALICE_ROOT)/PWG2/FORWARD/analysis2/trains/BuildTrain.C";
21   gROOT->LoadMacro(builder);
22   BuildTrain("MakeAODTrain");
23
24   std::cout << "making AOD train " << std::endl;
25   MakeAODTrain t(name, type, cms, field, useCent);
26   t.SetDataSet("");
27   t.SetNReplica(2);
28   t.SetAllowOverwrite(true);
29   t.SetProofServer(Form("workers=%d",proof));
30  
31   
32   t.SetROOTVersion("v5-28-00f");
33   t.SetAliROOTVersion("v4-21-33-AN");
34
35   //if pp coll
36   if(type==1){
37     if (cms == 900) { 
38       if (!mc) Setup900GeV(t);
39       else     Setup900GeVMC(t);
40     }
41     if (cms == 2750) {
42       if (!mc) Setup2760GeV(t);
43       else Setup2760GeVMC(t);
44     }
45     
46     if (cms == 7000) { 
47       if (!mc) Setup7000GeV(t);
48       else     Setup7000GeVMC(t);
49     }
50   }
51   else
52     SetupPbPb(t);
53    
54     
55   t.Run("GRID", "FULL", nEvents, mc, usePar);
56 }
57 //________________________________________________________
58
59 void SetupPbPb(MakeAODTrain& p){
60   p.SetDataDir("/alice/data/2010/LHC10h") ;
61   p.SetESDPass(2); 
62
63
64   p.AddRun(138190);
65   p.AddRun(138534);
66   p.AddRun(138364);
67   p.AddRun(138442);
68   //p.AddRun(139465);
69   p.AddRun(138396);
70   //p.AddRun(137722);
71   //p.AddRun(139107);
72   //p.AddRun(139437);
73   p.AddRun(138653);
74   //p.AddRun(139038);
75   //p.AddRun(137608);
76 }
77
78 void Setup900GeV(MakeAODTrain& p){
79   p.SetDataDir("/alice/data/2010/LHC10c");
80   p.SetESDPass(3); 
81
82   Add900GeVruns(p);
83
84 }
85
86 void Setup900GeVMC(MakeAODTrain& p){
87   //Flat mult
88   p.SetDataDir("/alice/sim/LHC10f1");
89
90   //nomal MC (Pythia)
91   //p.SetDataDir("/alice/sim/LHC11b1a");
92
93   //900 Gev normal Phojet MC
94   //p.SetDataDir("/alice/sim/LHC11c1");
95   
96   Add900GeVruns(p);
97
98 }
99
100 void Add900GeVruns(MakeAODTrain& p){
101   p.AddRun(118506);
102   p.AddRun(118507);
103   p.AddRun(118512);
104   p.AddRun(118556);
105   p.AddRun(118558);
106   p.AddRun(118560);
107   p.AddRun(118561);
108   p.AddRun(121039);
109   p.AddRun(121040);
110   
111 }
112 void Setup2760GeV(MakeAODTrain& p){
113   p.SetDataDir("/alice/data/2011/LHC11a");
114   p.SetESDPass(2);
115   p.SetPassPostfix("_with_SDD");
116   Add2760GeVruns(p);
117 }
118 void Setup2760GeVMC(MakeAODTrain& p){
119   p.SetDataDir("/alice/sim/LHC11b10c");
120   Add2760GeVruns(p);
121 }
122
123 void Add2760GeVruns(MakeAODTrain& p){
124   /*
125   p.AddRun(146860); 
126   p.AddRun(146859);     
127   p.AddRun(146858);     
128   p.AddRun(146857);     
129   p.AddRun(146856);
130   */
131   p.AddRun(146824); 
132   p.AddRun(146817);
133   p.AddRun(146807);
134   p.AddRun(146806);
135   p.AddRun(146805);
136   p.AddRun(146804);
137   p.AddRun(146803);
138   p.AddRun(146802);
139   p.AddRun(146801);
140   p.AddRun(146748);
141   p.AddRun(146747);
142   p.AddRun(146746);
143   p.AddRun(146689);
144   p.AddRun(146688);
145   p.AddRun(146686);
146   
147 }
148
149 void Setup7000GeV(MakeAODTrain& p){
150   p.SetDataDir("/alice/data/2010/LHC10d");
151   p.AddRun(126424);
152   p.AddRun(126422);  
153   p.AddRun(126409);
154   p.AddRun(126408);
155   p.AddRun(126407);
156   p.AddRun(126406);
157   p.AddRun(126404);
158   p.AddRun(126359);
159   p.AddRun(126352);
160   p.AddRun(126351);
161   p.AddRun(126097);
162   p.AddRun(125855);
163   p.AddRun(125851);
164   p.AddRun(125850);
165   p.AddRun(125849);
166   p.AddRun(125848);
167   p.AddRun(125847);
168   p.AddRun(125101);
169   p.AddRun(125097);
170   p.AddRun(125085);
171   
172   p.SetESDPass(2); 
173 }
174 void Setup7000GeVMC(MakeAODTrain& p){
175   p.SetDataDir("/alice/sim/LHC10h16");
176   p.AddRun(125186);
177   p.AddRun(125633);
178   p.AddRun(125842);
179   p.AddRun(125851);
180   p.AddRun(126008);
181   p.AddRun(126081);
182   p.AddRun(126082);
183   p.AddRun(126090);
184   p.AddRun(126097);
185   p.AddRun(126167);
186   p.AddRun(126283);
187   p.AddRun(126359);
188   p.AddRun(126408);
189   p.AddRun(126409);
190   p.AddRun(126422);
191   p.AddRun(126425);
192   p.AddRun(126437);
193 }
194
195
196 //EOF