]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/PHOSTasks/PHOS_PbPb/macros/single-task/AddGoodRuns.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGGA / PHOSTasks / PHOS_PbPb / macros / single-task / AddGoodRuns.C
CommitLineData
c5b1ff68 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
11 if(lhcPeriod=="LHC11h_2") { // PbPb 2011
12 if(mcprod=="LHC12a17a") {
13 nruns=0;
14 Int_t runlist[0];
15 }else{
16 nruns=169;
17 Int_t runlist[169]={170593, 170572, 170556, 170552, 170546, 170390, 170389, 170388, 170387, 170315, 170313, 170312, 170311, 170309, 170308, 170306, 170270, 170269, 170268, 170267, 170264, 170230, 170228, 170208, 170207, 170205, 170204, 170203, 170195, 170193, 170163, 170162, 170159, 170155, 170152, 170091, 170089, 170088, 170085, 170084, 170083, 170081, 170040, 170038, 170036, 170027, 169981, 169969, 169965, 169961, 169956, 169926, 169924, 169923, 169922, 169859, 169858, 169855, 169846, 169838, 169837, 169835, 169683, 169591, 169590, 169588, 169587, 169586, 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, 167712, 167711, 167706};
18 }
19 for(Int_t k=0;k<nruns;k++){
20 if(runlist[k]<firstrun || runlist[k]>lastrun) continue;
21 plugin->AddRunNumber(runlist[k]);
22 ngoodruns++;
23 }
24 plugin->SetNrunsPerMaster(ngoodruns);
25 }
26
27 return ngoodruns;
28}