]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGHF/vertexingHF/AddGoodRuns.C
Updates on: 1) ZN debunching cut for pPb/Pbp analysis, 2) TRD trigger checks, 3)...
[u/mrichter/AliRoot.git] / PWGHF / vertexingHF / AddGoodRuns.C
CommitLineData
9be57b17 1Int_t AddGoodRuns(AliAnalysisAlien* plugin,TString lhcPeriod,TString mcprod="") {
2 //
3 // Adds good runs from the Monalisa Run Condition Table
4 //
5 if(mcprod=="") plugin->SetRunPrefix("000"); // DATA
6
7 Int_t firstrun=0,lastrun=9999999;
8 Int_t nruns=0,ngoodruns=0;
9
10 if(mcprod=="LHC10d3") {firstrun=117054;lastrun=117222;}
11 if(mcprod=="LHC10d5") {firstrun=117086;lastrun=117222;}
12
13
14 if(lhcPeriod=="LHC10b") {
15 nruns=31;
16 Int_t runlist[31]={117222, 117220, 117116, 117112, 117109, 117099, 117092, 117086, 117077, 117065, 117063, 117060, 117059, 117054, 117053, 117052, 117050, 117048, 116645, 116643, 116574, 116571, 116562, 116403, 116288, 116102, 115401, 115393, 115193, 115186, 114931};
17
18 for(Int_t k=0;k<nruns;k++){
19 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
20 plugin->AddRunNumber(runlist[k]);
21 ngoodruns++;
22 }
23 plugin->SetNrunsPerMaster(ngoodruns);
24 }
25
26 if(lhcPeriod=="LHC10c") {
27 nruns=36;
28 Int_t runlist[36]={120829, 120825, 120824, 120823, 120822, 120821, 120820, 120758, 120750, 120741, 120671, 120617, 120616, 120505, 120504, 120503, 120244, 120079, 120076, 120073, 120072, 120069, 120067, 119862, 119859, 119856, 119853, 119849, 119846, 119845, 119844, 119842, 119841, 119163, 119161, 119159};
29
30 for(Int_t k=0;k<nruns;k++){
31 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
32 plugin->AddRunNumber(runlist[k]);
33 ngoodruns++;
34 }
35 plugin->SetNrunsPerMaster(ngoodruns);
36 }
37
38 if(lhcPeriod=="LHC10dhighmu") { // only runs with high mu
39 nruns=17;
40 Int_t runlist[17]={124750, 124746, 124702, 124608, 124607, 124606, 124605, 124604, 124381, 124380, 124378, 124367, 124362, 124358, 124355, 124191, 124187};
41
42 for(Int_t k=0;k<nruns;k++){
43 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
44 plugin->AddRunNumber(runlist[k]);
45 ngoodruns++;
46 }
47 plugin->SetNrunsPerMaster(ngoodruns);
48 }
49
50 if(lhcPeriod=="LHC10d") { // runs with high mu excluded
51 nruns=55;
52 Int_t runlist[55]={126437, 126432, 126425, 126424, 126422, 126409, 126408, 126407, 126406, 126405, 126404, 126403, 126359, 126352, 126351, 126350, 126285, 126284, 126283, 126168, 126167, 126160, 126158, 126097, 126090, 126088, 126082, 126081, 126078, 126073, 126008, 126007, 126004, 125855, 125851, 125850, 125849, 125848, 125847, 125844, 125843, 125842, 125633, 125632, 125630, 125296, 125134, 125101, 125100, 125097, 125085, 125023, 124751, 122375, 122374};
53
54 for(Int_t k=0;k<nruns;k++){
55 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
56 plugin->AddRunNumber(runlist[k]);
57 ngoodruns++;
58 }
59 plugin->SetNrunsPerMaster(ngoodruns);
60 }
61
9db994ea 62 if(lhcPeriod=="LHC10e") { // updated Apr 5 (RCT good runs)
04c2e775 63 if(mcprod=="") {
9a11e0f6 64 nruns=94;
65 Int_t runlist[94]={130840, 130834, 130799, 130798, 130795, 130793, 130696, 130628, 130623, 130620, 130609, 130519, 130480, 130360, 130358, 130356, 130354, 130343, 130178, 130158, 129961, 129960, 129959, 129744, 129742, 129738, 129736, 129735, 129729, 129726, 129725, 129723, 129667, 129666, 129659, 129654, 129653, 129652, 129650, 129647, 129641, 129639, 129599, 129586, 129540, 129528, 129527, 129523, 129520, 129513, 129512, 128913, 128855, 128853, 128843, 128836, 128835, 128824, 128823, 128820, 128778, 128777, 128678, 128677, 128615, 128611, 128609, 128605, 128582, 128507, 128504, 128503, 128495, 128494, 128486, 128483, 128452, 128366, 128260, 128192, 128191, 128186, 128185, 127942, 127941, 127940, 127937, 127936, 127935, 127933, 127822, 127718, 127714, 127712};
04c2e775 66 for(Int_t k=0;k<nruns;k++){
67 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
68 plugin->AddRunNumber(runlist[k]);
69 ngoodruns++;
70 }
71 } else if(mcprod=="LHC10f7a") {
72 nruns=74;
73 Int_t runlist[74]={127719, 127724, 127729, 127730, 127814, 127819, 127930, 127940, 128263, 128778, 128913, 129536, 129599, 129639, 129641, 129654, 129659, 129666, 129667, 129723, 129725, 129726, 129729, 129735, 129736, 129738, 129742, 129744, 129959, 129960, 129961, 129962, 129966, 129983, 130149, 130151, 130157, 130158, 130172, 130178, 130179, 130342, 130343, 130354, 130356, 130358, 130360, 130375, 130479, 130480, 130481, 130517, 130519, 130520, 130524, 130526, 130601, 130608, 130620, 130621, 130623, 130628, 130696, 130704, 130793, 130795, 130798, 130799, 130834, 130840, 130842, 130844, 130847, 130848};
74 for(Int_t k=0;k<nruns;k++){
75 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
76 plugin->AddRunNumber(runlist[k]);
77 ngoodruns++;
78 }
8b834c1b 79 } else if(mcprod=="LHC12a12") {
80 nruns=115;
81 Int_t runlist[115]={127719, 127822, 127931, 127933, 127935, 127936, 127937, 127940, 127941, 127942, 128185, 128186, 128189, 128191, 128192, 128260, 128263, 128366, 128452, 128483, 128486, 128494, 128495, 128498, 128503, 128504, 128505, 128507, 128582, 128605, 128609, 128611, 128615, 128621, 128677, 128678, 128777, 128778, 128820, 128823, 128824, 128833, 128835, 128836, 128843, 128850, 128853, 128855, 128913, 129512, 129513, 129514, 129520, 129523, 129527, 129528, 129540, 129586, 129587, 129599, 129639, 129641, 129647, 129650, 129652, 129653, 129654, 129659, 129666, 129667, 129723, 129725, 129726, 129729, 129735, 129736, 129738, 129742, 129744, 129959, 129960, 129961, 129966, 129983, 130149, 130157, 130158, 130172, 130178, 130179, 130342, 130343, 130354, 130356, 130358, 130360, 130375, 130480, 130517, 130519, 130520, 130601, 130608, 130696, 130704, 130793, 130795, 130798, 130799, 130834, 130840, 130842, 130844, 130847, 130848};
82 for(Int_t k=0;k<nruns;k++){
83 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
84 plugin->AddRunNumber(runlist[k]);
85 ngoodruns++;
86 }
9db994ea 87 }
88 plugin->SetNrunsPerMaster(ngoodruns);
89 }
90
9be57b17 91 if(lhcPeriod=="LHC10h") {
9a11e0f6 92 if(mcprod=="" || mcprod=="LHC11a10b") {
93 nruns=104;
94 Int_t runlist[104]={139514, 139513, 139511, 139510, 139507, 139505, 139503, 139470, 139467, 139466, 139465, 139438, 139437, 139360, 139329, 139328, 139314, 139310, 139309, 139173, 139107, 139105, 139038, 139037, 139036, 139029, 139028, 138872, 138871, 138870, 138837, 138796, 138732, 138730, 138666, 138662, 138653, 138652, 138638, 138624, 138621, 138583, 138582, 138579, 138578, 138534, 138469, 138442, 138439, 138438, 138396, 138364, 138225, 138201, 138197, 138192, 138190, 138154, 138153, 138151, 138150, 138126, 138125, 137848, 137843, 137752, 137751, 137724, 137722, 137718, 137704, 137693, 137692, 137691, 137686, 137685, 137639, 137638, 137608, 137595, 137549, 137546, 137544, 137541, 137539, 137531, 137530, 137443, 137441, 137440, 137439, 137434, 137432, 137431, 137430, 137366, 137243, 137236, 137235, 137232, 137231, 137165, 137162, 137161};
7e349195 95
96 for(Int_t k=0;k<nruns;k++){
97 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
98 plugin->AddRunNumber(runlist[k]);
99 ngoodruns++;
100 }
101 } else if(mcprod=="LHC11a10b_bis") {
3e07ad0d 102 nruns=153;
103 Int_t runlist[153]={137124, 137125, 137132, 137133, 137135, 137136, 137137, 137161, 137162, 137163, 137165, 137230, 137231, 137232, 137235, 137236, 137243, 137365, 137366, 137370, 137430, 137431, 137432, 137434, 137439, 137440, 137441, 137443, 137530, 137531, 137539, 137541, 137544, 137546, 137549, 137595, 137608, 137609, 137638, 137639, 137685, 137686, 137689, 137691, 137692, 137693, 137704, 137718, 137722, 137724, 137748, 137751, 137752, 137843, 137844, 137847, 137848, 138125, 138126, 138150, 138151, 138153, 138154, 138190, 138192, 138197, 138200, 138201, 138225, 138275, 138359, 138364, 138396, 138438, 138439, 138442, 138469, 138533, 138534, 138578, 138579, 138582, 138583, 138620, 138621, 138624, 138637, 138638, 138652, 138653, 138662, 138666, 138730, 138731, 138732, 138736, 138737, 138740, 138742, 138795, 138796, 138826, 138828, 138830, 138831, 138836, 138837, 138870, 138871, 138872, 139028, 139029, 139030, 139031, 139034, 139036, 139037, 139038, 139042, 139104, 139105, 139107, 139110, 139172, 139173, 139308, 139309, 139310, 139311, 139314, 139316, 139328, 139329, 139360, 139437, 139438, 139439, 139440, 139441,139465, 139466, 139467, 139470, 139471, 139503, 139504, 139505, 139507, 139510, 139511, 139513, 139514, 139517};
7e349195 104 for(Int_t k=0;k<nruns;k++){
105 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
106 plugin->AddRunNumber(runlist[k]);
107 ngoodruns++;
108 }
109 }
110 plugin->SetNrunsPerMaster(ngoodruns);
111 }
112
113 if(lhcPeriod=="LHC10hFlow") {
114 if(mcprod=="" || mcprod=="LHC11a10b") {
115 nruns=93;
116 Int_t runlist[93]={139510, 139507, 139505, 139503, 139465, 139438, 139437, 139360, 139329, 139328, 139314, 139310, 139309, 139173, 139107, 139105, 139038, 139037, 139036, 139029, 139028, 138872, 138871, 138870, 138837, 138732, 138730, 138666, 138662, 138653, 138652, 138638, 138624, 138621, 138583, 138582, 138579, 138578, 138534, 138469, 138442, 138439, 138438, 138396, 138364, 138275, 138225, 138201, 138197, 138192, 138190, 137848, 137844, 137752, 137751, 137724, 137722, 137718, 137704, 137693, 137692, 137691, 137686, 137685, 137639, 137638, 137608, 137595, 137549, 137546, 137544, 137541, 137539, 137531, 137530, 137443, 137441, 137440, 137439, 137434, 137432, 137431, 137430, 137366, 137243, 137236, 137235, 137232, 137231, 137230, 137162, 137161, 137135};
9a11e0f6 117 for(Int_t k=0;k<nruns;k++){
118 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
119 plugin->AddRunNumber(runlist[k]);
120 ngoodruns++;
121 }
122 } else if(mcprod=="LHC11a10b_bis") {
123 nruns=84;
124 Int_t runlist[84]={138364, 138396, 138438, 138439, 138442, 138469, 138533, 138534, 138578, 138579, 138582, 138583, 138620, 138621, 138624, 138637, 138638, 138652, 138653, 138662, 138666, 138730, 138731, 138732, 138736, 138737, 138740, 138742, 138795, 138796, 138826, 138828, 138830, 138831, 138836, 138837, 138870, 138871, 138872, 139024, 139025, 139028, 139029, 139030, 139031, 139034, 139036, 139037, 139038, 139042, 139104, 139105, 139107, 139110, 139172, 139173, 139308, 139309, 139310, 139311, 139314, 139316, 139328, 139329, 139360, 139437, 139438, 139439, 139440, 139441, 139465, 139466, 139467, 139470, 139471, 139503, 139504, 139505, 139507, 139510, 139511, 139513, 139514, 139517};
125
126 for(Int_t k=0;k<nruns;k++){
127 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
128 plugin->AddRunNumber(runlist[k]);
129 ngoodruns++;
130 }
9be57b17 131 }
132 plugin->SetNrunsPerMaster(ngoodruns);
133 }
134
9db994ea 135 if(lhcPeriod=="LHC11a") {
d272056c 136
137 if(mcprod=="") {
138 nruns=15;
139 Int_t runlist[15]={146860, 146859, 146858, 146856, 146824, 146817, 146806, 146805, 146804, 146803, 146802, 146801, 146748, 146747, 146746};
140
141 for(Int_t k=0;k<nruns;k++){
142 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
143 plugin->AddRunNumber(runlist[k]);
144 ngoodruns++;
145 }
146 } else if(mcprod=="LHC11b10b") {
147 nruns=24;
148 Int_t runlist[24]={146860, 146859, 146858, 146857, 146856, 146824, 146817, 146814, 146813, 146812, 146808, 146807, 146806,
149 146805, 146804, 146803, 146802, 146801, 146748, 146747, 146746, 146689, 146688, 146686};
150 for(Int_t k=0;k<nruns;k++){
151 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
152 plugin->AddRunNumber(runlist[k]);
153 ngoodruns++;
154 }
9db994ea 155 }
d272056c 156
9db994ea 157 plugin->SetNrunsPerMaster(ngoodruns);
158 }
159
160
a4238c8d 161 if(lhcPeriod=="LHC11h") { // PbPb 2011
66d7b0d0 162 if(mcprod=="LHC12a17a") {
163 nruns=103;
164 Int_t runlist[103]={167915,167920,167985,167987,167988,168069,168076,
165 168105,168107,168108,168115,168310,168311,168322,
166 168325,168341,168342,168361,168362,168458,168460,
167 168464,168467,168512,168514,168777,168826,168988,
168 168992,169035,169040,169044,169045,169091,169094,
169 169099,169144,169145,169148,169160,169167,169238,
170 169411,169415,169417,169418,169419,169420,169475,
171 169498,169504,169506,169512,169515,169550,169553,
172 169554,169555,169557,169586,169587,169588,169590,
173 169591,169835,169837,169838,169846,169855,169858,
174 169859,169923,170027,170040,170081,170083,170084,
175 170085,170088,170089,170091,170155,170159,170163,
176 170193,170203,170204,170207,170228,170230,170268,
177 170269,170270,170306,170308,170309,170311,170312,
178 170313,170315,170387,170572,170593};
179 }else{
180 nruns=108;
181 Int_t runlist[108]={169683, 169628, 169584, 169557, 169555, 169554, 169553, 169550, 169515, 169512, 169506, 169504, 169498, 169475, 169420, 169419, 169418, 169417, 169415, 169411, 169238, 169236, 169167, 169160, 169156, 169148, 169145, 169144, 169143, 169138, 169099, 169094, 169091, 169045, 169044, 169040, 169035, 168992, 168988, 168984, 168826, 168777, 168514, 168512, 168511, 168467, 168464, 168461, 168460, 168458, 168362, 168361, 168356, 168342, 168341, 168325, 168322, 168318, 168311, 168310, 168213, 168212, 168208, 168207, 168206, 168205, 168204, 168203, 168181, 168177, 168175, 168173, 168172, 168171, 168115, 168108, 168107, 168105, 168104, 168103, 168076, 168069, 168068, 168066, 167988, 167987, 167986, 167985, 167921, 167920, 167915, 167909, 167903, 167902, 167818, 167814, 167813, 167808, 167807, 167806, 167713, 167712, 167711, 167706, 167693, 166532, 166530, 166529};
182 }
a4238c8d 183 for(Int_t k=0;k<nruns;k++){
184 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
185 plugin->AddRunNumber(runlist[k]);
186 ngoodruns++;
187 }
188 plugin->SetNrunsPerMaster(ngoodruns);
189 }
7edc76f3 190
191
192 if(lhcPeriod=="LHC11h_pass2") { // PbPb 2011
66d7b0d0 193 if(mcprod=="LHC12a17a") {
194 nruns=103;
195 Int_t runlist[103]={167915,167920,167985,167987,167988,168069,168076,
196 168105,168107,168108,168115,168310,168311,168322,
197 168325,168341,168342,168361,168362,168458,168460,
198 168464,168467,168512,168514,168777,168826,168988,
199 168992,169035,169040,169044,169045,169091,169094,
200 169099,169144,169145,169148,169160,169167,169238,
201 169411,169415,169417,169418,169419,169420,169475,
202 169498,169504,169506,169512,169515,169550,169553,
203 169554,169555,169557,169586,169587,169588,169590,
204 169591,169835,169837,169838,169846,169855,169858,
205 169859,169923,170027,170040,170081,170083,170084,
206 170085,170088,170089,170091,170155,170159,170163,
207 170193,170203,170204,170207,170228,170230,170268,
208 170269,170270,170306,170308,170309,170311,170312,
209 170313,170315,170387,170572,170593};
210 }else{
211 nruns=131;
212 Int_t runlist[131]={167902, 167903, 167909, 167915, 167920, 167985, 167986, 167987, 167988, 168066, 168068, 168069, 168076, 168103, 168104, 168105, 168107, 168108, 168115, 168212, 168310, 168311, 168322, 168325, 168341, 168342, 168361, 168362, 168458, 168460, 168461, 168464, 168467, 168511, 168512, 168514, 168777, 168826, 168984, 168988, 168992, 169035, 169040, 169044, 169045, 169091, 169094, 169099, 169138, 169143, 169144, 169145, 169148, 169156, 169160, 169167, 169238, 169411, 169415, 169417, 169418, 169419, 169420, 169475, 169498, 169504, 169506, 169512, 169515, 169550, 169553, 169554, 169555, 169557, 169584, 169586, 169587, 169588, 169590, 169591, 169835, 169837, 169838, 169846, 169855, 169858, 169859, 169922, 169923, 169956, 169965, 169975, 169981, 170027, 170036, 170038, 170040, 170081, 170083, 170084, 170085, 170088, 170089, 170091, 170152, 170155, 170159, 170163, 170193, 170195, 170203, 170204, 170207, 170208, 170228, 170230, 170268, 170269, 170270, 170306, 170308, 170309, 170311, 170312, 170313, 170315, 170387, 170388, 170556, 170572, 170593};
213 }
7edc76f3 214 for(Int_t k=0;k<nruns;k++){
215 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
216 plugin->AddRunNumber(runlist[k]);
217 ngoodruns++;
218 }
219 plugin->SetNrunsPerMaster(ngoodruns);
220 }
221
222
9be57b17 223 return ngoodruns;
224}