Major update of the physics selection and trigger analysis class
[u/mrichter/AliRoot.git] / ANALYSIS / macros / BrowseAndFillPhysicsSelectionOADB.C
1 //FIXME: defaults for 2.76 TeV
2
3 void BrowseAndFillPhysicsSelectionOADB(Bool_t fill = kFALSE) {
4
5   // Load stuff
6   gSystem->Load("libCore.so");  
7   gSystem->Load("libTree.so");
8   gSystem->Load("libGeom.so");
9   gSystem->Load("libVMC.so");
10   gSystem->Load("libPhysics.so");
11   gSystem->Load("libSTEERBase");
12   gSystem->Load("libESD");
13   gSystem->Load("libAOD");
14   gSystem->Load("libANALYSIS");
15   gSystem->Load("libANALYSISalice");   
16   gSystem->Load("libOADB");   
17
18
19
20   TString oadbfilename(Form("%s/COMMON/PHYSICSSELECTION/data/physicsSelection.root", AliAnalysisManager::GetOADBPath()));
21   if (!fill) {
22     TFile * f = new TFile(oadbfilename);
23     new TBrowser();
24     return;
25   }
26
27
28   AliOADBContainer * oadbContPS = new AliOADBContainer("physSel");
29   AliOADBContainer * oadbContFillingScheme = new AliOADBContainer("fillScheme");
30
31   // Defaults
32   AliOADBFillingScheme * fsDefault = new AliOADBFillingScheme("Default");
33   fsDefault->SetFillingSchemeName("Default");
34   fsDefault->SetBXIDs("B","");
35   fsDefault->SetBXIDs("A","" ); 
36   fsDefault->SetBXIDs("AC","" ); 
37   fsDefault->SetBXIDs("C","");
38   fsDefault->SetBXIDs("E",""       );      
39   oadbContFillingScheme->AddDefaultObject(fsDefault);
40
41   // DefaultPP
42   AliOADBPhysicsSelection * oadbDefaultPP = new AliOADBPhysicsSelection("oadbDefaultPP");
43   oadbDefaultPP->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B",0);
44   oadbDefaultPP->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC",0);
45   oadbDefaultPP->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E",0);  
46   oadbDefaultPP->SetHardwareTrigger         ( 0,"SPDGFO >= 1 || V0A || V0C");                                         
47   oadbDefaultPP->SetOfflineTrigger          ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
48   
49   oadbDefaultPP->AddCollisionTriggerClass   ( AliVEvent::kMUON,"+CMUS1-B-NOPF-MUON","B",1);
50   oadbDefaultPP->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-MUON","AC",1);
51   oadbDefaultPP->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1-E-NOPF-MUON","E",1);
52   oadbDefaultPP->SetHardwareTrigger         ( 1,"SPDGFO >= 1 || V0A || V0C");                                         
53   oadbDefaultPP->SetOfflineTrigger          ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
54     
55   oadbDefaultPP->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+CSH1-B-NOPF-ALLNOTRD","B",2);
56   oadbDefaultPP->AddBGTriggerClass          ( AliVEvent::kHighMult,"+CSH1-AC-NOPF-ALLNOTRD","AC",2);
57   oadbDefaultPP->AddBGTriggerClass          ( AliVEvent::kHighMult,"+CSH1-E-NOPF-ALLNOTRD","E",2);
58   oadbDefaultPP->SetHardwareTrigger         ( 2,"SPDGFO >= 1 || V0A || V0C");                      
59   oadbDefaultPP->SetOfflineTrigger          ( 2,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
60
61   oadbDefaultPP->AddCollisionTriggerClass   ( AliVEvent::kEMC1,"+CEMC1-B-NOPF-ALLNOTRD","B",2);
62   oadbDefaultPP->AddBGTriggerClass          ( AliVEvent::kEMC1,"+CEMC1-AC-NOPF-ALLNOTRD","AC",2);
63   oadbDefaultPP->AddBGTriggerClass          ( AliVEvent::kEMC1,"+CEMC1-E-NOPF-ALLNOTRD","E",2);
64   oadbDefaultPP->SetHardwareTrigger         ( 2,"SPDGFO >= 1 || V0A || V0C");                      
65   oadbDefaultPP->SetOfflineTrigger          ( 2,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
66
67
68   oadbContPS->AddDefaultObject(oadbDefaultPP);
69
70   // DefaultPbPb
71   AliOADBPhysicsSelection * oadbDefaultPbPb = new AliOADBPhysicsSelection("oadbDefaultPbPb");
72   oadbDefaultPbPb->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALLNOTRD","B",0);
73   oadbDefaultPbPb->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALLNOTRD","A",0);
74   oadbDefaultPbPb->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALLNOTRD","C",0);
75   oadbDefaultPbPb->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALLNOTRD","E",0);  
76   oadbDefaultPbPb->SetHardwareTrigger         ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && ZDCTime");
77   oadbDefaultPbPb->SetOfflineTrigger          ( 0,"SPDGFO >= 100");
78   
79   oadbDefaultPbPb->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBACS2-B-NOPF-ALLNOTRD","B",1);
80   oadbDefaultPbPb->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-A-NOPF-ALLNOTRD","A",1);
81   oadbDefaultPbPb->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-C-NOPF-ALLNOTRD","C",1);
82   oadbDefaultPbPb->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-E-NOPF-ALLNOTRD","E",1);
83   oadbDefaultPbPb->SetHardwareTrigger         ( 1,"(V0A && V0C && SPDGFO > 1) && !V0ABG && !V0CBG && ZDCTime");
84   oadbDefaultPbPb->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFO > 1)");
85
86   oadbContPS->AddDefaultObject(oadbDefaultPbPb);
87
88   // ----- 2009 - 2010 -----
89   // ----- proton-proton -----
90   // LHC09d+LHC10(abcde)
91   AliOADBPhysicsSelection * oadbLHC09d10e = new AliOADBPhysicsSelection("oadbLHC09d10e");
92   oadbLHC09d10e->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CINT1B-ABCE-NOPF-ALL","B",0);
93   oadbLHC09d10e->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1A-ABCE-NOPF-ALL","A",0);
94   oadbLHC09d10e->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1C-ABCE-NOPF-ALL","C",0);
95   oadbLHC09d10e->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1-E-NOPF-ALL","E",0);  
96   oadbLHC09d10e->SetHardwareTrigger         ( 0,"SPDGFO >= 1 || V0A || V0C");
97   oadbLHC09d10e->SetOfflineTrigger          ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
98   
99   oadbLHC09d10e->AddCollisionTriggerClass   ( AliVEvent::kMUON,"+CMUS1B-ABCE-NOPF-MUON","B",1);
100   oadbLHC09d10e->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1A-ABCE-NOPF-MUON","A",1);
101   oadbLHC09d10e->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1C-ABCE-NOPF-MUON","C",1);
102   oadbLHC09d10e->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1-E-NOPF-MUON","E",1);
103   oadbLHC09d10e->SetHardwareTrigger         ( 1,"SPDGFO >= 1 || V0A || V0C");                                         
104   oadbLHC09d10e->SetOfflineTrigger          ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
105     
106   oadbContPS->AppendObject(oadbLHC09d10e, 104065,118555);
107   oadbContPS->AppendObject(oadbLHC09d10e->Clone(), 118562,127711);
108
109   // LHC09c, fill 1069 (problems with the V0 online trigger in ESD)
110   AliOADBPhysicsSelection * oadbLHC10cV0Bug = new AliOADBPhysicsSelection("oadbLHC10cV0Bug");
111   oadbLHC10cV0Bug->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CINT1B-ABCE-NOPF-ALL","B",0);
112   oadbLHC10cV0Bug->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1A-ABCE-NOPF-ALL","A",0);
113   oadbLHC10cV0Bug->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1C-ABCE-NOPF-ALL","C",0);
114   oadbLHC10cV0Bug->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1-E-NOPF-ALL","E",0);  
115   oadbLHC10cV0Bug->SetHardwareTrigger         ( 0,"SPDGFO >= 1 || CTPV0A || CTPV0C");
116   oadbLHC10cV0Bug->SetOfflineTrigger          ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
117   
118   oadbLHC10cV0Bug->AddCollisionTriggerClass   ( AliVEvent::kMUON,"+CMUS1B-ABCE-NOPF-MUON","B",1);
119   oadbLHC10cV0Bug->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1A-ABCE-NOPF-MUON","A",1);
120   oadbLHC10cV0Bug->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1C-ABCE-NOPF-MUON","C",1);
121   oadbLHC10cV0Bug->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1-E-NOPF-MUON","E",1);
122   oadbLHC10cV0Bug->SetHardwareTrigger         ( 1,"SPDGFO >= 1 || V0A || V0C");                                         
123   oadbLHC10cV0Bug->SetOfflineTrigger          ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
124
125   oadbContPS->AppendObject(oadbLHC10cV0Bug, 118556,118561);
126   
127
128   // LHC10e1
129   AliOADBPhysicsSelection * oadbLHC10e1 = new AliOADBPhysicsSelection("oadbLHC10e1");
130   oadbLHC10e1->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B",0);
131   oadbLHC10e1->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC",0);
132   oadbLHC10e1->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E",0);  
133   oadbLHC10e1->SetHardwareTrigger         ( 0,"SPDGFO >= 1 || V0A || V0C");
134   oadbLHC10e1->SetOfflineTrigger          ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
135   
136   oadbLHC10e1->AddCollisionTriggerClass   ( AliVEvent::kMUON,"+CMUS1-B-NOPF-ALLNOTRD","B",1);
137   oadbLHC10e1->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-ALLNOTRD","AC",1);
138   oadbLHC10e1->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1-E-NOPF-ALLNOTRD","E",1);
139   oadbLHC10e1->SetHardwareTrigger         ( 1,"SPDGFO >= 1 || V0A || V0C");                                         
140   oadbLHC10e1->SetOfflineTrigger          ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
141     
142   oadbLHC10e1->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+CSH1-B-NOPF-ALLNOTRD","B",2);
143   oadbLHC10e1->AddBGTriggerClass          ( AliVEvent::kHighMult,"+CSH1-AC-NOPF-ALLNOTRD","AC",2);
144   oadbLHC10e1->AddBGTriggerClass          ( AliVEvent::kHighMult,"+CSH1-E-NOPF-ALLNOTRD","E",2);
145   oadbLHC10e1->SetHardwareTrigger         ( 2,"SPDGFO >= 1 || V0A || V0C");                      
146   oadbLHC10e1->SetOfflineTrigger          ( 2,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
147     
148   oadbContPS->AppendObject(oadbLHC10e1, 127712,127718);
149
150   // lhc10e2
151   AliOADBPhysicsSelection * oadbLHC10e2 = new AliOADBPhysicsSelection("oadbLHC10e2");
152   oadbLHC10e2->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CINT1B-ABCE-NOPF-ALL","B",0);
153   oadbLHC10e2->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1A-ABCE-NOPF-ALL","A",0);
154   oadbLHC10e2->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1C-ABCE-NOPF-ALL","C",0);
155   oadbLHC10e2->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1-E-NOPF-ALL","E",0);  
156   oadbLHC10e2->SetHardwareTrigger         ( 0,"SPDGFO >= 1 || V0A || V0C");
157   oadbLHC10e2->SetOfflineTrigger          ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
158   
159   oadbLHC10e2->AddCollisionTriggerClass   ( AliVEvent::kMUON,"+CMUS1B-ABCE-NOPF-MUON","B",1);
160   oadbLHC10e2->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1A-ABCE-NOPF-MUON","A",1);
161   oadbLHC10e2->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1C-ABCE-NOPF-MUON","C",1);
162   oadbLHC10e2->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1-E-NOPF-MUON","E",1);
163   oadbLHC10e2->SetHardwareTrigger         ( 1,"SPDGFO >= 1 || V0A || V0C");                                         
164   oadbLHC10e2->SetOfflineTrigger          ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
165     
166   oadbContPS->AppendObject(oadbLHC10e2, 127719,127730);
167   
168   // LHC10e3 +LHC10f +LHC10g
169   AliOADBPhysicsSelection * oadbLHC10e3_10f_10g = new AliOADBPhysicsSelection("oadbLHC10e3_10f_10g");
170   oadbLHC10e3_10f_10g->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B",0);
171   oadbLHC10e3_10f_10g->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC",0);
172   oadbLHC10e3_10f_10g->AddBGTriggerClass          ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E",0);  
173   oadbLHC10e3_10f_10g->SetHardwareTrigger         ( 0,"SPDGFO >= 1 || V0A || V0C");
174   oadbLHC10e3_10f_10g->SetOfflineTrigger          ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
175   
176   oadbLHC10e3_10f_10g->AddCollisionTriggerClass   ( AliVEvent::kMUON,"+CMUS1-B-NOPF-ALLNOTRD","B",1);
177   oadbLHC10e3_10f_10g->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-ALLNOTRD","AC",1);
178   oadbLHC10e3_10f_10g->AddBGTriggerClass          ( AliVEvent::kMUON,"+CMUS1-E-NOPF-ALLNOTRD","E",1);
179   oadbLHC10e3_10f_10g->SetHardwareTrigger         ( 1,"SPDGFO >= 1 || V0A || V0C");                                         
180   oadbLHC10e3_10f_10g->SetOfflineTrigger          ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
181     
182   oadbLHC10e3_10f_10g->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+CSH1-B-NOPF-ALLNOTRD","B",2);
183   oadbLHC10e3_10f_10g->AddBGTriggerClass          ( AliVEvent::kHighMult,"+CSH1-AC-NOPF-ALLNOTRD","AC",2);
184   oadbLHC10e3_10f_10g->AddBGTriggerClass          ( AliVEvent::kHighMult,"+CSH1-E-NOPF-ALLNOTRD","E",2);
185   oadbLHC10e3_10f_10g->SetHardwareTrigger         ( 2,"SPDGFO >= 1 || V0A || V0C");                      
186   oadbLHC10e3_10f_10g->SetOfflineTrigger          ( 2,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG");
187     
188   oadbContPS->AppendObject(oadbLHC10e3_10f_10g, 127813,136376);
189
190   // filling schemes
191
192   AliOADBFillingScheme * fs4by4a = new AliOADBFillingScheme("4x4a");
193   fs4by4a->SetFillingSchemeName("4x4a");
194   fs4by4a->SetBXIDs("B"," #2128 #3019");
195   fs4by4a->SetBXIDs("A"," #346 #3465" ); 
196   fs4by4a->SetBXIDs("AC",""); 
197   fs4by4a->SetBXIDs("C"," #1234 #1680");
198   fs4by4a->SetBXIDs("E"," #790");          
199   oadbContFillingScheme->AppendObject(fs4by4a, 104065, 104160);
200
201   AliOADBFillingScheme * fs4by4astar = new AliOADBFillingScheme("4x4a*");
202   fs4by4astar->SetFillingSchemeName("4x4a*");
203   fs4by4astar->SetBXIDs("B"," #2000 #2891");
204   fs4by4astar->SetBXIDs("A"," #218 #3337" ); 
205   fs4by4astar->SetBXIDs("AC",""); 
206   fs4by4astar->SetBXIDs("C"," #1106 #1552");
207   fs4by4astar->SetBXIDs("E"," #790");      
208   oadbContFillingScheme->AppendObject(fs4by4astar, 104315, 104321);
209
210   AliOADBFillingScheme * fs4by4b = new AliOADBFillingScheme("4x4b");
211   fs4by4b->SetFillingSchemeName("4x4b");
212   fs4by4b->SetBXIDs("B"," #2228 #3119");
213   fs4by4b->SetBXIDs("A"," #2554 #446" ); 
214   fs4by4b->SetBXIDs("AC",""); 
215   fs4by4b->SetBXIDs("C"," #1334 #769");
216   fs4by4b->SetBXIDs("E"," #790");          
217   oadbContFillingScheme->AppendObject(fs4by4b, 104792, 104803);
218
219   AliOADBFillingScheme * fs4by4c = new AliOADBFillingScheme("4x4c");
220   fs4by4c->SetFillingSchemeName("4x4c");
221   fs4by4c->SetBXIDs("B"," #3119 #769");
222   fs4by4c->SetBXIDs("A"," #2554 #446" ); 
223   fs4by4c->SetBXIDs("AC"," "); 
224   fs4by4c->SetBXIDs("C"," #1334 #2228");
225   fs4by4c->SetBXIDs("E"," #790");          
226   oadbContFillingScheme->AppendObject(fs4by4c, 104824, 104892);
227
228   AliOADBFillingScheme * fs16by16a = new AliOADBFillingScheme("16x16a");
229   fs16by16a->SetFillingSchemeName("16x16a");
230   fs16by16a->SetBXIDs("B"," #1337 #1418 #2228 #2309 #3119 #3200 #446 #527");
231   fs16by16a->SetBXIDs("A"," #1580  #1742  #1904  #2066  #2630  #2792  #2954  #3362" ); 
232   fs16by16a->SetBXIDs("AC",""); 
233   fs16by16a->SetBXIDs("C"," #845  #1007  #1169   #1577 #3359 #3521 #119  #281");
234   fs16by16a->SetBXIDs("E"," #790");        
235   oadbContFillingScheme->AppendObject(fs16by16a, 105143, 105160);
236
237   oadbContFillingScheme->AppendObject(fs4by4c->Clone(), 105256, 105268);
238
239   AliOADBFillingScheme * fsSingle_2b_1_1_1 = new AliOADBFillingScheme("Single_2b_1_1_1");
240   fsSingle_2b_1_1_1->SetFillingSchemeName("Single_2b_1_1_1");
241   fsSingle_2b_1_1_1->SetBXIDs("B"," #346");
242   fsSingle_2b_1_1_1->SetBXIDs("A"," #2131" ); 
243   fsSingle_2b_1_1_1->SetBXIDs("AC",""); 
244   fsSingle_2b_1_1_1->SetBXIDs("C"," #3019");
245   fsSingle_2b_1_1_1->SetBXIDs("E"," #1238");       
246   oadbContFillingScheme->AppendObject(fsSingle_2b_1_1_1, 114786, 116684);
247
248   AliOADBFillingScheme * fsSingle_3b_2_2_2 = new AliOADBFillingScheme("Single_3b_2_2_2");
249   fsSingle_3b_2_2_2->SetFillingSchemeName("Single_3b_2_2_2");
250   fsSingle_3b_2_2_2->SetBXIDs("B","   #346  #1240");
251   fsSingle_3b_2_2_2->SetBXIDs("A","  #2131" ); 
252   fsSingle_3b_2_2_2->SetBXIDs("AC",""); 
253   fsSingle_3b_2_2_2->SetBXIDs("C"," #3019 ");
254   fsSingle_3b_2_2_2->SetBXIDs("E"," #1238");       
255   oadbContFillingScheme->AppendObject(fsSingle_3b_2_2_2, 117048, 117120);
256
257
258   oadbContFillingScheme->AppendObject(fsSingle_2b_1_1_1, 117220, 118555);
259
260   AliOADBFillingScheme * fsSingle_2b_1_1_1_mis = new AliOADBFillingScheme("Single_2b_1_1_1 - 1 misaligned bx");
261   fsSingle_2b_1_1_1_mis->SetFillingSchemeName("Single_2b_1_1_1 - 1 misaligned BX");
262   fsSingle_2b_1_1_1_mis->SetBXIDs("B"," #345");
263   fsSingle_2b_1_1_1_mis->SetBXIDs("A"," #2130" ); 
264   fsSingle_2b_1_1_1_mis->SetBXIDs("AC",""); 
265   fsSingle_2b_1_1_1_mis->SetBXIDs("C"," #3018");
266   fsSingle_2b_1_1_1_mis->SetBXIDs("E"," #1238");           
267   oadbContFillingScheme->AppendObject(fsSingle_2b_1_1_1_mis, 118556, 118783);
268
269   oadbContFillingScheme->AppendObject(fsSingle_2b_1_1_1->Clone(), 118784, 119163);
270
271   AliOADBFillingScheme * fsSingle_4b_2_2_2 = new AliOADBFillingScheme("Single_4b_2_2_2");
272   fsSingle_4b_2_2_2->SetFillingSchemeName("Single_4b_2_2_2");
273   fsSingle_4b_2_2_2->SetBXIDs("B","   #669  #3019 ");
274   fsSingle_4b_2_2_2->SetBXIDs("A","  #346  #2454 " ); 
275   fsSingle_4b_2_2_2->SetBXIDs("AC",""); 
276   fsSingle_4b_2_2_2->SetBXIDs("C","  #1234  #2128 ");
277   fsSingle_4b_2_2_2->SetBXIDs("E"," #1681 #3463");         
278   oadbContFillingScheme->AppendObject(fsSingle_4b_2_2_2, 119837, 119862);
279
280   AliOADBFillingScheme * fsSingle_6b_3_3_3 = new AliOADBFillingScheme("Single_6b_3_3_3");
281   fsSingle_6b_3_3_3->SetFillingSchemeName("Single_6b_3_3_3");
282   fsSingle_6b_3_3_3->SetBXIDs("B","   #346  #546  #746 ");
283   fsSingle_6b_3_3_3->SetBXIDs("A","  #2131  #2331  #2531 " ); 
284   fsSingle_6b_3_3_3->SetBXIDs("AC",""); 
285   fsSingle_6b_3_3_3->SetBXIDs("C"," #3019  #3219  #3419");
286   fsSingle_6b_3_3_3->SetBXIDs("E"," #1296 #1670");         
287   oadbContFillingScheme->AppendObject(fsSingle_6b_3_3_3, 119902, 120691);
288
289   AliOADBFillingScheme * fsSingle_13b_8_8_8 = new AliOADBFillingScheme("Single_13b_8_8_8");
290   fsSingle_13b_8_8_8->SetFillingSchemeName("Single_13b_8_8_8");
291   fsSingle_13b_8_8_8->SetBXIDs("B","  #346  #446  #546  #646  #1240  #1340  #1440  #1540");
292   fsSingle_13b_8_8_8->SetBXIDs("A","  #946  #2131  #2231  #2331  #2431 " ); 
293   fsSingle_13b_8_8_8->SetBXIDs("AC",""); 
294   fsSingle_13b_8_8_8->SetBXIDs("C"," #3019  #3119  #3219  #3319  #3519 ");
295   fsSingle_13b_8_8_8->SetBXIDs("E"," #1835 #2726");        
296   oadbContFillingScheme->AppendObject(fsSingle_13b_8_8_8, 120741, 122375);
297
298   AliOADBFillingScheme * fs125n_48b_36_16_36 = new AliOADBFillingScheme("125n_48b_36_16_36");
299   fs125n_48b_36_16_36->SetFillingSchemeName("125n_48b_36_16_36");
300   fs125n_48b_36_16_36->SetBXIDs("B","   #346  #396  #446  #496  #546  #596  #646  #696  #1240  #1290  #1340  #1390  #1440  #1490  #1540  #1590 ");
301   fs125n_48b_36_16_36->SetBXIDs("A"," #755  #805  #855  #905  #955  #1005  #1799  #1849  #1899  #2131  #2181  #2231  #2281  #2331  #2381  #2431  #2481  #2531  #2581  #2631  #2846  #3016  #3066  #3116  #3166  #3216  #3266  #3316  #3366  #3425  #3475  #3525 " ); 
302   fs125n_48b_36_16_36->SetBXIDs("AC",""); 
303   fs125n_48b_36_16_36->SetBXIDs("C","  #3019  #3069  #3119  #3169  #3219  #3269  #3319  #3369  #14  #64  #114  #746  #796  #846  #908  #958  #1008  #1640  #1690  #1740  #2055  #2125  #2175  #2225  #2275  #2325  #2375  #2425  #2475  #2534  #2584  #2634 ");
304   fs125n_48b_36_16_36->SetBXIDs("E","");           
305   oadbContFillingScheme->AppendObject(fs125n_48b_36_16_36, 130148, 130375);
306
307   AliOADBFillingScheme * fs1000ns_50b_35_14_35 = new AliOADBFillingScheme("1000ns_50b_35_14_35");
308   fs1000ns_50b_35_14_35->SetFillingSchemeName("1000ns_50b_35_14_35");
309   fs1000ns_50b_35_14_35->SetBXIDs("B","  #346  #386  #426  #466  #506  #546  #586  #1240  #1280  #1320  #1360  #1400  #1440  #1480 ");
310   fs1000ns_50b_35_14_35->SetBXIDs("A","  #626  #666  #706  #746  #786  #826  #866  #1520  #1560  #1600  #1640  #1680  #1720  #1760  #2076  #2131  #2171  #2211  #2251  #2291  #2331  #2371  #2414  #2454  #2494  #2534  #2574  #2614  #2654  #2694  #2734  #2774  #2814 " ); //#2854  #2894  #2934 not present in this run
311   fs1000ns_50b_35_14_35->SetBXIDs("AC",""); 
312   fs1000ns_50b_35_14_35->SetBXIDs("C"," #3019  #3059  #3099  #3139  #3179  #3219  #3259  #3299  #3339  #3379  #3419  #3459  #3499  #3539  #115  #629  #669  #709  #749  #789  #829  #869  #909  #949  #989  #1029  #1069  #1109  #1149  #1523  #1563  #1603  #1643 "); //#1683  #1723  #1763 not present in this run
313   fs1000ns_50b_35_14_35->SetBXIDs("E","");         
314   oadbContFillingScheme->AppendObject(fs1000ns_50b_35_14_35, 130601, 130640);
315
316
317
318   // ----- Heavy Ion -------
319
320   // LHC10h1
321   AliOADBPhysicsSelection * oadbLHC10h1 = new AliOADBPhysicsSelection("oadbLHC10h1");
322   oadbLHC10h1->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",0);
323   oadbLHC10h1->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",0);
324   oadbLHC10h1->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",0);  
325   oadbLHC10h1->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",0);  
326   oadbLHC10h1->SetHardwareTrigger         ( 0,"V0A && V0C");
327   oadbLHC10h1->SetOfflineTrigger          ( 0,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
328   
329   oadbLHC10h1->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBS2A-B-NOPF-ALL","B",1);
330   oadbLHC10h1->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2A-A-NOPF-ALL","A",1);
331   oadbLHC10h1->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2A-C-NOPF-ALL","C",1);  
332   oadbLHC10h1->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2A-E-NOPF-ALL","E",1);  
333   oadbLHC10h1->SetHardwareTrigger         ( 1,"SPDGFOL1 > 1 && V0A");
334   oadbLHC10h1->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
335
336   oadbLHC10h1->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBS2C-B-NOPF-ALL","B",2);
337   oadbLHC10h1->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2C-A-NOPF-ALL","A",2);
338   oadbLHC10h1->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2C-C-NOPF-ALL","C",2);  
339   oadbLHC10h1->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2C-E-NOPF-ALL","E",2);  
340   oadbLHC10h1->SetHardwareTrigger         ( 2,"SPDGFOL1 > 1 && V0C");
341   oadbLHC10h1->SetOfflineTrigger          ( 2,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
342     
343   oadbContPS->AppendObject(oadbLHC10h1, 136851,136879);
344
345   // LHC10h2
346   AliOADBPhysicsSelection * oadbLHC10h2 = new AliOADBPhysicsSelection("oadbLHC10h2");
347   oadbLHC10h2->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
348   oadbLHC10h2->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
349   oadbLHC10h2->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
350   oadbLHC10h2->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);  
351   oadbLHC10h2->SetHardwareTrigger         ( 0,"SPDGFO >= 100");
352   oadbLHC10h2->SetOfflineTrigger          ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && ZDCTime");
353   
354   oadbLHC10h2->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
355   oadbLHC10h2->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
356   oadbLHC10h2->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
357   oadbLHC10h2->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
358   oadbLHC10h2->SetHardwareTrigger         ( 1,"V0A && V0C");
359   oadbLHC10h2->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
360  
361   oadbContPS->AppendObject(oadbLHC10h2, 137042,137133);
362
363   // LHC10h3
364   AliOADBPhysicsSelection * oadbLHC10h3 = new AliOADBPhysicsSelection("oadbLHC10h3");
365   oadbLHC10h3->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
366   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
367   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
368   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);  
369   oadbLHC10h3->SetHardwareTrigger         ( 0,"SPDGFO >= 100");
370   oadbLHC10h3->SetOfflineTrigger          ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && ZDCTime");
371   
372   oadbLHC10h3->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
373   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
374   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
375   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
376   oadbLHC10h3->SetHardwareTrigger         ( 1,"V0A && V0C");
377   oadbLHC10h3->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
378     
379   oadbLHC10h3->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBS2A-B-NOPF-ALL","B",2);
380   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2A-A-NOPF-ALL","A",2);
381   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2A-C-NOPF-ALL","C",2);
382   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2A-E-NOPF-ALL","E",2);
383   oadbLHC10h3->SetHardwareTrigger         ( 2,"SPDGFOL1 > 1 && V0A");
384   oadbLHC10h3->SetOfflineTrigger          ( 2,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
385
386   oadbLHC10h3->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBS2C-B-NOPF-ALL","B",3);
387   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2C-A-NOPF-ALL","A",3);
388   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2C-C-NOPF-ALL","C",3);
389   oadbLHC10h3->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2C-E-NOPF-ALL","E",3);
390   oadbLHC10h3->SetHardwareTrigger         ( 3,"SPDGFOL1 > 1 && V0C");
391   oadbLHC10h3->SetOfflineTrigger          ( 3,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
392
393   oadbContPS->AppendObject(oadbLHC10h3, 137135,137364);
394
395  // LHC10h, run 137365
396   AliOADBPhysicsSelection * oadbLHC10h_137365 = new AliOADBPhysicsSelection("oadbLHC10h_x9");
397   oadbLHC10h_137365->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",0);
398   oadbLHC10h_137365->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",0);
399   oadbLHC10h_137365->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",0);
400   oadbLHC10h_137365->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",0);
401   oadbLHC10h_137365->SetHardwareTrigger         ( 0,"V0A && V0C");
402   oadbLHC10h_137365->SetOfflineTrigger          ( 0,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
403
404   oadbContPS->AppendObject(oadbLHC10h_137365, 137365,137365);
405
406   AliOADBPhysicsSelection * oadbLHC10h4 = new AliOADBPhysicsSelection("oadbLHC10h4");
407   oadbLHC10h4->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
408   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
409   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
410   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);  
411   oadbLHC10h4->SetHardwareTrigger         ( 0,"SPDGFO >= 100");
412   oadbLHC10h4->SetOfflineTrigger          ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && ZDCTime");
413   
414   oadbLHC10h4->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
415   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
416   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
417   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
418   oadbLHC10h4->SetHardwareTrigger         ( 1,"V0A && V0C");
419   oadbLHC10h4->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
420     
421   oadbLHC10h4->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBS2A-B-NOPF-ALL","B",2);
422   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2A-A-NOPF-ALL","A",2);
423   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2A-C-NOPF-ALL","C",2);
424   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2A-E-NOPF-ALL","E",2);
425   oadbLHC10h4->SetHardwareTrigger         ( 2,"SPDGFOL1 > 1 && V0A");
426   oadbLHC10h4->SetOfflineTrigger          ( 2,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
427
428   oadbLHC10h4->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBS2C-B-NOPF-ALL","B",3);
429   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2C-A-NOPF-ALL","A",3);
430   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2C-C-NOPF-ALL","C",3);
431   oadbLHC10h4->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBS2C-E-NOPF-ALL","E",3);
432   oadbLHC10h4->SetHardwareTrigger         ( 3,"SPDGFOL1 > 1 && V0C");
433   oadbLHC10h4->SetOfflineTrigger          ( 3,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
434
435   oadbContPS->AppendObject(oadbLHC10h4, 137366,137595);
436
437
438
439   // LHC10h5
440   AliOADBPhysicsSelection * oadbLHC10h5 = new AliOADBPhysicsSelection("oadbLHC10h5");
441   oadbLHC10h5->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
442   oadbLHC10h5->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
443   oadbLHC10h5->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
444   oadbLHC10h5->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);  
445   oadbLHC10h5->SetHardwareTrigger         ( 0,"SPDGFO >= 100");
446   oadbLHC10h5->SetOfflineTrigger          ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && ZDCTime");
447   
448   oadbLHC10h5->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
449   oadbLHC10h5->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
450   oadbLHC10h5->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
451   oadbLHC10h5->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
452   oadbLHC10h5->SetHardwareTrigger         ( 1,"V0A && V0C");
453   oadbLHC10h5->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
454
455   oadbContPS->AppendObject(oadbLHC10h5, 137608,137848); // 138982,138983);
456
457   // LHC10h6
458   AliOADBPhysicsSelection * oadbLHC10h6 = new AliOADBPhysicsSelection("oadbLHC10h6");
459   oadbLHC10h6->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
460   oadbLHC10h6->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
461   oadbLHC10h6->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
462   oadbLHC10h6->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);  
463   oadbLHC10h6->SetHardwareTrigger         ( 0,"SPDGFO >= 100");
464   oadbLHC10h6->SetOfflineTrigger          ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && ZDCTime");
465   
466   oadbLHC10h6->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBACS2-B-NOPF-ALL","B",1);
467   oadbLHC10h6->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-A-NOPF-ALL","A",1);
468   oadbLHC10h6->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-C-NOPF-ALL","C",1);
469   oadbLHC10h6->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-E-NOPF-ALL","E",1);
470   oadbLHC10h6->SetHardwareTrigger         ( 1,"(V0A && V0C && SPDGFOL1 > 1)");
471   oadbLHC10h6->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
472
473   oadbContPS->AppendObject(oadbLHC10h6, 138125,138980);// 139028, 139316);
474
475
476   AliOADBPhysicsSelection * oadbLHC10h7 = new AliOADBPhysicsSelection("oadbLHC10h7");
477   oadbLHC10h7->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
478   oadbLHC10h7->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
479   oadbLHC10h7->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
480   oadbLHC10h7->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);  
481   oadbLHC10h7->SetHardwareTrigger         ( 0,"SPDGFO >= 100");
482   oadbLHC10h7->SetOfflineTrigger          ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && ZDCTime");
483   
484   oadbLHC10h7->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
485   oadbLHC10h7->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
486   oadbLHC10h7->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
487   oadbLHC10h7->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
488   oadbLHC10h7->SetHardwareTrigger         ( 1,"(V0A && V0C)");
489   oadbLHC10h7->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
490
491
492   oadbContPS->AppendObject(oadbLHC10h7, 138982,138983);
493
494
495   // LHC10h8
496   AliOADBPhysicsSelection * oadbLHC10h8 = new AliOADBPhysicsSelection("oadbLHC10h8");
497   oadbLHC10h8->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
498   oadbLHC10h8->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
499   oadbLHC10h8->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
500   oadbLHC10h8->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);  
501   oadbLHC10h8->SetHardwareTrigger         ( 0,"SPDGFO >= 100");
502   oadbLHC10h8->SetOfflineTrigger          ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && ZDCTime");
503   
504   oadbLHC10h8->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBACS2-B-NOPF-ALL","B",1);
505   oadbLHC10h8->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-A-NOPF-ALL","A",1);
506   oadbLHC10h8->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-C-NOPF-ALL","C",1);
507   oadbLHC10h8->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-E-NOPF-ALL","E",1);
508   oadbLHC10h8->SetHardwareTrigger         ( 1,"(V0A && V0C && SPDGFOL1 > 1)");
509   oadbLHC10h8->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
510
511   oadbContPS->AppendObject(oadbLHC10h8,  139028, 139316);
512
513
514   // LHC10h9
515   AliOADBPhysicsSelection * oadbLHC10h9 = new AliOADBPhysicsSelection("oadbLHC10h9");
516   oadbLHC10h9->AddCollisionTriggerClass   ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALLNOTRD","B",0);
517   oadbLHC10h9->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALLNOTRD","A",0);
518   oadbLHC10h9->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALLNOTRD","C",0);
519   oadbLHC10h9->AddBGTriggerClass          ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALLNOTRD","E",0);  
520   oadbLHC10h9->SetHardwareTrigger         ( 0,"SPDGFO >= 100");
521   oadbLHC10h9->SetOfflineTrigger          ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && ZDCTime");
522   
523   oadbLHC10h9->AddCollisionTriggerClass   ( AliVEvent::kMB,"+CMBACS2-B-NOPF-ALLNOTRD","B",1);
524   oadbLHC10h9->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-A-NOPF-ALLNOTRD","A",1);
525   oadbLHC10h9->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-C-NOPF-ALLNOTRD","C",1);
526   oadbLHC10h9->AddBGTriggerClass          ( AliVEvent::kMB,"+CMBACS2-E-NOPF-ALLNOTRD","E",1);
527   oadbLHC10h9->SetHardwareTrigger         ( 1,"(V0A && V0C && SPDGFOL1 > 1)");
528   oadbLHC10h9->SetOfflineTrigger          ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && ZDCTime");
529
530   oadbContPS->AppendObject(oadbLHC10h9, 139328,139517);
531
532
533   // ----- 2011 -----
534   // ----- proton-proton -----
535
536
537   oadbContPS->WriteToFile(oadbfilename.Data());
538   oadbContFillingScheme->WriteToFile(oadbfilename.Data());
539
540   TFile * fopen = new TFile (oadbfilename); 
541   new TBrowser;
542
543 }