]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/Correlations/macros/twoplusone/AddGoodRuns.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGCF / Correlations / macros / twoplusone / AddGoodRuns.C
1
2 Int_t AddGoodRuns(AliAnalysisAlien* plugin,TString lhcPeriod,TString mcprod="") {
3   //
4   // Adds good runs from the Monalisa Run Condition Table
5   //
6   if(mcprod=="") plugin->SetRunPrefix("000"); // DATA
7   
8   Int_t firstrun=0,lastrun=9999999;
9   Int_t nruns=0,ngoodruns=0;
10   
11   if(lhcPeriod=="LHC10h") {
12     if(mcprod=="" || mcprod=="LHC11a10b") {
13       nruns=91;
14       Int_t runlist[91] ={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, 138469, 138442, 138439, 138438, 138396, 138364, 138275, 138225, 138201, 138197, 138192, 138190, 137848, 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};
15       
16       for(Int_t k=0;k<nruns;k++){
17         if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
18         plugin->AddRunNumber(runlist[k]);
19         ngoodruns++;
20       }
21     } else if(mcprod=="LHC11a10b_bis") {
22       nruns=153;
23       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};
24       for(Int_t k=0;k<nruns;k++){
25         if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
26         plugin->AddRunNumber(runlist[k]);
27         ngoodruns++;
28       }
29     }
30     plugin->SetNrunsPerMaster(ngoodruns);
31   }
32
33
34   if(lhcPeriod=="LHC10h_Gir") {
35     if(mcprod=="") {
36       nruns= 91;
37       Int_t runlist[92] ={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, 138469, 138442, 138439, 138438, 138396, 138364, 138275, 138225, 138201, 138197, 138192, 138190, 137848, 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, 139511, 137135};
38       for(Int_t k=0;k<nruns;k++){
39         if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
40         plugin->AddRunNumber(runlist[k]);
41         ngoodruns++;
42       }
43     }
44     plugin->SetNrunsPerMaster(ngoodruns);
45   }
46   
47   return ngoodruns;
48 }