]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/macros/BrowseAndFillPhysicsSelectionOADB.C
Updates pA (Alexander)
[u/mrichter/AliRoot.git] / ANALYSIS / macros / BrowseAndFillPhysicsSelectionOADB.C
CommitLineData
b2b7f4bd 1#if !defined(__CINT__) || defined(__MAKECINT__)
2#include <Riostream.h>
3
4// ROOT includes
5#include "TFile.h"
6#include "TString.h"
7#include "TSystem.h"
8#include "TBrowser.h"
9#include "TH2.h"
10#include "TCanvas.h"
11
12// STEER includes
13#include "AliVEvent.h"
14
15// ANALYSIS include
16#include "AliAnalysisManager.h"
17
18// OADB includes
19#include "AliOADBContainer.h"
20#include "AliOADBTriggerAnalysis.h"
21#include "AliOADBPhysicsSelection.h"
22#include "AliOADBFillingScheme.h"
23#endif
24
25
7c55ebd9 26void BrowseAndFillPhysicsSelectionOADB(Bool_t fill = kFALSE) {
27
28 // Load stuff
29 gSystem->Load("libCore.so");
30 gSystem->Load("libTree.so");
31 gSystem->Load("libGeom.so");
32 gSystem->Load("libVMC.so");
33 gSystem->Load("libPhysics.so");
fac27e91 34 gSystem->Load("libMinuit");
7c55ebd9 35 gSystem->Load("libSTEERBase");
36 gSystem->Load("libESD");
37 gSystem->Load("libAOD");
38 gSystem->Load("libANALYSIS");
39 gSystem->Load("libANALYSISalice");
40 gSystem->Load("libOADB");
41
42
43
44 TString oadbfilename(Form("%s/COMMON/PHYSICSSELECTION/data/physicsSelection.root", AliAnalysisManager::GetOADBPath()));
45 if (!fill) {
46 TFile * f = new TFile(oadbfilename);
47 new TBrowser();
48 return;
49 }
50
51
52 AliOADBContainer * oadbContPS = new AliOADBContainer("physSel");
53 AliOADBContainer * oadbContFillingScheme = new AliOADBContainer("fillScheme");
eeaab745 54 AliOADBContainer * oadbContTriggerAnalysis = new AliOADBContainer("trigAnalysis");
7c55ebd9 55
56 // Defaults
57 AliOADBFillingScheme * fsDefault = new AliOADBFillingScheme("Default");
58 fsDefault->SetFillingSchemeName("Default");
59 fsDefault->SetBXIDs("B","");
60 fsDefault->SetBXIDs("A","" );
61 fsDefault->SetBXIDs("AC","" );
a35f543c 62 fsDefault->SetBXIDs("ACE","" );
7c55ebd9 63 fsDefault->SetBXIDs("C","");
64 fsDefault->SetBXIDs("E","" );
65 oadbContFillingScheme->AddDefaultObject(fsDefault);
66
67 // DefaultPP
b0801932 68 // TODO: this is also used for pA at the moment. Do we need a separate category?
a35f543c 69 Int_t triggerCount = 0;
7c55ebd9 70 AliOADBPhysicsSelection * oadbDefaultPP = new AliOADBPhysicsSelection("oadbDefaultPP");
8d5a14d6 71 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kINT7,"+CINT7-[I|B|S]-NOPF-ALLNOTRD,CINT7-[B|S]-NOPF-CENTNOTRD","B",triggerCount);
a35f543c 72 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-AC-NOPF-ALLNOTRD","AC", triggerCount);
73 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-E-NOPF-ALLNOTRD","E", triggerCount);
74 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
8d5a14d6 75 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kINT7 | AliVEvent::kFastOnly,"+CINT7-[I|B|S]-NOPF-FASTNOTRD -CINT7-[I|B|S]-NOPF-ALLNOTRD,CINT7-B-NOPF-CENTNOTRD","B",triggerCount);
a35f543c 76 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kINT7 | AliVEvent::kFastOnly,"+CINT7-AC-NOPF-FASTNOTRD -CINT7-AC-NOPF-ALLNOTRD","AC", triggerCount);
77 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kINT7 | AliVEvent::kFastOnly,"+CINT7-E-NOPF-FASTNOTRD -CINT7-E-NOPF-ALLNOTRD","E", triggerCount);
78 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kINT7 | AliVEvent::kFastOnly,"+CINT7-ACE-NOPF-FASTNOTRD -CINT7-ACE-NOPF-ALLNOTRD","ACE", triggerCount);
79 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"V0A && V0C");
80 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
8d5a14d6 81
82 triggerCount++;
83 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kINT8,"+CINT8-S-NOPF-ALLNOTRD,CINT8-B-NOPF-CENTNOTRD","B",triggerCount);
84 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kINT8,"+CINT8-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
85 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"T0");
86 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"!T0BG && !T0Pileup && !TPCLaserWarmUp");
a35f543c 87
88 triggerCount++;
8d5a14d6 89 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1-[B|S]-NOPF-ALLNOTRD","B", triggerCount);
a35f543c 90 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC", triggerCount);
91 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E", triggerCount);
92 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
8d5a14d6 93 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMB | AliVEvent::kFastOnly,"+CINT1-[B|S]-NOPF-FASTNOTRD -CINT1-[B|S]-NOPF-ALLNOTRD","B", triggerCount);
a35f543c 94 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMB | AliVEvent::kFastOnly,"+CINT1-AC-NOPF-FASTNOTRD -CINT1-AC-NOPF-ALLNOTRD","AC", triggerCount);
95 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMB | AliVEvent::kFastOnly,"+CINT1-E-NOPF-FASTNOTRD -CINT1-E-NOPF-ALLNOTRD","E", triggerCount);
96 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMB | AliVEvent::kFastOnly,"+CINT1-ACE-NOPF-FASTNOTRD -CINT1-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
97 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"SPDGFO >= 1 || V0A || V0C");
98 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
99
100 triggerCount++;
8d5a14d6 101 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMUSH7,"+CMSH7-[B|S]-NOPF-MUON","B", triggerCount);
a35f543c 102 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMUSH7,"+CMSH7-ACE-NOPF-MUON","ACE",triggerCount);
103 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"V0A && V0C");
104 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
105
106 triggerCount++;
c38a56cf 107 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMUS7,"+CMSL7-[B|S|SC]-NOPF-MUON","B", triggerCount);
a35f543c 108 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMUS7,"+CMSL7-ACE-NOPF-MUON","ACE",triggerCount);
109 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"V0A && V0C");
110 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
111
112 triggerCount++;
8d5a14d6 113 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMUL7,"+CMLL7-[B|S]-NOPF-MUON","B", triggerCount);
a35f543c 114 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMUL7,"+CMLL7-ACE-NOPF-MUON","ACE",triggerCount);
115 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"V0A && V0C");
116 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
117
118 triggerCount++;
8d5a14d6 119 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMUU7,"+CMUL7-[B|S]-NOPF-ALLNOTRD,CMUL7-[B|S]-NOPF-MUON","B", triggerCount);
120 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMUU7,"+CMUL7-ACE-NOPF-ALLNOTRD,CMUL7-ACE-NOPF-MUON","ACE",triggerCount);
a35f543c 121 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"V0A && V0C");
122 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
8d5a14d6 123
124 triggerCount++;
125 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMuonSingleHighPt8,"+CMSH8-S-NOPF-MUON","B", triggerCount);
126 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMuonSingleHighPt8,"+CMSH8-ACE-NOPF-MUON","ACE",triggerCount);
127 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"T0");
128 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"!T0BG && !T0Pileup && !TPCLaserWarmUp");
129
130 triggerCount++;
131 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMuonSingleLowPt8,"+CMSL8-S-NOPF-MUON","B", triggerCount);
132 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMuonSingleLowPt8,"+CMSL8-ACE-NOPF-MUON","ACE",triggerCount);
133 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"T0");
134 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"!T0BG && !T0Pileup && !TPCLaserWarmUp");
135
136 triggerCount++;
137 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMuonLikeLowPt8,"+CMLL8-S-NOPF-MUON","B", triggerCount);
138 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMuonLikeLowPt8,"+CMLL8-ACE-NOPF-MUON","ACE",triggerCount);
139 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"T0");
140 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"!T0BG && !T0Pileup && !TPCLaserWarmUp");
141
142 triggerCount++;
143 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kMuonUnlikeLowPt8,"+CMUL8-S-NOPF-ALLNOTRD,CMUL8-[B|S]-NOPF-MUON","B", triggerCount);
144 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kMuonUnlikeLowPt8,"+CMUL8-ACE-NOPF-ALLNOTRD,CMUL8-ACE-NOPF-MUON","ACE",triggerCount);
145 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"T0");
146 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"!T0BG && !T0Pileup && !TPCLaserWarmUp");
c38a56cf 147
a35f543c 148 triggerCount++;
8d5a14d6 149 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kEMC7,"+CEMC7-[B|S]-NOPF-ALLNOTRD,CEMC7-B-NOPF-CENTNOTRD","B", triggerCount);
a35f543c 150 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
151 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"V0A && V0C");
152 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
153
c38a56cf 154 triggerCount++;
80ed229e 155 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kEMC8,"+CEMC8-S-NOPF-ALLNOTRD,CEMC8-B-NOPF-CENTNOTRD","B", triggerCount);
c38a56cf 156 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kEMC8,"+CEMC8-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
157 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"T0");
158 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"!T0BG && !T0Pileup && !TPCLaserWarmUp");
159
a35f543c 160 triggerCount++;
8d5a14d6 161 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kPHI7,"+CPHI7-[I|B|S]-NOPF-ALLNOTRD,CPHI7-B-NOPF-CENTNOTRD","B",triggerCount);
a35f543c 162 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kPHI7,"+CPHI7-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
163 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"V0A && V0C");
164 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
165
c38a56cf 166 triggerCount++;
167 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kPHI8,"+CPHI8-S-NOPF-ALLNOTRD,CPHI7-B-NOPF-CENTNOTRD","B",triggerCount);
168 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kPHI8,"+CPHI8-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
169 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"T0");
170 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"!T0BG && !T0Pileup && !TPCLaserWarmUp");
171
a35f543c 172 triggerCount++;
8d5a14d6 173 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kDG5,"+CDG5-[I|B|S]-NOPF-ALLNOTRD","B",triggerCount);
a35f543c 174 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kDG5,"+CDG5-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
4e3a6556 175 // TODO TOF condition needs to be implemented (Savannah bug #87064)
a35f543c 176 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"!V0A && !V0C && SPDGFOL1 >= 2");
177 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"!V0A && !V0C && !V0ABG && !V0CBG && SPDGFOL1 >= 2 && !TPCLaserWarmUp");
178
8d5a14d6 179 /*
a35f543c 180 triggerCount++;
8d5a14d6 181 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kZED,"+C1ZED-[B|S]-NOPF-CENTNOTRD", "B", triggerCount);
a35f543c 182 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kZED,"+C1ZED-AC-NOPF-CENTNOTRD","AC", triggerCount);
183 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kZED,"+C1ZED-E-NOPF-CENTNOTRD", "E", triggerCount);
184 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kZED,"+C1ZED-ACE-NOPF-CENTNOTRD","ACE",triggerCount);
75f8ad6b 185 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"1");
8d5a14d6 186 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(ZDCTDCA || ZDCTDCC) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
187*/
188
a35f543c 189 triggerCount++;
8d5a14d6 190 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+CSHM7-[B|S]-NOPF-ALLNOTRD","B", triggerCount);
a35f543c 191 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSHM7-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
192 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"SPDGFOL1 >= 100 && (V0A && V0C)");
8d5a14d6 193 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(SPDGFOL1 >= 100 && V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
a35f543c 194
c38a56cf 195 triggerCount++;
196 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+CSHM8-S-NOPF-ALLNOTRD","B", triggerCount);
197 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSHM8-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
198 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"(SPDGFOL1 >= 120) && T0");
199 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(SPDGFOL1 >= 120) && !T0BG && !T0Pileup && !TPCLaserWarmUp");
200
201
a35f543c 202 triggerCount++;
8d5a14d6 203 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kEMCEJE,"+CEMC7EJE-[B|S]-NOPF-CENTNOTRD,CEMC7EJE-[B|S]-NOPF-ALLNOTRD","B", triggerCount);
204 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kEMCEJE,"+CEMC7EJE-ACE-NOPF-CENTNOTRD,CEMC7EJE-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
a35f543c 205 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"V0A && V0C");
206 // TODO EMC offline check missing, https://savannah.cern.ch/bugs/index.php?87104
207 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp");
208
209 triggerCount++;
8d5a14d6 210 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kEMCEGA,"+CEMC7EGA-[B|S]-NOPF-CENTNOTRD,CEMC7EGA-[B|S]-NOPF-ALLNOTRD","B", triggerCount);
211 oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kEMCEGA,"+CEMC7EGA-ACE-NOPF-CENTNOTRD,CEMC7EGA-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
a35f543c 212 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"V0A && V0C");
213 // TODO EMC offline check missing, https://savannah.cern.ch/bugs/index.php?87104
214 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp");
4e3a6556 215
a35f543c 216 triggerCount++;
8d5a14d6 217 oadbDefaultPP->AddCollisionTriggerClass ( AliVEvent::kSPI7,"+CSPI7-[B|S]-NOPF-ALLNOTRD","B", triggerCount);
218 // oadbDefaultPP->AddBGTriggerClass ( AliVEvent::kSPI7,"CSPI7-ACE-NOPF-ALLNOTRD","ACE", triggerCount);
a35f543c 219 oadbDefaultPP->SetHardwareTrigger ( triggerCount,"SPDGFOL1 >= 10 && (V0A && V0C)");
8d5a14d6 220 oadbDefaultPP->SetOfflineTrigger ( triggerCount,"(SPDGFOL1 >= 10 && V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
b0801932 221
7c55ebd9 222 oadbContPS->AddDefaultObject(oadbDefaultPP);
a35f543c 223 triggerCount = 0;
7c55ebd9 224
225 // DefaultPbPb
226 AliOADBPhysicsSelection * oadbDefaultPbPb = new AliOADBPhysicsSelection("oadbDefaultPbPb");
7c55ebd9 227
7a4eb25e 228 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kMB,"+CPBI1-B-NOPF-ALLNOTRD,CPBI2_B1-B-[NOPF|PF]-ALLNOTRD","B",triggerCount);
229 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kMB,"+CPBI[1|2_B1]-AC-NOPF-ALLNOTRD","AC",triggerCount);
230 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kMB,"+CPBI[1|2_B1]-E-NOPF-ALLNOTRD","E",triggerCount);
4e3a6556 231 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C");
c915635b 232 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
4e3a6556 233
234 triggerCount++;
c915635b 235 // Bug in early running, CVHN_R2-B-NOPF-ALLNOTRD needed explicitly up to run 167814 (to be moved to custom object as soon as all other things are fine)
7a4eb25e 236 // oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kCentral,"+CVHN-B-NOPF-ALLNOTRD,CVHN_R2-B-NOPF-ALLNOTRD,CVHN-B-NOPF-CENTNOTRD,CVHN-B-NOPF-CENTNOTRD,CVHN-B-PF-ALLNOTRD,CVHN-B-PF-CENTNOTRD","B",triggerCount);
713a4b5b 237 // oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kCentral,"+CVHN[|_R2]-B-[NOPF|PF]-[ALL|CENT]NOTRD","B",triggerCount);
238 // oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kCentral,"+CVHN-AC-NOPF-[ALL|CENT]NOTRD","AC",triggerCount);
239 // oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kCentral,"+CVHN-E-NOPF-[ALL|CENT]NOTRD","E",triggerCount);
240 // Also include the semicentral class in the online classes selection (in order not to loose event due to the different time sharing of central and semi-central)
990c95ec 241 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kCentral,"+CVHN[|_R2]-B-[NOPF|PF]-[ALL|CENT]NOTRD,CVLN[|_B2|_R1]-B-[NOPF|PF]-ALLNOTRD,CSEMI_R1-B-NOPF-ALLNOTRD,CCENT_R2-B-NOPF-ALLNOTRD","B",triggerCount);
dd2be4f9 242 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kCentral,"+CVHN-AC-NOPF-[ALL|CENT]NOTRD,CVLN-AC-NOPF-ALLNOTRD,CCENT_R2-AC-NOPF-ALLNOTRD","AC",triggerCount);
243 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kCentral,"+CVHN-E-NOPF-[ALL|CENT]NOTRD,CVLN-E-NOPF-ALLNOTRD,CCENT_R2-E-NOPF-ALLNOTRD","E",triggerCount);
4e3a6556 244 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C && Central");
c915635b 245 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
4e3a6556 246
247 triggerCount++;
248 // semicentral includes central ones (and might have different downscaling)
c915635b 249 // Bug in early running, CVHN_R2-B-NOPF-ALLNOTRD,CVLN_B2-B-NOPF-ALLNOTRD needed explicitly up to run 167814 (to be moved to custom object as soon as all other things are fine)
7a4eb25e 250// oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kSemiCentral,"+CVHN-B-NOPF-ALLNOTRD,CVHN_R2-B-NOPF-ALLNOTRD,CVHN-B-NOPF-CENTNOTRD,CVHN-B-PF-ALLNOTRD,CVHN-B-PF-CENTNOTRD,CVLN-B-NOPF-ALLNOTRD,CVLN_B2-B-NOPF-ALLNOTRD,CVLN-B-PF-ALLNOTRD","B",triggerCount);
010a58eb 251// oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kSemiCentral,"+CVHN[|_R2]-B-[NOPF|PF]-[ALL|CENT]NOTRD,CVLN[|_B2]-B-[NOPF|PF]-ALLNOTRD","B",triggerCount);
990c95ec 252 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kSemiCentral,"+CVHN[|_R2]-B-[NOPF|PF]-[ALL|CENT]NOTRD,CVLN[|_B2|_R1]-B-[NOPF|PF]-ALLNOTRD,CSEMI_R1-B-NOPF-ALLNOTRD,CCENT_R2-B-NOPF-ALLNOTRD","B",triggerCount);
dd2be4f9 253 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kSemiCentral,"+CVHN-AC-NOPF-[ALL|CENT]NOTRD,CVLN-AC-NOPF-ALLNOTRD,CSEMI_R1-AC-NOPF-ALLNOTRD","AC",triggerCount);
254 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kSemiCentral,"+CVHN-E-NOPF-[ALL|CENT]NOTRD,CVLN-E-NOPF-ALLNOTRD,CSEMI_R1-E-NOPF-ALLNOTRD","E",triggerCount);
4e3a6556 255 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C && SemiCentral && !Central");
c915635b 256 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
4e3a6556 257
258 triggerCount++;
259 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kEMCEJE,"+CPBI2EJE-B-NOPF-CENTNOTRD","B",triggerCount);
6c66bd13 260 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kEMCEJE,"+CPBI2EJE-ACE-NOPF-CENTNOTRD","ACE",triggerCount);
4e3a6556 261 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C");
262 // TODO EMC offline check missing, https://savannah.cern.ch/bugs/index.php?87104
c915635b 263 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
4e3a6556 264
265 triggerCount++;
266 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kEMCEGA,"+CPBI2EGA-B-NOPF-CENTNOTRD","B",triggerCount);
6c66bd13 267 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kEMCEGA,"+CPBI2EGA-ACE-NOPF-CENTNOTRD","ACE",triggerCount);
4e3a6556 268 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C");
269 // TODO EMC offline check missing, https://savannah.cern.ch/bugs/index.php?87104
c915635b 270 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
4e3a6556 271
272 triggerCount++;
273 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kMUSPB,"+CPBI1MSL-B-NOPF-MUON","B", triggerCount);
274 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kMUSPB,"+CPBI1MSL-ACE-NOPF-MUON","ACE",triggerCount);
275 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C");
c915635b 276 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
4e3a6556 277
278 triggerCount++;
279 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kMUSHPB,"+CPBI1MSH-B-NOPF-MUON","B", triggerCount);
280 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kMUSHPB,"+CPBI1MSH-ACE-NOPF-MUON","ACE",triggerCount);
281 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C");
c915635b 282 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
4e3a6556 283
284 triggerCount++;
285 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kMuonUnlikePB,"+CPBI1MUL-B-NOPF-MUON","B", triggerCount);
73002766 286 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kMuonUnlikePB,"+CPBI1MUL-ACE-NOPF-MUON","ACE",triggerCount);
4e3a6556 287 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C");
c915635b 288 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
4e3a6556 289
290 triggerCount++;
291 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kMuonLikePB,"+CPBI1MLL-B-NOPF-MUON","B", triggerCount);
73002766 292 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kMuonLikePB,"+CPBI1MLL-ACE-NOPF-MUON","ACE",triggerCount);
4e3a6556 293 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C");
c915635b 294 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
f4e3ff14 295
296 triggerCount++;
297 oadbDefaultPbPb->AddCollisionTriggerClass ( AliVEvent::kPHOSPb,"+CPBI2PHS-B-NOPF-CENTNOTRD","B", triggerCount);
b58f1e4d 298 oadbDefaultPbPb->AddBGTriggerClass ( AliVEvent::kPHOSPb,"+CPBI2PHS-ACE-NOPF-CENTNOTRD","ACE",triggerCount);
f4e3ff14 299 oadbDefaultPbPb->SetHardwareTrigger ( triggerCount,"V0A && V0C");
300 oadbDefaultPbPb->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
dd2be4f9 301
7c55ebd9 302 oadbContPS->AddDefaultObject(oadbDefaultPbPb);
303
eeaab745 304 // Trigger analysis defaults
305 AliOADBTriggerAnalysis * oadbTrigAnalysis = new AliOADBTriggerAnalysis("Default");
88473689 306 oadbTrigAnalysis->SetZDCCorrParameters(0.5, 0, 4*0.7, 4*0.7);
eeaab745 307 oadbContTriggerAnalysis->AddDefaultObject(oadbTrigAnalysis);
308
7c55ebd9 309 // ----- 2009 - 2010 -----
310 // ----- proton-proton -----
311 // LHC09d+LHC10(abcde)
312 AliOADBPhysicsSelection * oadbLHC09d10e = new AliOADBPhysicsSelection("oadbLHC09d10e");
313 oadbLHC09d10e->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1B-ABCE-NOPF-ALL","B",0);
314 oadbLHC09d10e->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1A-ABCE-NOPF-ALL","A",0);
315 oadbLHC09d10e->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1C-ABCE-NOPF-ALL","C",0);
316 oadbLHC09d10e->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALL","E",0);
317 oadbLHC09d10e->SetHardwareTrigger ( 0,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 318 oadbLHC09d10e->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 319
320 oadbLHC09d10e->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1B-ABCE-NOPF-MUON","B",1);
321 oadbLHC09d10e->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1A-ABCE-NOPF-MUON","A",1);
322 oadbLHC09d10e->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1C-ABCE-NOPF-MUON","C",1);
323 oadbLHC09d10e->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-MUON","E",1);
324 oadbLHC09d10e->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 325 oadbLHC09d10e->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 326
327 oadbContPS->AppendObject(oadbLHC09d10e, 104065,118555);
328 oadbContPS->AppendObject(oadbLHC09d10e->Clone(), 118562,127711);
329
fb7c042e 330 // LHC10c, fill 1069 (problems with the V0 online trigger in ESD)
7c55ebd9 331 AliOADBPhysicsSelection * oadbLHC10cV0Bug = new AliOADBPhysicsSelection("oadbLHC10cV0Bug");
332 oadbLHC10cV0Bug->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1B-ABCE-NOPF-ALL","B",0);
333 oadbLHC10cV0Bug->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1A-ABCE-NOPF-ALL","A",0);
334 oadbLHC10cV0Bug->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1C-ABCE-NOPF-ALL","C",0);
335 oadbLHC10cV0Bug->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALL","E",0);
336 oadbLHC10cV0Bug->SetHardwareTrigger ( 0,"SPDGFO >= 1 || CTPV0A || CTPV0C");
1ea7a921 337 oadbLHC10cV0Bug->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 338
339 oadbLHC10cV0Bug->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1B-ABCE-NOPF-MUON","B",1);
340 oadbLHC10cV0Bug->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1A-ABCE-NOPF-MUON","A",1);
341 oadbLHC10cV0Bug->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1C-ABCE-NOPF-MUON","C",1);
342 oadbLHC10cV0Bug->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-MUON","E",1);
fb7c042e 343 oadbLHC10cV0Bug->SetHardwareTrigger ( 1,"SPDGFO >= 1 || CTPV0A || CTPV0C");
1ea7a921 344 oadbLHC10cV0Bug->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 345
346 oadbContPS->AppendObject(oadbLHC10cV0Bug, 118556,118561);
347
348
349 // LHC10e1
350 AliOADBPhysicsSelection * oadbLHC10e1 = new AliOADBPhysicsSelection("oadbLHC10e1");
351 oadbLHC10e1->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B",0);
352 oadbLHC10e1->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC",0);
353 oadbLHC10e1->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E",0);
354 oadbLHC10e1->SetHardwareTrigger ( 0,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 355 oadbLHC10e1->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 356
357 oadbLHC10e1->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1-B-NOPF-ALLNOTRD","B",1);
358 oadbLHC10e1->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-ALLNOTRD","AC",1);
359 oadbLHC10e1->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-ALLNOTRD","E",1);
360 oadbLHC10e1->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 361 oadbLHC10e1->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 362
363 oadbLHC10e1->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+CSH1-B-NOPF-ALLNOTRD","B",2);
364 oadbLHC10e1->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-AC-NOPF-ALLNOTRD","AC",2);
365 oadbLHC10e1->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-E-NOPF-ALLNOTRD","E",2);
366 oadbLHC10e1->SetHardwareTrigger ( 2,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 367 oadbLHC10e1->SetOfflineTrigger ( 2,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 368
369 oadbContPS->AppendObject(oadbLHC10e1, 127712,127718);
370
371 // lhc10e2
372 AliOADBPhysicsSelection * oadbLHC10e2 = new AliOADBPhysicsSelection("oadbLHC10e2");
373 oadbLHC10e2->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1B-ABCE-NOPF-ALL","B",0);
374 oadbLHC10e2->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1A-ABCE-NOPF-ALL","A",0);
375 oadbLHC10e2->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1C-ABCE-NOPF-ALL","C",0);
376 oadbLHC10e2->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALL","E",0);
377 oadbLHC10e2->SetHardwareTrigger ( 0,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 378 oadbLHC10e2->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 379
380 oadbLHC10e2->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1B-ABCE-NOPF-MUON","B",1);
381 oadbLHC10e2->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1A-ABCE-NOPF-MUON","A",1);
382 oadbLHC10e2->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1C-ABCE-NOPF-MUON","C",1);
383 oadbLHC10e2->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-MUON","E",1);
384 oadbLHC10e2->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 385 oadbLHC10e2->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 386
387 oadbContPS->AppendObject(oadbLHC10e2, 127719,127730);
fb7c042e 388
389 // LHC10e3
390 AliOADBPhysicsSelection * oadbLHC10e3 = new AliOADBPhysicsSelection("oadbLHC10e3");
391 oadbLHC10e3->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B",0);
392 oadbLHC10e3->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC",0);
393 oadbLHC10e3->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E",0);
394 oadbLHC10e3->SetHardwareTrigger ( 0,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 395 oadbLHC10e3->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 396
fb7c042e 397 oadbLHC10e3->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1-B-NOPF-ALLNOTRD","B",1);
398 oadbLHC10e3->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-ALLNOTRD","AC",1);
399 oadbLHC10e3->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-ALLNOTRD","E",1);
400 oadbLHC10e3->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 401 oadbLHC10e3->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
fb7c042e 402
403 oadbLHC10e3->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+CSH1-B-NOPF-ALLNOTRD","B",2);
404 oadbLHC10e3->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-AC-NOPF-ALLNOTRD","AC",2);
405 oadbLHC10e3->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-E-NOPF-ALLNOTRD","E",2);
406 oadbLHC10e3->SetHardwareTrigger ( 2,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 407 oadbLHC10e3->SetOfflineTrigger ( 2,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
fb7c042e 408
409 oadbContPS->AppendObject(oadbLHC10e3, 127813,130850);
410
411
412 // LHC10f1
413 AliOADBPhysicsSelection * oadbLHC10f1 = new AliOADBPhysicsSelection("oadbLHC10f1");
414 oadbLHC10f1->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B",0);
415 oadbLHC10f1->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC",0);
416 oadbLHC10f1->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E",0);
417 oadbLHC10f1->SetHardwareTrigger ( 0,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 418 oadbLHC10f1->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 419
fb7c042e 420 oadbLHC10f1->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1-B-NOPF-ALLNOTRD","B",1);
421 oadbLHC10f1->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-ALLNOTRD","AC",1);
422 oadbLHC10f1->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-ALLNOTRD","E",1);
423 oadbLHC10f1->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 424 oadbLHC10f1->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 425
fb7c042e 426 oadbLHC10f1->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+CSH1-B-NOPF-ALLNOTRD","B",2);
427 oadbLHC10f1->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-AC-NOPF-ALLNOTRD","AC",2);
428 oadbLHC10f1->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-E-NOPF-ALLNOTRD","E",2);
429 oadbLHC10f1->SetHardwareTrigger ( 2,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 430 oadbLHC10f1->SetOfflineTrigger ( 2,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
7c55ebd9 431
fb7c042e 432 oadbContPS->AppendObject(oadbLHC10f1, 133004,134690);
433
434 // LHC10f2
435 AliOADBPhysicsSelection * oadbLHC10f2 = new AliOADBPhysicsSelection("oadbLHC10f2");
436 oadbLHC10f2->AddCollisionTriggerClass ( AliVEvent::kCINT5,"+CINT5-B-NOPF-ALLNOTRD","B",0);
437 oadbLHC10f2->AddBGTriggerClass ( AliVEvent::kCINT5,"+CINT5-AC-NOPF-ALLNOTRD","AC",0);
438 oadbLHC10f2->AddBGTriggerClass ( AliVEvent::kCINT5,"+CINT5-E-NOPF-ALLNOTRD","E",0);
439 oadbLHC10f2->SetHardwareTrigger ( 0,"V0A || V0C");
1ea7a921 440 oadbLHC10f2->SetOfflineTrigger ( 0,"(V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
fb7c042e 441
442 oadbLHC10f2->AddCollisionTriggerClass ( AliVEvent::kCMUS5,"+CMUS5-B-NOPF-ALLNOTRD","B",1);
443 oadbLHC10f2->AddBGTriggerClass ( AliVEvent::kCMUS5,"+CMUS5-AC-NOPF-ALLNOTRD","AC",1);
444 oadbLHC10f2->AddBGTriggerClass ( AliVEvent::kCMUS5,"+CMUS5-E-NOPF-ALLNOTRD","E",1);
445 oadbLHC10f2->SetHardwareTrigger ( 1,"V0A || V0C");
1ea7a921 446 oadbLHC10f2->SetOfflineTrigger ( 1,"(V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
fb7c042e 447
448 oadbContPS->AppendObject(oadbLHC10f2, 134776,134931);
449
450 // LHC10f3
451 AliOADBPhysicsSelection * oadbLHC10f3 = new AliOADBPhysicsSelection("oadbLHC10f3");
452 oadbLHC10f3->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B",0);
453 oadbLHC10f3->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC",0);
454 oadbLHC10f3->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E",0);
455 oadbLHC10f3->SetHardwareTrigger ( 0,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 456 oadbLHC10f3->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
fb7c042e 457
458 oadbLHC10f3->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1-B-NOPF-ALLNOTRD","B",1);
459 oadbLHC10f3->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-ALLNOTRD","AC",1);
460 oadbLHC10f3->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-ALLNOTRD","E",1);
461 oadbLHC10f3->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 462 oadbLHC10f3->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
fb7c042e 463
464 oadbLHC10f3->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+CSH1-B-NOPF-ALLNOTRD","B",2);
465 oadbLHC10f3->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-AC-NOPF-ALLNOTRD","AC",2);
466 oadbLHC10f3->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-E-NOPF-ALLNOTRD","E",2);
467 oadbLHC10f3->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 468 oadbLHC10f3->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
fb7c042e 469
470 oadbContPS->AppendObject(oadbLHC10f3, 135029,135029);
471
472
473 // LHC10g
474 AliOADBPhysicsSelection * oadbLHC10g = new AliOADBPhysicsSelection("oadbLHC10g");
475 oadbLHC10g->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B",0);
476 oadbLHC10g->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC",0);
477 oadbLHC10g->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E",0);
478 oadbLHC10g->SetHardwareTrigger ( 0,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 479 oadbLHC10g->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
fb7c042e 480
481 oadbLHC10g->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1-B-NOPF-ALLNOTRD","B",1);
482 oadbLHC10g->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-ALLNOTRD","AC",1);
483 oadbLHC10g->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-ALLNOTRD","E",1);
484 oadbLHC10g->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
1ea7a921 485 oadbLHC10g->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp && !SPDClsVsTrkBG");
fb7c042e 486
487 oadbContPS->AppendObject(oadbLHC10g, 135654,136377);
488
7c55ebd9 489
490 // filling schemes
491
492 AliOADBFillingScheme * fs4by4a = new AliOADBFillingScheme("4x4a");
493 fs4by4a->SetFillingSchemeName("4x4a");
494 fs4by4a->SetBXIDs("B"," #2128 #3019");
495 fs4by4a->SetBXIDs("A"," #346 #3465" );
496 fs4by4a->SetBXIDs("AC","");
497 fs4by4a->SetBXIDs("C"," #1234 #1680");
498 fs4by4a->SetBXIDs("E"," #790");
499 oadbContFillingScheme->AppendObject(fs4by4a, 104065, 104160);
500
501 AliOADBFillingScheme * fs4by4astar = new AliOADBFillingScheme("4x4a*");
502 fs4by4astar->SetFillingSchemeName("4x4a*");
503 fs4by4astar->SetBXIDs("B"," #2000 #2891");
504 fs4by4astar->SetBXIDs("A"," #218 #3337" );
505 fs4by4astar->SetBXIDs("AC","");
506 fs4by4astar->SetBXIDs("C"," #1106 #1552");
507 fs4by4astar->SetBXIDs("E"," #790");
508 oadbContFillingScheme->AppendObject(fs4by4astar, 104315, 104321);
509
510 AliOADBFillingScheme * fs4by4b = new AliOADBFillingScheme("4x4b");
511 fs4by4b->SetFillingSchemeName("4x4b");
512 fs4by4b->SetBXIDs("B"," #2228 #3119");
513 fs4by4b->SetBXIDs("A"," #2554 #446" );
514 fs4by4b->SetBXIDs("AC","");
515 fs4by4b->SetBXIDs("C"," #1334 #769");
516 fs4by4b->SetBXIDs("E"," #790");
517 oadbContFillingScheme->AppendObject(fs4by4b, 104792, 104803);
518
519 AliOADBFillingScheme * fs4by4c = new AliOADBFillingScheme("4x4c");
520 fs4by4c->SetFillingSchemeName("4x4c");
521 fs4by4c->SetBXIDs("B"," #3119 #769");
522 fs4by4c->SetBXIDs("A"," #2554 #446" );
523 fs4by4c->SetBXIDs("AC"," ");
524 fs4by4c->SetBXIDs("C"," #1334 #2228");
525 fs4by4c->SetBXIDs("E"," #790");
526 oadbContFillingScheme->AppendObject(fs4by4c, 104824, 104892);
527
528 AliOADBFillingScheme * fs16by16a = new AliOADBFillingScheme("16x16a");
529 fs16by16a->SetFillingSchemeName("16x16a");
530 fs16by16a->SetBXIDs("B"," #1337 #1418 #2228 #2309 #3119 #3200 #446 #527");
531 fs16by16a->SetBXIDs("A"," #1580 #1742 #1904 #2066 #2630 #2792 #2954 #3362" );
532 fs16by16a->SetBXIDs("AC","");
533 fs16by16a->SetBXIDs("C"," #845 #1007 #1169 #1577 #3359 #3521 #119 #281");
534 fs16by16a->SetBXIDs("E"," #790");
535 oadbContFillingScheme->AppendObject(fs16by16a, 105143, 105160);
536
537 oadbContFillingScheme->AppendObject(fs4by4c->Clone(), 105256, 105268);
538
539 AliOADBFillingScheme * fsSingle_2b_1_1_1 = new AliOADBFillingScheme("Single_2b_1_1_1");
540 fsSingle_2b_1_1_1->SetFillingSchemeName("Single_2b_1_1_1");
541 fsSingle_2b_1_1_1->SetBXIDs("B"," #346");
542 fsSingle_2b_1_1_1->SetBXIDs("A"," #2131" );
543 fsSingle_2b_1_1_1->SetBXIDs("AC","");
544 fsSingle_2b_1_1_1->SetBXIDs("C"," #3019");
545 fsSingle_2b_1_1_1->SetBXIDs("E"," #1238");
546 oadbContFillingScheme->AppendObject(fsSingle_2b_1_1_1, 114786, 116684);
547
548 AliOADBFillingScheme * fsSingle_3b_2_2_2 = new AliOADBFillingScheme("Single_3b_2_2_2");
549 fsSingle_3b_2_2_2->SetFillingSchemeName("Single_3b_2_2_2");
550 fsSingle_3b_2_2_2->SetBXIDs("B"," #346 #1240");
551 fsSingle_3b_2_2_2->SetBXIDs("A"," #2131" );
552 fsSingle_3b_2_2_2->SetBXIDs("AC","");
553 fsSingle_3b_2_2_2->SetBXIDs("C"," #3019 ");
554 fsSingle_3b_2_2_2->SetBXIDs("E"," #1238");
555 oadbContFillingScheme->AppendObject(fsSingle_3b_2_2_2, 117048, 117120);
556
557
558 oadbContFillingScheme->AppendObject(fsSingle_2b_1_1_1, 117220, 118555);
559
560 AliOADBFillingScheme * fsSingle_2b_1_1_1_mis = new AliOADBFillingScheme("Single_2b_1_1_1 - 1 misaligned bx");
561 fsSingle_2b_1_1_1_mis->SetFillingSchemeName("Single_2b_1_1_1 - 1 misaligned BX");
562 fsSingle_2b_1_1_1_mis->SetBXIDs("B"," #345");
563 fsSingle_2b_1_1_1_mis->SetBXIDs("A"," #2130" );
564 fsSingle_2b_1_1_1_mis->SetBXIDs("AC","");
565 fsSingle_2b_1_1_1_mis->SetBXIDs("C"," #3018");
566 fsSingle_2b_1_1_1_mis->SetBXIDs("E"," #1238");
567 oadbContFillingScheme->AppendObject(fsSingle_2b_1_1_1_mis, 118556, 118783);
568
569 oadbContFillingScheme->AppendObject(fsSingle_2b_1_1_1->Clone(), 118784, 119163);
570
571 AliOADBFillingScheme * fsSingle_4b_2_2_2 = new AliOADBFillingScheme("Single_4b_2_2_2");
572 fsSingle_4b_2_2_2->SetFillingSchemeName("Single_4b_2_2_2");
573 fsSingle_4b_2_2_2->SetBXIDs("B"," #669 #3019 ");
574 fsSingle_4b_2_2_2->SetBXIDs("A"," #346 #2454 " );
575 fsSingle_4b_2_2_2->SetBXIDs("AC","");
576 fsSingle_4b_2_2_2->SetBXIDs("C"," #1234 #2128 ");
577 fsSingle_4b_2_2_2->SetBXIDs("E"," #1681 #3463");
578 oadbContFillingScheme->AppendObject(fsSingle_4b_2_2_2, 119837, 119862);
579
580 AliOADBFillingScheme * fsSingle_6b_3_3_3 = new AliOADBFillingScheme("Single_6b_3_3_3");
581 fsSingle_6b_3_3_3->SetFillingSchemeName("Single_6b_3_3_3");
582 fsSingle_6b_3_3_3->SetBXIDs("B"," #346 #546 #746 ");
583 fsSingle_6b_3_3_3->SetBXIDs("A"," #2131 #2331 #2531 " );
584 fsSingle_6b_3_3_3->SetBXIDs("AC","");
585 fsSingle_6b_3_3_3->SetBXIDs("C"," #3019 #3219 #3419");
586 fsSingle_6b_3_3_3->SetBXIDs("E"," #1296 #1670");
587 oadbContFillingScheme->AppendObject(fsSingle_6b_3_3_3, 119902, 120691);
588
589 AliOADBFillingScheme * fsSingle_13b_8_8_8 = new AliOADBFillingScheme("Single_13b_8_8_8");
590 fsSingle_13b_8_8_8->SetFillingSchemeName("Single_13b_8_8_8");
591 fsSingle_13b_8_8_8->SetBXIDs("B"," #346 #446 #546 #646 #1240 #1340 #1440 #1540");
592 fsSingle_13b_8_8_8->SetBXIDs("A"," #946 #2131 #2231 #2331 #2431 " );
593 fsSingle_13b_8_8_8->SetBXIDs("AC","");
594 fsSingle_13b_8_8_8->SetBXIDs("C"," #3019 #3119 #3219 #3319 #3519 ");
595 fsSingle_13b_8_8_8->SetBXIDs("E"," #1835 #2726");
596 oadbContFillingScheme->AppendObject(fsSingle_13b_8_8_8, 120741, 122375);
597
598 AliOADBFillingScheme * fs125n_48b_36_16_36 = new AliOADBFillingScheme("125n_48b_36_16_36");
599 fs125n_48b_36_16_36->SetFillingSchemeName("125n_48b_36_16_36");
600 fs125n_48b_36_16_36->SetBXIDs("B"," #346 #396 #446 #496 #546 #596 #646 #696 #1240 #1290 #1340 #1390 #1440 #1490 #1540 #1590 ");
601 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 " );
602 fs125n_48b_36_16_36->SetBXIDs("AC","");
603 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 ");
604 fs125n_48b_36_16_36->SetBXIDs("E","");
605 oadbContFillingScheme->AppendObject(fs125n_48b_36_16_36, 130148, 130375);
606
607 AliOADBFillingScheme * fs1000ns_50b_35_14_35 = new AliOADBFillingScheme("1000ns_50b_35_14_35");
608 fs1000ns_50b_35_14_35->SetFillingSchemeName("1000ns_50b_35_14_35");
609 fs1000ns_50b_35_14_35->SetBXIDs("B"," #346 #386 #426 #466 #506 #546 #586 #1240 #1280 #1320 #1360 #1400 #1440 #1480 ");
610 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
611 fs1000ns_50b_35_14_35->SetBXIDs("AC","");
612 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
613 fs1000ns_50b_35_14_35->SetBXIDs("E","");
614 oadbContFillingScheme->AppendObject(fs1000ns_50b_35_14_35, 130601, 130640);
615
616
617
28cbc692 618 // 2010 ----- Heavy Ion -------
7c55ebd9 619
620 // LHC10h1
621 AliOADBPhysicsSelection * oadbLHC10h1 = new AliOADBPhysicsSelection("oadbLHC10h1");
622 oadbLHC10h1->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",0);
623 oadbLHC10h1->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",0);
624 oadbLHC10h1->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",0);
625 oadbLHC10h1->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",0);
626 oadbLHC10h1->SetHardwareTrigger ( 0,"V0A && V0C");
8d086cde 627 oadbLHC10h1->SetOfflineTrigger ( 0,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 628
629 oadbLHC10h1->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBS2A-B-NOPF-ALL","B",1);
630 oadbLHC10h1->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2A-A-NOPF-ALL","A",1);
631 oadbLHC10h1->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2A-C-NOPF-ALL","C",1);
632 oadbLHC10h1->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2A-E-NOPF-ALL","E",1);
633 oadbLHC10h1->SetHardwareTrigger ( 1,"SPDGFOL1 > 1 && V0A");
8d086cde 634 oadbLHC10h1->SetOfflineTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 635
636 oadbLHC10h1->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBS2C-B-NOPF-ALL","B",2);
637 oadbLHC10h1->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2C-A-NOPF-ALL","A",2);
638 oadbLHC10h1->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2C-C-NOPF-ALL","C",2);
639 oadbLHC10h1->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2C-E-NOPF-ALL","E",2);
640 oadbLHC10h1->SetHardwareTrigger ( 2,"SPDGFOL1 > 1 && V0C");
8d086cde 641 oadbLHC10h1->SetOfflineTrigger ( 2,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 642
643 oadbContPS->AppendObject(oadbLHC10h1, 136851,136879);
644
645 // LHC10h2
646 AliOADBPhysicsSelection * oadbLHC10h2 = new AliOADBPhysicsSelection("oadbLHC10h2");
647 oadbLHC10h2->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
648 oadbLHC10h2->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
649 oadbLHC10h2->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
650 oadbLHC10h2->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);
651 oadbLHC10h2->SetHardwareTrigger ( 0,"SPDGFO >= 100");
8d086cde 652 oadbLHC10h2->SetOfflineTrigger ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 653
654 oadbLHC10h2->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
655 oadbLHC10h2->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
656 oadbLHC10h2->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
657 oadbLHC10h2->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
658 oadbLHC10h2->SetHardwareTrigger ( 1,"V0A && V0C");
8d086cde 659 oadbLHC10h2->SetOfflineTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 660
661 oadbContPS->AppendObject(oadbLHC10h2, 137042,137133);
662
663 // LHC10h3
664 AliOADBPhysicsSelection * oadbLHC10h3 = new AliOADBPhysicsSelection("oadbLHC10h3");
665 oadbLHC10h3->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
666 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
667 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
668 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);
669 oadbLHC10h3->SetHardwareTrigger ( 0,"SPDGFO >= 100");
8d086cde 670 oadbLHC10h3->SetOfflineTrigger ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 671
672 oadbLHC10h3->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
673 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
674 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
675 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
676 oadbLHC10h3->SetHardwareTrigger ( 1,"V0A && V0C");
8d086cde 677 oadbLHC10h3->SetOfflineTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 678
679 oadbLHC10h3->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBS2A-B-NOPF-ALL","B",2);
680 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2A-A-NOPF-ALL","A",2);
681 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2A-C-NOPF-ALL","C",2);
682 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2A-E-NOPF-ALL","E",2);
683 oadbLHC10h3->SetHardwareTrigger ( 2,"SPDGFOL1 > 1 && V0A");
8d086cde 684 oadbLHC10h3->SetOfflineTrigger ( 2,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 685
686 oadbLHC10h3->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBS2C-B-NOPF-ALL","B",3);
687 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2C-A-NOPF-ALL","A",3);
688 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2C-C-NOPF-ALL","C",3);
689 oadbLHC10h3->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2C-E-NOPF-ALL","E",3);
690 oadbLHC10h3->SetHardwareTrigger ( 3,"SPDGFOL1 > 1 && V0C");
8d086cde 691 oadbLHC10h3->SetOfflineTrigger ( 3,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 692
693 oadbContPS->AppendObject(oadbLHC10h3, 137135,137364);
694
695 // LHC10h, run 137365
696 AliOADBPhysicsSelection * oadbLHC10h_137365 = new AliOADBPhysicsSelection("oadbLHC10h_x9");
697 oadbLHC10h_137365->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",0);
698 oadbLHC10h_137365->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",0);
699 oadbLHC10h_137365->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",0);
700 oadbLHC10h_137365->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",0);
701 oadbLHC10h_137365->SetHardwareTrigger ( 0,"V0A && V0C");
8d086cde 702 oadbLHC10h_137365->SetOfflineTrigger ( 0,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 703
704 oadbContPS->AppendObject(oadbLHC10h_137365, 137365,137365);
705
706 AliOADBPhysicsSelection * oadbLHC10h4 = new AliOADBPhysicsSelection("oadbLHC10h4");
707 oadbLHC10h4->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
708 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
709 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
710 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);
711 oadbLHC10h4->SetHardwareTrigger ( 0,"SPDGFO >= 100");
8d086cde 712 oadbLHC10h4->SetOfflineTrigger ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 713
714 oadbLHC10h4->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
715 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
716 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
717 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
718 oadbLHC10h4->SetHardwareTrigger ( 1,"V0A && V0C");
8d086cde 719 oadbLHC10h4->SetOfflineTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 720
721 oadbLHC10h4->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBS2A-B-NOPF-ALL","B",2);
722 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2A-A-NOPF-ALL","A",2);
723 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2A-C-NOPF-ALL","C",2);
724 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2A-E-NOPF-ALL","E",2);
725 oadbLHC10h4->SetHardwareTrigger ( 2,"SPDGFOL1 > 1 && V0A");
8d086cde 726 oadbLHC10h4->SetOfflineTrigger ( 2,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 727
728 oadbLHC10h4->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBS2C-B-NOPF-ALL","B",3);
729 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2C-A-NOPF-ALL","A",3);
730 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2C-C-NOPF-ALL","C",3);
731 oadbLHC10h4->AddBGTriggerClass ( AliVEvent::kMB,"+CMBS2C-E-NOPF-ALL","E",3);
732 oadbLHC10h4->SetHardwareTrigger ( 3,"SPDGFOL1 > 1 && V0C");
8d086cde 733 oadbLHC10h4->SetOfflineTrigger ( 3,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 734
735 oadbContPS->AppendObject(oadbLHC10h4, 137366,137595);
736
737
738
739 // LHC10h5
740 AliOADBPhysicsSelection * oadbLHC10h5 = new AliOADBPhysicsSelection("oadbLHC10h5");
741 oadbLHC10h5->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
742 oadbLHC10h5->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
743 oadbLHC10h5->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
744 oadbLHC10h5->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);
745 oadbLHC10h5->SetHardwareTrigger ( 0,"SPDGFO >= 100");
8d086cde 746 oadbLHC10h5->SetOfflineTrigger ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 747
748 oadbLHC10h5->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
749 oadbLHC10h5->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
750 oadbLHC10h5->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
751 oadbLHC10h5->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
752 oadbLHC10h5->SetHardwareTrigger ( 1,"V0A && V0C");
8d086cde 753 oadbLHC10h5->SetOfflineTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 754
755 oadbContPS->AppendObject(oadbLHC10h5, 137608,137848); // 138982,138983);
756
757 // LHC10h6
758 AliOADBPhysicsSelection * oadbLHC10h6 = new AliOADBPhysicsSelection("oadbLHC10h6");
759 oadbLHC10h6->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
760 oadbLHC10h6->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
761 oadbLHC10h6->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
762 oadbLHC10h6->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);
763 oadbLHC10h6->SetHardwareTrigger ( 0,"SPDGFO >= 100");
8d086cde 764 oadbLHC10h6->SetOfflineTrigger ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 765
766 oadbLHC10h6->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBACS2-B-NOPF-ALL","B",1);
767 oadbLHC10h6->AddBGTriggerClass ( AliVEvent::kMB,"+CMBACS2-A-NOPF-ALL","A",1);
768 oadbLHC10h6->AddBGTriggerClass ( AliVEvent::kMB,"+CMBACS2-C-NOPF-ALL","C",1);
769 oadbLHC10h6->AddBGTriggerClass ( AliVEvent::kMB,"+CMBACS2-E-NOPF-ALL","E",1);
770 oadbLHC10h6->SetHardwareTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1)");
8d086cde 771 oadbLHC10h6->SetOfflineTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 772
773 oadbContPS->AppendObject(oadbLHC10h6, 138125,138980);// 139028, 139316);
774
775
776 AliOADBPhysicsSelection * oadbLHC10h7 = new AliOADBPhysicsSelection("oadbLHC10h7");
777 oadbLHC10h7->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
778 oadbLHC10h7->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
779 oadbLHC10h7->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
780 oadbLHC10h7->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);
781 oadbLHC10h7->SetHardwareTrigger ( 0,"SPDGFO >= 100");
8d086cde 782 oadbLHC10h7->SetOfflineTrigger ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 783
784 oadbLHC10h7->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBAC-B-NOPF-ALL","B",1);
785 oadbLHC10h7->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-A-NOPF-ALL","A",1);
786 oadbLHC10h7->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-C-NOPF-ALL","C",1);
787 oadbLHC10h7->AddBGTriggerClass ( AliVEvent::kMB,"+CMBAC-E-NOPF-ALL","E",1);
788 oadbLHC10h7->SetHardwareTrigger ( 1,"(V0A && V0C)");
8d086cde 789 oadbLHC10h7->SetOfflineTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 790
791
792 oadbContPS->AppendObject(oadbLHC10h7, 138982,138983);
793
794
795 // LHC10h8
796 AliOADBPhysicsSelection * oadbLHC10h8 = new AliOADBPhysicsSelection("oadbLHC10h8");
797 oadbLHC10h8->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALL","B",0);
798 oadbLHC10h8->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALL","A",0);
799 oadbLHC10h8->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALL","C",0);
800 oadbLHC10h8->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALL","E",0);
801 oadbLHC10h8->SetHardwareTrigger ( 0,"SPDGFO >= 100");
8d086cde 802 oadbLHC10h8->SetOfflineTrigger ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 803
804 oadbLHC10h8->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBACS2-B-NOPF-ALL","B",1);
805 oadbLHC10h8->AddBGTriggerClass ( AliVEvent::kMB,"+CMBACS2-A-NOPF-ALL","A",1);
806 oadbLHC10h8->AddBGTriggerClass ( AliVEvent::kMB,"+CMBACS2-C-NOPF-ALL","C",1);
807 oadbLHC10h8->AddBGTriggerClass ( AliVEvent::kMB,"+CMBACS2-E-NOPF-ALL","E",1);
808 oadbLHC10h8->SetHardwareTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1)");
8d086cde 809 oadbLHC10h8->SetOfflineTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 810
811 oadbContPS->AppendObject(oadbLHC10h8, 139028, 139316);
812
813
814 // LHC10h9
815 AliOADBPhysicsSelection * oadbLHC10h9 = new AliOADBPhysicsSelection("oadbLHC10h9");
816 oadbLHC10h9->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+C0SMH-B-NOPF-ALLNOTRD","B",0);
817 oadbLHC10h9->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-A-NOPF-ALLNOTRD","A",0);
818 oadbLHC10h9->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-C-NOPF-ALLNOTRD","C",0);
819 oadbLHC10h9->AddBGTriggerClass ( AliVEvent::kHighMult,"+C0SMH-E-NOPF-ALLNOTRD","E",0);
820 oadbLHC10h9->SetHardwareTrigger ( 0,"SPDGFO >= 100");
8d086cde 821 oadbLHC10h9->SetOfflineTrigger ( 0,"SPDGFO >= 100 && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 822
823 oadbLHC10h9->AddCollisionTriggerClass ( AliVEvent::kMB,"+CMBACS2-B-NOPF-ALLNOTRD","B",1);
824 oadbLHC10h9->AddBGTriggerClass ( AliVEvent::kMB,"+CMBACS2-A-NOPF-ALLNOTRD","A",1);
825 oadbLHC10h9->AddBGTriggerClass ( AliVEvent::kMB,"+CMBACS2-C-NOPF-ALLNOTRD","C",1);
826 oadbLHC10h9->AddBGTriggerClass ( AliVEvent::kMB,"+CMBACS2-E-NOPF-ALLNOTRD","E",1);
827 oadbLHC10h9->SetHardwareTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1)");
8d086cde 828 oadbLHC10h9->SetOfflineTrigger ( 1,"(V0A && V0C && SPDGFOL1 > 1) && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
7c55ebd9 829
830 oadbContPS->AppendObject(oadbLHC10h9, 139328,139517);
831
28cbc692 832
8b1d16f5 833 // ----- 2011 -----
834 // ----- proton-proton -----
28cbc692 835
836 // Default LHC11a/b/c, cint1b configuration
837 AliOADBPhysicsSelection * oadbLHC11ab = new AliOADBPhysicsSelection("oadbLHC11abc");
838 oadbLHC11ab->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B",0);
839 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALLNOTRD","AC",0);
840 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E",0);
841 oadbLHC11ab->AddCollisionTriggerClass ( AliVEvent::kMB | AliVEvent::kFastOnly,"+CINT1-B-NOPF-FASTNOTRD -CINT1-B-NOPF-ALLNOTRD","B",0);
842 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kMB | AliVEvent::kFastOnly,"+CINT1-AC-NOPF-FASTNOTRD -CINT1-AC-NOPF-ALLNOTRD","AC",0);
843 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kMB | AliVEvent::kFastOnly,"+CINT1-E-NOPF-FASTNOTRD -CINT1-E-NOPF-ALLNOTRD","E",0);
844 oadbLHC11ab->SetHardwareTrigger ( 0,"SPDGFO >= 1 || V0A || V0C");
845 oadbLHC11ab->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
846
847 oadbLHC11ab->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1-B-NOPF-MUON","B",1);
848 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-MUON","AC",1);
849 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-MUON","E",1);
850 oadbLHC11ab->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
851 oadbLHC11ab->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
852
853 oadbLHC11ab->AddCollisionTriggerClass ( AliVEvent::kHighMult,"+CSH1-B-NOPF-ALLNOTRD","B",2);
854 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-AC-NOPF-ALLNOTRD","AC",2);
855 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kHighMult,"+CSH1-E-NOPF-ALLNOTRD","E",2);
856 oadbLHC11ab->SetHardwareTrigger ( 2,"SPDGFO >= 1 || V0A || V0C");
857 oadbLHC11ab->SetOfflineTrigger ( 2,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
858
8d5a14d6 859 oadbLHC11ab->AddCollisionTriggerClass ( AliVEvent::kEMC1,"+CEMC1-B-NOPF-ALLNOTRD","B",3);
860 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kEMC1,"+CEMC1-AC-NOPF-ALLNOTRD","AC",3);
861 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kEMC1,"+CEMC1-E-NOPF-ALLNOTRD","E",3);
a5770144 862 // already defined before
8d5a14d6 863 oadbLHC11ab->SetHardwareTrigger ( 3,"SPDGFO >= 1 || V0A || V0C");
864 oadbLHC11ab->SetOfflineTrigger ( 3,"(SPDGFO >= 1 || V0A || V0C) && EMCAL && !V0ABG && !V0CBG && !TPCLaserWarmUp");
865
866 oadbLHC11ab->AddCollisionTriggerClass ( AliVEvent::kPHI1,"+CPHI1-B-NOPF-ALLNOTRD","B",4);
867 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kPHI1,"+CPHI1-AC-NOPF-ALLNOTRD","AC",4);
868 oadbLHC11ab->AddBGTriggerClass ( AliVEvent::kPHI1,"+CPHI1-E-NOPF-ALLNOTRD","E",4);
869 oadbLHC11ab->SetHardwareTrigger ( 4,"SPDGFO >= 1 || V0A || V0C");
870 oadbLHC11ab->SetOfflineTrigger ( 4,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
28cbc692 871
872 oadbContPS->AppendObject(oadbLHC11ab, 144871, 146856);
873 oadbContPS->AppendObject(oadbLHC11ab->Clone(), 146858, 152935);
874 oadbContPS->AppendObject(oadbLHC11ab->Clone(), 153360, 153361);
875
876 // LHC11a1, "ALL" exceptions, cint1b configuration
8b1d16f5 877 AliOADBPhysicsSelection * oadbLHC11a1 = new AliOADBPhysicsSelection("oadbLHC11a1");
878 oadbLHC11a1->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1-B-NOPF-ALL","B",0);
879 oadbLHC11a1->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-AC-NOPF-ALL","AC",0);
880 oadbLHC11a1->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALL","E",0);
881 oadbLHC11a1->SetHardwareTrigger ( 0,"SPDGFO >= 1 || V0A || V0C");
882 oadbLHC11a1->SetOfflineTrigger ( 0,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
883
884 oadbLHC11a1->AddCollisionTriggerClass ( AliVEvent::kMUON,"+CMUS1-B-NOPF-ALL","B",1);
885 oadbLHC11a1->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-AC-NOPF-ALL","AC",1);
886 oadbLHC11a1->AddBGTriggerClass ( AliVEvent::kMUON,"+CMUS1-E-NOPF-ALL","E",1);
887 oadbLHC11a1->SetHardwareTrigger ( 1,"SPDGFO >= 1 || V0A || V0C");
888 oadbLHC11a1->SetOfflineTrigger ( 1,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
889
890 oadbContPS->AppendObject(oadbLHC11a1, 146857,146857);
b2b7f4bd 891
892
a5770144 893 //LHC11c1, MUU7 read out with MUON cluster (default then changed to ALLNOTRD)
b2b7f4bd 894 AliOADBPhysicsSelection * oadbLHC11c1 = new AliOADBPhysicsSelection("oadbLHC11c1");
895 oadbLHC11c1->AddCollisionTriggerClass ( AliVEvent::kINT7,"+CINT7-B-NOPF-ALLNOTRD","B",0);
896 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-AC-NOPF-ALLNOTRD","AC",0);
897 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-E-NOPF-ALLNOTRD","E",0);
898 oadbLHC11c1->SetHardwareTrigger ( 0, "V0A && V0C");
899 oadbLHC11c1->SetOfflineTrigger ( 0, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
900
901 oadbLHC11c1->AddCollisionTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-B-NOPF-MUON","B",1);
902 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-AC-NOPF-MUON","AC",1);
903 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-E-NOPF-MUON","E",1);
904 oadbLHC11c1->SetHardwareTrigger ( 1, "V0A && V0C");
905 oadbLHC11c1->SetOfflineTrigger ( 1, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
906
907 oadbLHC11c1->AddCollisionTriggerClass ( AliVEvent::kMUL7,"+CMUL7-B-NOPF-MUON","B",2);
908 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kMUL7,"+CMUL7-AC-NOPF-MUON","AC",2);
909 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kMUL7,"+CMUL7-E-NOPF-MUON","E",2);
910 oadbLHC11c1->SetHardwareTrigger ( 2, "V0A && V0C");
911 oadbLHC11c1->SetOfflineTrigger ( 2, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
912
913 oadbLHC11c1->AddCollisionTriggerClass ( AliVEvent::kMUU7,"+CMUU7-B-NOPF-MUON","B",3);
914 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kMUU7,"+CMUU7-AC-NOPF-MUON","AC",3);
915 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kMUU7,"+CMUU7-E-NOPF-MUON","E",3);
916 oadbLHC11c1->SetHardwareTrigger ( 3, "V0A && V0C");
917 oadbLHC11c1->SetOfflineTrigger ( 3, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
918
919 oadbLHC11c1->AddCollisionTriggerClass ( AliVEvent::kEMC7,"+CEMC7-B-NOPF-ALLNOTRD","B",4);
920 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-AC-NOPF-ALLNOTRD","AC",4);
921 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-E-NOPF-ALLNOTRD","E",4);
922 oadbLHC11c1->SetHardwareTrigger ( 4, "V0A && V0C");
923 oadbLHC11c1->SetOfflineTrigger ( 4, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
924
a5770144 925 oadbLHC11c1->AddCollisionTriggerClass ( AliVEvent::kPHI7,"+CPHI7-B-NOPF-ALLNOTRD","B", 5);
926 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kPHI7,"+CPHI7-AC-NOPF-ALLNOTRD","AC",5);
927 oadbLHC11c1->AddBGTriggerClass ( AliVEvent::kPHI7,"+CPHI7-E-NOPF-ALLNOTRD","E", 5);
928 oadbLHC11c1->SetHardwareTrigger ( 5,"V0A && V0C");
929 oadbLHC11c1->SetOfflineTrigger ( 5,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
930
b2b7f4bd 931 oadbContPS->AppendObject(oadbLHC11c1, 153056 , 153296);
932 oadbContPS->AppendObject(oadbLHC11c1->Clone(), 153362 , 153578);
cca684da 933 oadbContPS->AppendObject(oadbLHC11c1->Clone(), 153583 , 153583);
a5770144 934 oadbContPS->AppendObject(oadbLHC11c1->Clone(), 153587 , 153733);
b2b7f4bd 935
936 // Tests with CMUS7
937 //LHC11c3
938// AliOADBPhysicsSelection * oadbLHC11c3 = new AliOADBPhysicsSelection("oadbLHC11c3");
939// oadbLHC11c3->AddCollisionTriggerClass ( AliVEvent::kINT7,"+CINT7-B-NOPF-ALLNOTRD","B",0);
940// oadbLHC11c3->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-AC-NOPF-ALLNOTRD","AC",0);
941// oadbLHC11c3->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-E-NOPF-ALLNOTRD","E",0);
942// oadbLHC11c3->SetHardwareTrigger ( 0, "V0A && V0C");
943// oadbLHC11c3->SetOfflineTrigger ( 0, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
944//
945// oadbLHC11c3->AddCollisionTriggerClass ( AliVEvent::kMUS7,"+CMUS7-B-NOPF-MUON","B",1);
946// oadbLHC11c3->AddBGTriggerClass ( AliVEvent::kMUS7,"+CMUS7-AC-NOPF-MUON","AC",1);
947// oadbLHC11c3->AddBGTriggerClass ( AliVEvent::kMUS7,"+CMUS7-E-NOPF-MUON","E",1);
948// oadbLHC11c3->SetHardwareTrigger ( 1, "V0A && V0C");
949// oadbLHC11c3->SetOfflineTrigger ( 1, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
950//
951// oadbContPS->AppendObject(oadbLHC11c3, 151664 , 151680);
952//
953// //LHC11c4
954// AliOADBPhysicsSelection * oadbLHC11c4 = new AliOADBPhysicsSelection("oadbLHC11c4");
955// oadbLHC11c4->AddCollisionTriggerClass ( AliVEvent::kINT7,"+CINT7-B-NOPF-ALLNOTRD","B",0);
956// oadbLHC11c4->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-AC-NOPF-ALLNOTRD","AC",0);
957// oadbLHC11c4->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-E-NOPF-ALLNOTRD","E",0);
958// oadbLHC11c4->SetHardwareTrigger ( 0, "V0A && V0C");
959// oadbLHC11c4->SetOfflineTrigger ( 0, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
960//
961// oadbLHC11c4->AddCollisionTriggerClass ( AliVEvent::kMUS7,"+CMUS7-B-NOPF-MUON","B",1);
962// oadbLHC11c4->AddBGTriggerClass ( AliVEvent::kMUS7,"+CMUS7-AC-NOPF-MUON","AC",1);
963// oadbLHC11c4->AddBGTriggerClass ( AliVEvent::kMUS7,"+CMUS7-E-NOPF-MUON","E",1);
964// oadbLHC11c4->SetHardwareTrigger ( 1, "V0A && V0C");
965// oadbLHC11c4->SetOfflineTrigger ( 1, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
966//
967// oadbLHC11c4->AddCollisionTriggerClass ( AliVEvent::kEMC7,"+CEMC7-B-NOPF-ALLNOTRD","B",2);
968// oadbLHC11c4->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-AC-NOPF-ALLNOTRD","AC",2);
969// oadbLHC11c4->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-E-NOPF-ALLNOTRD","E",2);
970// oadbLHC11c4->SetHardwareTrigger ( 2, "V0A && V0C");
971// oadbLHC11c4->SetOfflineTrigger ( 2, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
972//
973// oadbContPS->AppendObject(oadbLHC11c4, 152002 , 152007);
974// oadbContPS->AppendObject(oadbLHC11c4->Clone(), 152011 , 152011);
975// oadbContPS->AppendObject(oadbLHC11c4->Clone(), 152082 , 152082);
976// oadbContPS->AppendObject(oadbLHC11c4->Clone(), 152137 , 152137);
977
978
8b1d16f5 979
b2b7f4bd 980// //LHC11c5 (Current default)
981// AliOADBPhysicsSelection * oadbLHC11c5 = new AliOADBPhysicsSelection("oadbLHC11c5");
982// oadbLHC11c5->AddCollisionTriggerClass ( AliVEvent::kINT7,"+CINT7-B-NOPF-ALLNOTRD","B",0);
983// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-AC-NOPF-ALLNOTRD","AC",0);
984// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-E-NOPF-ALLNOTRD","E",0);
985// oadbLHC11c5->SetHardwareTrigger ( 0, "V0A && V0C");
986// oadbLHC11c5->SetOfflineTrigger ( 0, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
987//
988// oadbLHC11c5->AddCollisionTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-B-NOPF-MUON","B",1);
989// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-AC-NOPF-MUON","AC",1);
990// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-E-NOPF-MUON","E",1);
991// oadbLHC11c5->SetHardwareTrigger ( 1, "V0A && V0C");
992// oadbLHC11c5->SetOfflineTrigger ( 1, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
993//
994// oadbLHC11c5->AddCollisionTriggerClass ( AliVEvent::kMUL7,"+CMUL7-B-NOPF-MUON","B",2);
995// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kMUL7,"+CMUL7-AC-NOPF-MUON","AC",2);
996// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kMUL7,"+CMUL7-E-NOPF-MUON","E",2);
997// oadbLHC11c5->SetHardwareTrigger ( 2, "V0A && V0C");
998// oadbLHC11c5->SetOfflineTrigger ( 2, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
999//
1000// oadbLHC11c5->AddCollisionTriggerClass ( AliVEvent::kMUU7,"+CMUU7-B-NOPF-ALLNOTRD","B",3);
1001// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kMUU7,"+CMUU7-AC-NOPF-ALLNOTRD","AC",3);
1002// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kMUU7,"+CMUU7-E-NOPF-ALLNOTRD","E",3);
1003// oadbLHC11c5->SetHardwareTrigger ( 3, "V0A && V0C");
1004// oadbLHC11c5->SetOfflineTrigger ( 3, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1005//
1006// oadbLHC11c5->AddCollisionTriggerClass ( AliVEvent::kEMC7,"+CEMC7-B-NOPF-ALLNOTRD","B",4);
1007// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-AC-NOPF-ALLNOTRD","AC",4);
1008// oadbLHC11c5->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-E-NOPF-ALLNOTRD","E",4);
1009// oadbLHC11c5->SetHardwareTrigger ( 4, "V0A && V0C");
1010// oadbLHC11c5->SetOfflineTrigger ( 4, "(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1011//
1012// oadbContPS->AppendObject(oadbLHC11c5, 153776 , 154570);
8b1d16f5 1013
a5770144 1014 //LHC11d1, CINT7-B and CPHI-7B (before I transition)
1015 AliOADBPhysicsSelection * oadbLHC11d1 = new AliOADBPhysicsSelection("oadbLHC11d1");
1016
1017 oadbLHC11d1->AddCollisionTriggerClass ( AliVEvent::kINT7,"+CINT7-B-NOPF-ALLNOTRD","B",0);
1018 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-AC-NOPF-ALLNOTRD","AC",0);
1019 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-E-NOPF-ALLNOTRD","E",0);
1020 oadbLHC11d1->SetHardwareTrigger ( 0,"V0A && V0C");
1021 oadbLHC11d1->SetOfflineTrigger ( 0,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1022
1023 oadbLHC11d1->AddCollisionTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-B-NOPF-MUON","B", 1);
1024 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-AC-NOPF-MUON","AC",1);
1025 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-E-NOPF-MUON","E", 1);
1026 oadbLHC11d1->SetHardwareTrigger ( 1,"V0A && V0C");
1027 oadbLHC11d1->SetOfflineTrigger ( 1,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1028
1029 oadbLHC11d1->AddCollisionTriggerClass ( AliVEvent::kMUL7,"+CMUL7-B-NOPF-MUON","B", 2);
1030 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kMUL7,"+CMUL7-AC-NOPF-MUON","AC",2);
1031 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kMUL7,"+CMUL7-E-NOPF-MUON","E", 2);
1032 oadbLHC11d1->SetHardwareTrigger ( 2,"V0A && V0C");
1033 oadbLHC11d1->SetOfflineTrigger ( 2,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1034
1035 oadbLHC11d1->AddCollisionTriggerClass ( AliVEvent::kMUU7,"+CMUU7-B-NOPF-ALLNOTRD","B", 3);
1036 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kMUU7,"+CMUU7-AC-NOPF-ALLNOTRD","AC",3);
1037 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kMUU7,"+CMUU7-E-NOPF-ALLNOTRD","E", 3);
1038 oadbLHC11d1->SetHardwareTrigger ( 3,"V0A && V0C");
1039 oadbLHC11d1->SetOfflineTrigger ( 3,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1040
1041 oadbLHC11d1->AddCollisionTriggerClass ( AliVEvent::kEMC7,"+CEMC7-B-NOPF-ALLNOTRD","B", 4);
1042 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-AC-NOPF-ALLNOTRD","AC",4);
1043 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-E-NOPF-ALLNOTRD","E", 4);
1044 oadbLHC11d1->SetHardwareTrigger ( 4,"V0A && V0C");
1045 oadbLHC11d1->SetOfflineTrigger ( 4,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1046
1047 oadbLHC11d1->AddCollisionTriggerClass ( AliVEvent::kMUS7,"+CMUS7-B-NOPF-MUON","B", 5);
1048 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kMUS7,"+CMUS7-AC-NOPF-MUON","AC",5);
1049 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kMUS7,"+CMUS7-E-NOPF-MUON","E", 5);
1050 oadbLHC11d1->SetHardwareTrigger ( 5,"V0A && V0C");
1051 oadbLHC11d1->SetOfflineTrigger ( 5,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1052
7a4eb25e 1053 oadbLHC11d1->AddCollisionTriggerClass ( AliVEvent::kPHI7,"+CPHI7-B-NOPF-ALLNOTRD,CPHI7-I-NOPF-ALLNOTRD","B", 6);
a5770144 1054 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kPHI7,"+CPHI7-AC-NOPF-ALLNOTRD","AC",6);
1055 oadbLHC11d1->AddBGTriggerClass ( AliVEvent::kPHI7,"+CPHI7-E-NOPF-ALLNOTRD","E", 6);
1056 oadbLHC11d1->SetHardwareTrigger ( 6,"V0A && V0C");
1057 oadbLHC11d1->SetOfflineTrigger ( 6,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1058
1059 oadbContPS->AppendObject(oadbLHC11d1, 153738, 158793);
b2b7f4bd 1060
b0801932 1061 // LHC11d-f
1062 AliOADBPhysicsSelection * oadbLHC11df = new AliOADBPhysicsSelection("oadbLHC11df");
1063 oadbLHC11df->AddCollisionTriggerClass ( AliVEvent::kINT7,"+CINT7-[I|B]-NOPF-ALLNOTRD","B",0);
1064 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-AC-NOPF-ALLNOTRD","AC",0);
1065 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-E-NOPF-ALLNOTRD","E",0);
1066 oadbLHC11df->SetHardwareTrigger ( 0,"V0A && V0C");
1067 oadbLHC11df->SetOfflineTrigger ( 0,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1068
1069 oadbLHC11df->AddCollisionTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-B-NOPF-MUON","B", 1);
1070 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-AC-NOPF-MUON","AC",1);
1071 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kMUSH7,"+CMUSH7-E-NOPF-MUON","E", 1);
1072 oadbLHC11df->SetHardwareTrigger ( 1,"V0A && V0C");
1073 oadbLHC11df->SetOfflineTrigger ( 1,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1074
1075 oadbLHC11df->AddCollisionTriggerClass ( AliVEvent::kMUL7,"+CMUL7-B-NOPF-MUON","B", 2);
1076 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kMUL7,"+CMUL7-AC-NOPF-MUON","AC",2);
1077 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kMUL7,"+CMUL7-E-NOPF-MUON","E", 2);
1078 oadbLHC11df->SetHardwareTrigger ( 2,"V0A && V0C");
1079 oadbLHC11df->SetOfflineTrigger ( 2,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1080
1081 oadbLHC11df->AddCollisionTriggerClass ( AliVEvent::kMUU7,"+CMUU7-B-NOPF-ALLNOTRD","B", 3);
1082 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kMUU7,"+CMUU7-AC-NOPF-ALLNOTRD","AC",3);
1083 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kMUU7,"+CMUU7-E-NOPF-ALLNOTRD","E", 3);
1084 oadbLHC11df->SetHardwareTrigger ( 3,"V0A && V0C");
1085 oadbLHC11df->SetOfflineTrigger ( 3,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1086
1087 oadbLHC11df->AddCollisionTriggerClass ( AliVEvent::kEMC7,"+CEMC7-B-NOPF-ALLNOTRD","B", 4);
1088 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-AC-NOPF-ALLNOTRD","AC",4);
1089 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kEMC7,"+CEMC7-E-NOPF-ALLNOTRD","E", 4);
1090 oadbLHC11df->SetHardwareTrigger ( 4,"V0A && V0C");
1091 oadbLHC11df->SetOfflineTrigger ( 4,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1092
1093 oadbLHC11df->AddCollisionTriggerClass ( AliVEvent::kMUS7,"+CMUS7-B-NOPF-MUON","B", 5);
1094 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kMUS7,"+CMUS7-AC-NOPF-MUON","AC",5);
1095 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kMUS7,"+CMUS7-E-NOPF-MUON","E", 5);
1096 oadbLHC11df->SetHardwareTrigger ( 5,"V0A && V0C");
1097 oadbLHC11df->SetOfflineTrigger ( 5,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1098
1099 oadbLHC11df->AddCollisionTriggerClass ( AliVEvent::kPHI7,"+CPHI7-[I|B]-NOPF-ALLNOTRD","B", 6);
1100 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kPHI7,"+CPHI7-AC-NOPF-ALLNOTRD","AC",6);
1101 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kPHI7,"+CPHI7-E-NOPF-ALLNOTRD","E", 6);
1102 oadbLHC11df->SetHardwareTrigger ( 6,"V0A && V0C");
1103 oadbLHC11df->SetOfflineTrigger ( 6,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1104
1105 oadbLHC11df->AddCollisionTriggerClass ( AliVEvent::kDG5,"+CDG5-I-NOPF-ALLNOTRD","B", 7);
1106 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kDG5,"+CDG5-AC-NOPF-ALLNOTRD","AC",7);
1107 oadbLHC11df->AddBGTriggerClass ( AliVEvent::kDG5,"+CDG5-E-NOPF-ALLNOTRD","E", 7);
1108 // TODO TOF condition needs to be implemented (Savannah bug #87064)
1109 oadbLHC11df->SetHardwareTrigger ( 7,"!V0A && !V0C && SPDGFOL1 >= 2");
1110 oadbLHC11df->SetOfflineTrigger ( 7,"!V0A && !V0C && !V0ABG && !V0CBG && SPDGFOL1 >= 2 && !TPCLaserWarmUp");
1111
1112 oadbContPS->AppendObject(oadbLHC11df, 158794, 165747);
1113
1114
a35f543c 1115 AliOADBPhysicsSelection * oadbLHC11h = new AliOADBPhysicsSelection("oadbDefaultlhc11h");
1116 triggerCount=0;
1117 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kMB,"+CPBI1-B-NOPF-ALLNOTRD,CPBI2_B1-B-[NOPF|PF]-ALLNOTRD","B",triggerCount);
1118 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kMB,"+CPBI[1|2_B1]-AC-NOPF-ALLNOTRD","AC",triggerCount);
1119 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kMB,"+CPBI[1|2_B1]-E-NOPF-ALLNOTRD","E",triggerCount);
1120 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C");
1121 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1122
1123 triggerCount++;
1124 // Bug in early running, CVHN_R2-B-NOPF-ALLNOTRD needed explicitly up to run 167814 (to be moved to custom object as soon as all other things are fine)
1125 // oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kCentral,"+CVHN-B-NOPF-ALLNOTRD,CVHN_R2-B-NOPF-ALLNOTRD,CVHN-B-NOPF-CENTNOTRD,CVHN-B-NOPF-CENTNOTRD,CVHN-B-PF-ALLNOTRD,CVHN-B-PF-CENTNOTRD","B",triggerCount);
1126 // oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kCentral,"+CVHN[|_R2]-B-[NOPF|PF]-[ALL|CENT]NOTRD","B",triggerCount);
1127 // oadbLHC11h->AddBGTriggerClass ( AliVEvent::kCentral,"+CVHN-AC-NOPF-[ALL|CENT]NOTRD","AC",triggerCount);
1128 // oadbLHC11h->AddBGTriggerClass ( AliVEvent::kCentral,"+CVHN-E-NOPF-[ALL|CENT]NOTRD","E",triggerCount);
1129 // Also include the semicentral class in the online classes selection (in order not to loose event due to the different time sharing of central and semi-central)
1130 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kCentral,"+CVHN[|_R2]-B-[NOPF|PF]-[ALL|CENT]NOTRD,CVLN[|_B2|_R1]-B-[NOPF|PF]-ALLNOTRD,CSEMI_R1-B-NOPF-ALLNOTRD,CCENT_R2-B-NOPF-ALLNOTRD","B",triggerCount);
1131 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kCentral,"+CVHN-AC-NOPF-[ALL|CENT]NOTRD,CVLN-AC-NOPF-ALLNOTRD,CCENT_R2-AC-NOPF-ALLNOTRD","AC",triggerCount);
1132 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kCentral,"+CVHN-E-NOPF-[ALL|CENT]NOTRD,CVLN-E-NOPF-ALLNOTRD,CCENT_R2-E-NOPF-ALLNOTRD","E",triggerCount);
1133 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C && Central");
1134 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1135
1136 triggerCount++;
1137 // semicentral includes central ones (and might have different downscaling)
1138 // Bug in early running, CVHN_R2-B-NOPF-ALLNOTRD,CVLN_B2-B-NOPF-ALLNOTRD needed explicitly up to run 167814 (to be moved to custom object as soon as all other things are fine)
1139// oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kSemiCentral,"+CVHN-B-NOPF-ALLNOTRD,CVHN_R2-B-NOPF-ALLNOTRD,CVHN-B-NOPF-CENTNOTRD,CVHN-B-PF-ALLNOTRD,CVHN-B-PF-CENTNOTRD,CVLN-B-NOPF-ALLNOTRD,CVLN_B2-B-NOPF-ALLNOTRD,CVLN-B-PF-ALLNOTRD","B",triggerCount);
1140// oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kSemiCentral,"+CVHN[|_R2]-B-[NOPF|PF]-[ALL|CENT]NOTRD,CVLN[|_B2]-B-[NOPF|PF]-ALLNOTRD","B",triggerCount);
1141 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kSemiCentral,"+CVHN[|_R2]-B-[NOPF|PF]-[ALL|CENT]NOTRD,CVLN[|_B2|_R1]-B-[NOPF|PF]-ALLNOTRD,CSEMI_R1-B-NOPF-ALLNOTRD,CCENT_R2-B-NOPF-ALLNOTRD","B",triggerCount);
1142 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kSemiCentral,"+CVHN-AC-NOPF-[ALL|CENT]NOTRD,CVLN-AC-NOPF-ALLNOTRD,CSEMI_R1-AC-NOPF-ALLNOTRD","AC",triggerCount);
1143 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kSemiCentral,"+CVHN-E-NOPF-[ALL|CENT]NOTRD,CVLN-E-NOPF-ALLNOTRD,CSEMI_R1-E-NOPF-ALLNOTRD","E",triggerCount);
1144 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C && SemiCentral && !Central");
1145 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1146
1147 triggerCount++;
1148 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kEMCEJE,"+CPBI2EJE-B-NOPF-CENTNOTRD","B",triggerCount);
1149 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kEMCEJE,"+CPBI2EJE-ACE-NOPF-CENTNOTRD","ACE",triggerCount);
1150 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C");
1151 // TODO EMC offline check missing, https://savannah.cern.ch/bugs/index.php?87104
1152 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1153
1154 triggerCount++;
1155 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kEMCEGA,"+CPBI2EGA-B-NOPF-CENTNOTRD","B",triggerCount);
1156 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kEMCEGA,"+CPBI2EGA-ACE-NOPF-CENTNOTRD","ACE",triggerCount);
1157 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C");
1158 // TODO EMC offline check missing, https://savannah.cern.ch/bugs/index.php?87104
1159 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1160
1161 triggerCount++;
1162 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kMUSPB,"+CPBI1MSL-B-NOPF-MUON","B", triggerCount);
1163 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kMUSPB,"+CPBI1MSL-ACE-NOPF-MUON","ACE",triggerCount);
1164 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C");
1165 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1166
1167 triggerCount++;
1168 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kMUSHPB,"+CPBI1MSH-B-NOPF-MUON","B", triggerCount);
1169 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kMUSHPB,"+CPBI1MSH-ACE-NOPF-MUON","ACE",triggerCount);
1170 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C");
1171 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1172
1173 triggerCount++;
1174 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kMuonUnlikePB,"+CPBI1MUL-B-NOPF-MUON","B", triggerCount);
1175 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kMuonUnlikePB,"+CPBI1MUL-ACE-NOPF-MUON","ACE",triggerCount);
1176 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C");
1177 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1178
1179 triggerCount++;
1180 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kMuonLikePB,"+CPBI1MLL-B-NOPF-MUON","B", triggerCount);
1181 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kMuonLikePB,"+CPBI1MLL-ACE-NOPF-MUON","ACE",triggerCount);
1182 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C");
1183 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1184
1185 triggerCount++;
1186 oadbLHC11h->AddCollisionTriggerClass ( AliVEvent::kPHOSPb,"+CPBI2PHS-B-NOPF-CENTNOTRD","B", triggerCount);
1187 oadbLHC11h->AddBGTriggerClass ( AliVEvent::kPHOSPb,"+CPBI2PHS-ACE-NOPF-CENTNOTRD","ACE",triggerCount);
1188 oadbLHC11h->SetHardwareTrigger ( triggerCount,"V0A && V0C");
1189 oadbLHC11h->SetOfflineTrigger ( triggerCount,"V0A && V0C && !V0ABG && !V0CBG && !TPCLaserWarmUp && ZDCTime");
1190
1191 oadbContPS->AppendObject(oadbLHC11h, 166529, 170593);
1192 triggerCount=0;
1193
80ed229e 1194 //
1195 // OADB Object for pA run (Sept 2012)
1196 //
1197 AliOADBPhysicsSelection * oadbLHC12g = new AliOADBPhysicsSelection("oadbLHC12g");
1198 oadbLHC12g->AddCollisionTriggerClass ( AliVEvent::kINT7,"+CINT7-[I|B]-NOPF-ALLNOTRD,CINT7-B-NOPF-CENTNOTRD","B",triggerCount);
1199 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-AC-NOPF-ALLNOTRD","AC", triggerCount);
1200 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-E-NOPF-ALLNOTRD","E", triggerCount);
1201 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kINT7,"+CINT7-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
1202 oadbLHC12g->SetHardwareTrigger ( triggerCount,"V0A && V0C");
1203 oadbLHC12g->SetOfflineTrigger ( triggerCount,"(V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1204
1205 triggerCount++;
1206 oadbLHC12g->AddCollisionTriggerClass ( AliVEvent::kMB,"+CINT1-B-NOPF-ALLNOTRD","B", triggerCount);
1207 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-A-NOPF-ALLNOTRD","A", triggerCount);
1208 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-C-NOPF-ALLNOTRD","C", triggerCount);
1209 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-E-NOPF-ALLNOTRD","E", triggerCount);
1210 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kMB,"+CINT1-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
1211 oadbLHC12g->SetHardwareTrigger ( triggerCount,"SPDGFO >= 1 || V0A || V0C");
1212 oadbLHC12g->SetOfflineTrigger ( triggerCount,"(SPDGFO >= 1 || V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1213
1214 triggerCount++;
1215 oadbLHC12g->AddCollisionTriggerClass ( AliVEvent::kINT6,"+CINT6-B-NOPF-ALLNOTRD","B", triggerCount);
1216 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kINT6,"+CINT6-A-NOPF-ALLNOTRD","A", triggerCount);
1217 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kINT6,"+CINT6-C-NOPF-ALLNOTRD","C", triggerCount);
1218 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kINT6,"+CINT6-E-NOPF-ALLNOTRD","E", triggerCount);
1219 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kINT6,"+CINT6-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
1220 oadbLHC12g->SetHardwareTrigger ( triggerCount,"SPDGFO >= 1");
1221 oadbLHC12g->SetOfflineTrigger ( triggerCount,"(SPDGFO >= 1) && !TPCLaserWarmUp");
1222
1223 triggerCount++;
76abd84f 1224 oadbLHC12g->AddCollisionTriggerClass ( AliVEvent::kCINT5,"+CINT5-B-NOPF-ALLNOTRD","B",triggerCount);
1225 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kCINT5,"+CINT5-AC-NOPF-ALLNOTRD","AC",triggerCount);
1226 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kCINT5,"+CINT5-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
1227 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kCINT5,"+CINT5-A-NOPF-ALLNOTRD","A",triggerCount);
1228 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kCINT5,"+CINT5-C-NOPF-ALLNOTRD","C",triggerCount);
1229 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kCINT5,"+CINT5-E-NOPF-ALLNOTRD","E",triggerCount);
80ed229e 1230 oadbLHC12g->SetHardwareTrigger ( triggerCount,"V0A || V0C");
1231 oadbLHC12g->SetOfflineTrigger ( triggerCount,"(V0A || V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1232
1233 triggerCount++;
1234 oadbLHC12g->AddCollisionTriggerClass ( AliVEvent::kZED,"+C1ZED-B-NOPF-ALLNOTRD", "B", triggerCount);
1235 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kZED,"+C1ZED-A-NOPF-ALLNOTRD","A", triggerCount);
1236 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kZED,"+C1ZED-C-NOPF-ALLNOTRD","C", triggerCount);
1237 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kZED,"+C1ZED-E-NOPF-ALLNOTRD", "E", triggerCount);
1238 oadbLHC12g->AddBGTriggerClass ( AliVEvent::kZED,"+C1ZED-ACE-NOPF-ALLNOTRD","ACE",triggerCount);
1239 oadbLHC12g->SetHardwareTrigger ( triggerCount,"1");
1240 oadbLHC12g->SetOfflineTrigger ( triggerCount,"(ZDCTDCA || ZDCTDCC) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1241
1242 triggerCount++;
1243 oadbLHC12g->AddCollisionTriggerClass ( AliVEvent::kSPI7,"+CSPI7-B-NOPF-ALLNOTRD","B", triggerCount);
1244 oadbLHC12g->SetHardwareTrigger ( triggerCount,"SPDGFOL1 >= 10 && (V0A && V0C)");
1245 oadbLHC12g->SetOfflineTrigger ( triggerCount,"(SPDGFOL1 >= 10 && V0A && V0C) && !V0ABG && !V0CBG && !TPCLaserWarmUp");
1246
1247 oadbContPS->AppendObject(oadbLHC12g, 188124, 188374);
1248
b0801932 1249
1250
8b1d16f5 1251 // ------------------------------------------------------------------------------------------------------------
7c55ebd9 1252
eeaab745 1253 // Trigger Analysis: ZDC timing cuts
1254
1255 AliOADBTriggerAnalysis * oadbTrigAnalysisZDC1 = new AliOADBTriggerAnalysis("ZDCCut1");
1256 oadbTrigAnalysisZDC1->SetZDCCorrParameters(-66.9, -2.1, 4*0.58, 4*0.5);
1257 oadbContTriggerAnalysis->AppendObject(oadbTrigAnalysisZDC1, 136851, 137848);
1258
1259 AliOADBTriggerAnalysis * oadbTrigAnalysisZDC2 = new AliOADBTriggerAnalysis("ZDCCut2");
1260 oadbTrigAnalysisZDC2->SetZDCCorrParameters(-66.2, -2.1, 4*0.58, 4*0.5);
1261 oadbContTriggerAnalysis->AppendObject(oadbTrigAnalysisZDC2, 138125, 138275);
1262
1263 AliOADBTriggerAnalysis * oadbTrigAnalysisZDC3 = new AliOADBTriggerAnalysis("ZDCCut3");
1264 oadbTrigAnalysisZDC3->SetZDCCorrParameters(-65.4, -2.1, 4*0.58, 4*0.5);
1265 oadbContTriggerAnalysis->AppendObject(oadbTrigAnalysisZDC3, 138359, 138469);
1266
1267 AliOADBTriggerAnalysis * oadbTrigAnalysisZDC4 = new AliOADBTriggerAnalysis("ZDCCut4");
1268 oadbTrigAnalysisZDC4->SetZDCCorrParameters(-67.7, -2.1, 4*0.58, 4*0.5);
1269 oadbContTriggerAnalysis->AppendObject(oadbTrigAnalysisZDC4, 138533, 138742);
1270
1271 AliOADBTriggerAnalysis * oadbTrigAnalysisZDC5 = new AliOADBTriggerAnalysis("ZDCCut5");
1272 oadbTrigAnalysisZDC5->SetZDCCorrParameters(-67.2, -2.1, 4*0.58, 4*0.5);
1273 oadbContTriggerAnalysis->AppendObject(oadbTrigAnalysisZDC5, 138795, 138872);
1274
1275 AliOADBTriggerAnalysis * oadbTrigAnalysisZDC6 = new AliOADBTriggerAnalysis("ZDCCut6");
1276 oadbTrigAnalysisZDC6->SetZDCCorrParameters(-65.6, -2.1, 4*0.58, 4*0.5);
1277 oadbContTriggerAnalysis->AppendObject(oadbTrigAnalysisZDC6, 138924, 139517);
1278
1279 oadbTrigAnalysisZDC1->Print();
1280 oadbTrigAnalysisZDC2->Print();
1281 oadbTrigAnalysisZDC3->Print();
1282 oadbTrigAnalysisZDC4->Print();
1283 oadbTrigAnalysisZDC5->Print();
1284 oadbTrigAnalysisZDC6->Print();
1285
28cbc692 1286
1287 // ----------------- visualize coverage
1288
1289 // oadbContPS->List();
1290
1291 // one can get a list of all runs from the RCT with http://alimonitor.cern.ch/configuration/index.jsp?partition=%25&raw_run=&filling_scheme=&filling_config=&fillno=&energy=&intensity_per_bunch=&mu=&interaction_trigger=&rate=&beam_empty_trigger=&empty_empty_trigger=&muon_trigger=&high_multiplicity_trigger=&quality=&muon_quality=&mean_vertex_xyz=&vertex_quality=&comment=&field=&det_aco=&det_emc=&det_fmd=&det_hlt=&det_hmp=&det_mch=&det_mtr=&det_phs=&det_pmd=&det_spd=&det_sdd=&det_ssd=&det_tof=&det_tpc=&det_trd=&det_t00=&det_v00=&det_zdc=&hlt_mode=&changedon=
a35f543c 1292 Int_t nRuns = 2281;
1293 Int_t allRuns[] = { 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, 169975, 169969, 169965, 169961, 169956, 169926, 169924, 169923, 169922, 169919, 169918, 169914, 169859, 169858, 169855, 169846, 169838, 169837, 169835, 169683, 169628, 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, 167713, 167712, 167711, 167706, 167693, 166532, 166530, 166529, 165746, 165745, 165744, 165741, 165740, 165702, 165701, 165700, 165699, 165467, 165465, 165444, 165438, 165430, 165429, 165421, 165419, 165413, 165309, 165179, 165178, 165139, 165137, 165136, 165133, 164866, 164865, 164864, 164863, 164861, 164848, 164847, 164787, 164762, 164759, 164758, 164757, 164756, 164750, 164748, 164743, 164741, 164739, 164734, 164729, 164728, 164727, 164726, 164725, 164724, 164723, 164599, 164598, 164596, 164595, 164594, 164593, 164591, 164567, 164476, 164475, 164224, 164223, 164222, 164221, 164220, 164218, 164216, 164212, 164144, 164143, 164108, 164107, 164106, 164105, 164104, 164103, 164101, 164100, 164096, 164092, 164090, 164089, 164086, 164078, 164077, 164076, 164074, 164073, 164072, 164071, 164031, 164010, 163986, 163959, 163958, 163957, 163911, 163910, 163908, 163794, 163793, 163792, 163791, 163790, 163680, 163678, 163674, 163672, 163671, 163670, 163668, 163667, 163666, 163665, 163661, 163658, 163657, 163568, 163532, 163531, 163530, 163527, 163270, 163268, 163267, 163266, 163265, 163263, 163250, 163210, 163208, 163207, 163199, 163146, 163136, 163133, 163132, 163124, 163109, 163107, 163101, 163100, 163096, 163073, 163071, 162936, 162934, 162933, 162740, 162731, 162730, 162729, 162724, 162723, 162717, 162714, 162713, 162711, 162644, 162643, 162642, 162640, 162638, 162636, 162635, 162633, 162632, 162630, 162629, 162628, 162627, 162626, 162625, 162550, 162548, 162547, 162545, 162504, 162500, 162497, 162494, 162493, 162492, 162491, 162490, 162489, 162488, 162487, 162340, 162339, 162338, 162335, 162329, 162328, 162316, 162315, 162181, 162180, 162179, 162178, 162042, 161937, 161865, 161864, 161827, 161826, 161825, 161822, 161813, 161812, 161811, 161810, 161789, 161788, 161756, 161724, 161723, 161722, 161721, 161688, 161665, 161664, 161634, 161633, 161631, 161630, 161625, 161612, 161610, 161609, 161586, 161585, 161583, 161581, 161580, 161577, 161573, 161567, 161562, 161556, 161525, 161521, 161500, 161494, 161489, 161488, 161487, 161486, 161467, 161457, 161387, 161382, 161381, 161379, 161373, 161304, 161297, 161296, 161257, 161256, 161148, 161147, 161145, 161139, 161135, 161133, 161130, 161129, 161128, 161088, 161085, 160775, 160769, 160764, 160761, 160757, 160731, 160730, 160726, 160724, 160723, 160722, 160687, 160683, 160680, 160679, 160677, 160676, 159635, 159606, 159602, 159599, 159595, 159593, 159586, 159582, 159581, 159580, 159577, 159575, 159571, 159539, 159538, 159536, 159535, 159532, 159379, 159378, 159318, 159286, 159285, 159283, 159260, 159259, 159258, 159257, 159255, 159254, 159090, 159085, 159076, 159044, 159042, 159040, 158879, 158878, 158877, 158876, 158875, 158868, 158856, 158848, 158844, 158794, 158793, 158792, 158791, 158790, 158788, 158784, 158782, 158781, 158780, 158779, 158777, 158776, 158745, 158729, 158722, 158718, 158717, 158714, 158706, 158673, 158626, 158622, 158617, 158615, 158613, 158611, 158608, 158604, 158602, 158598, 158592, 158533, 158531, 158528, 158526, 158522, 158521, 158520, 158518, 158516, 158511, 158509, 158508, 158496, 158495, 158492, 158471, 158469, 158468, 158467, 158341, 158338, 158304, 158303, 158301, 158299, 158293, 158288, 158287, 158285, 158258, 158252, 158201, 158200, 158196, 158194, 158192, 158191, 158189, 158188, 158185, 158182, 158179, 158177, 158176, 158175, 158173, 158171, 158137, 158136, 158135, 158124, 158120, 158118, 158115, 158114, 158112, 158111, 158110, 158086, 158084, 157976, 157975, 157857, 157848, 157819, 157818, 157770, 157766, 157765, 157734, 157713, 157708, 157707, 157698, 157645, 157569, 157567, 157564, 157562, 157561, 157560, 157496, 157476, 157475, 157277, 157275, 157273, 157272, 157268, 157262, 157261, 157260, 157257, 157227, 157220, 157214, 157212, 157211, 157210, 157209, 157203, 157100, 157098, 157096, 157094, 157092, 157091, 157090, 157087, 157083, 157082, 157079, 157028, 157027, 157025, 157003, 156896, 156895, 156891, 156889, 156829, 156797, 156794, 156629, 156626, 156621, 156620, 156481, 156480, 156479, 156477, 155384, 155367, 155365, 155337, 154808, 154796, 154793, 154789, 154787, 154786, 154783, 154780, 154773, 154770, 154763, 154755, 154753, 154750, 154748, 154745, 154742, 154733, 154732, 154726, 154570, 154495, 154485, 154483, 154482, 154480, 154478, 154448, 154385, 154383, 154382, 154296, 154293, 154289, 154286, 154283, 154281, 154273, 154270, 154269, 154266, 154264, 154261, 154257, 154252, 154222, 154221, 154220, 154219, 154211, 154207, 154163, 154158, 154151, 154145, 154143, 154141, 154138, 154136, 154132, 154131, 154130, 154129, 154126, 154125, 154091, 154083, 154081, 154039, 154031, 154030, 154026, 154024, 154018, 153954, 153946, 153944, 153939, 153938, 153935, 153929, 153924, 153916, 153911, 153909, 153906, 153876, 153875, 153873, 153812, 153808, 153807, 153805, 153798, 153796, 153794, 153784, 153781, 153779, 153778, 153777, 153776, 153738, 153733, 153728, 153727, 153726, 153725, 153718, 153709, 153702, 153594, 153591, 153589, 153588, 153587, 153583, 153578, 153571, 153570, 153566, 153560, 153558, 153552, 153548, 153544, 153542, 153541, 153539, 153536, 153533, 153513, 153465, 153415, 153413, 153373, 153371, 153369, 153363, 153362, 153360, 153296, 153234, 153232, 153227, 153223, 153127, 153121, 153120, 153117, 153116, 153115, 153059, 153056, 152935, 152934, 152907, 152823, 152822, 152821, 152820, 152819, 152817, 152780, 152773, 152772, 152751, 152750, 152718, 152717, 152716, 152715, 152708, 152702, 152701, 152698, 152697, 152696, 152695, 152658, 152581, 152513, 152512, 152488, 152455, 152377, 152371, 152369, 152368, 152367, 152334, 152332, 152323, 152322, 152321, 152320, 152319, 152318, 152314, 152313, 152312, 152311, 152310, 152309, 152307, 152306, 152304, 152285, 152284, 152257, 152256, 152214, 152209, 152208, 152207, 152206, 152146, 152138, 152137, 152136, 152091, 152090, 152089, 152087, 152086, 152083, 152082, 152081, 152079, 152078, 152046, 152015, 152011, 152008, 152007, 152005, 152003, 152002, 151852, 151851, 151850, 151849, 151810, 151809, 151752, 151751, 151732, 151724, 151689, 151681, 151680, 151678, 151674, 151672, 151671, 151669, 151666, 151665, 151664, 151661, 151660, 151655, 151638, 151636, 150629, 150518, 150500, 150499, 150440, 150438, 150437, 150434, 150428, 150427, 150423, 150421, 150420, 150375, 150374, 150259, 150256, 150254, 150252, 150250, 150248, 150212, 150211, 150163, 150162, 150160, 150060, 150059, 149975, 149970, 149960, 149931, 149930, 149929, 149927, 149890, 149884, 149883, 149881, 149880, 149790, 149789, 149785, 149781, 149775, 149774, 149773, 149772, 149771, 149769, 149767, 149761, 149757, 149748, 149746, 149740, 149736, 149734, 149732, 149725, 149723, 149722, 149718, 149717, 149688, 149687, 149680, 149678, 149677, 149676, 149675, 149671, 149669, 149665, 149664, 149663, 149656, 149647, 149643, 149608, 149602, 149601, 149597, 149595, 149593, 149591, 149587, 149586, 149581, 149548, 149546, 149542, 149541, 149532, 149531, 149527, 149498, 149497, 149496, 149489, 149487, 149484, 149473, 149469, 149460, 149459, 149451, 149448, 149441, 149436, 149432, 149396, 149395, 149391, 149388, 149387, 149386, 149384, 149380, 149379, 149375, 149367, 149134, 149133, 149130, 149129, 149127, 149113, 149102, 149072, 149071, 149070, 149068, 148857, 148856, 148854, 148853, 148852, 148850, 148847, 148845, 148844, 148843, 148839, 148838, 148835, 148834, 148800, 148797, 148791, 148719, 148711, 148708, 148704, 148697, 148665, 148663, 148659, 148648, 148645, 148630, 148625, 148601, 148592, 148582, 148576, 148569, 148565, 148559, 148556, 148553, 148549, 148547, 148544, 148541, 148538, 148534, 148531, 148374, 148372, 148371, 148370, 146860, 146859, 146858, 146857, 146856, 146824, 146817, 146814, 146813, 146812, 146808, 146807, 146806, 146805, 146804, 146803, 146802, 146801, 146748, 146747, 146746, 146689, 146688, 146686, 146459, 146453, 146402, 146401, 146400, 146394, 146393, 146390, 146388, 146386, 146385, 146382, 146381, 146380, 146376, 146374, 146369, 146292, 146287, 146282, 146278, 146277, 146273, 146272, 146223, 146220, 146208, 146205, 146158, 146156, 146153, 146152, 146148, 146147, 146144, 146141, 146105, 146099, 146090, 146089, 146079, 146072, 146071, 146066, 146027, 146026, 146025, 146024, 146023, 146021, 146020, 146018, 146017, 145975, 145974, 145973, 145972, 145967, 145960, 145957, 145956, 145955, 145954, 145681, 145680, 145679, 145674, 145455, 145454, 145448, 145385, 145384, 145383, 145379, 145355, 145354, 145353, 145314, 145309, 145300, 145299, 145294, 145292, 145291, 145290, 145289, 145288, 145182, 145157, 145156, 145145, 145144, 144991, 144871, 139517, 139514, 139513, 139511, 139510, 139507, 139505, 139504, 139503, 139471, 139470, 139467, 139466, 139465, 139441, 139440, 139439, 139438, 139437, 139360, 139329, 139328, 139316, 139314, 139311, 139310, 139309, 139308, 139173, 139172, 139110, 139107, 139105, 139104, 139042, 139038, 139037, 139036, 139034, 139031, 139030, 139029, 139028, 139025, 139024, 138983, 138982, 138980, 138979, 138978, 138977, 138976, 138973, 138972, 138965, 138924, 138872, 138871, 138870, 138837, 138836, 138831, 138830, 138828, 138826, 138796, 138795, 138742, 138740, 138737, 138736, 138732, 138731, 138730, 138666, 138662, 138653, 138652, 138638, 138637, 138624, 138621, 138620, 138583, 138582, 138579, 138578, 138534, 138533, 138469, 138442, 138439, 138438, 138396, 138364, 138359, 138275, 138225, 138201, 138200, 138197, 138192, 138190, 138154, 138153, 138151, 138150, 138126, 138125, 137848, 137847, 137844, 137843, 137752, 137751, 137748, 137724, 137722, 137718, 137704, 137693, 137692, 137691, 137689, 137686, 137685, 137639, 137638, 137609, 137608, 137595, 137549, 137546, 137544, 137541, 137539, 137531, 137530, 137443, 137441, 137440, 137439, 137434, 137432, 137431, 137430, 137370, 137366, 137365, 137243, 137236, 137235, 137232, 137231, 137230, 137165, 137163, 137162, 137161, 137137, 137136, 137135, 137133, 137132, 137125, 137124, 137045, 137042, 136879, 136854, 136851, 136377, 136376, 136375, 136374, 136373, 136372, 136290, 136288, 136199, 136194, 136193, 136192, 136191, 136189, 136181, 136180, 136179, 136177, 136136, 136133, 136130, 136129, 136128, 136125, 136124, 136123, 136118, 136117, 136116, 136115, 136114, 136108, 136107, 136106, 136105, 136104, 136103, 136102, 136101, 135986, 135985, 135983, 135976, 135971, 135969, 135966, 135965, 135958, 135957, 135951, 135949, 135947, 135941, 135900, 135892, 135808, 135795, 135792, 135791, 135788, 135784, 135782, 135780, 135776, 135773, 135771, 135765, 135762, 135761, 135758, 135756, 135751, 135748, 135712, 135711, 135710, 135709, 135707, 135705, 135704, 135701, 135686, 135680, 135674, 135670, 135660, 135658, 135657, 135654, 135029, 134931, 134929, 134925, 134919, 134914, 134905, 134841, 134781, 134780, 134779, 134778, 134691, 134690, 134685, 134681, 134679, 134674, 134672, 134671, 134670, 134667, 134666, 134660, 134657, 134497, 134306, 134305, 134304, 134302, 134301, 134299, 134298, 134297, 134204, 134203, 134202, 134201, 134200, 134199, 134198, 134094, 133985, 133982, 133981, 133979, 133969, 133924, 133920, 133800, 133762, 133761, 133680, 133675, 133674, 133673, 133672, 133671, 133670, 133563, 133419, 133418, 133414, 133330, 133329, 133328, 133327, 133282, 133010, 133007, 133006, 133005, 133004, 130850, 130848, 130847, 130844, 130842, 130840, 130834, 130833, 130831, 130804, 130803, 130802, 130799, 130798, 130795, 130793, 130704, 130696, 130640, 130628, 130627, 130623, 130621, 130620, 130619, 130612, 130609, 130608, 130601, 130526, 130524, 130520, 130519, 130517, 130481, 130480, 130479, 130375, 130369, 130365, 130360, 130358, 130356, 130354, 130353, 130348, 130343, 130342, 130179, 130178, 130172, 130170, 130168, 130158, 130157, 130156, 130151, 130149, 130148, 129983, 129966, 129962, 129961, 129960, 129959, 129763, 129760, 129750, 129748, 129747, 129745, 129744, 129742, 129738, 129736, 129735, 129734, 129731, 129729, 129726, 129725, 129723, 129667, 129666, 129665, 129659, 129655, 129654, 129653, 129652, 129651, 129650, 129649, 129648, 129647, 129641, 129639, 129599, 129598, 129597, 129587, 129586, 129541, 129540, 129536, 129529, 129528, 129527, 129526, 129525, 129524, 129523, 129522, 129521, 129520, 129519, 129516, 129515, 129514, 129513, 129512, 129510, 129508, 129042, 129041, 128913, 128912, 128911, 128910, 128855, 128853, 128850, 128849, 128843, 128836, 128835, 128834, 128833, 128824, 128823, 128820, 128819, 128818, 128817, 128814, 128813, 128778, 128777, 128776, 128678, 128677, 128621, 128615, 128611, 128610, 128609, 128605, 128596, 128594, 128592, 128590, 128589, 128582, 128581, 128507, 128506, 128505, 128504, 128503, 128498, 128495, 128494, 128486, 128483, 128452, 128366, 128359, 128357, 128263, 128262, 128260, 128257, 128256, 128192, 128191, 128190, 128189, 128186, 128185, 128183, 128182, 128180, 128175, 128053, 128050, 127942, 127941, 127940, 127937, 127936, 127935, 127933, 127932, 127931, 127930, 127822, 127820, 127819, 127817, 127815, 127814, 127813, 127730, 127729, 127724, 127723, 127719, 127718, 127715, 127714, 127712, 126437, 126432, 126425, 126424, 126422, 126421, 126420, 126419, 126416, 126411, 126409, 126408, 126407, 126406, 126405, 126404, 126403, 126359, 126352, 126351, 126350, 126285, 126284, 126283, 126177, 126168, 126167, 126162, 126160, 126158, 126097, 126090, 126088, 126087, 126086, 126082, 126081, 126078, 126073, 126008, 126007, 126004, 125855, 125851, 125850, 125849, 125848, 125847, 125844, 125843, 125842, 125841, 125634, 125633, 125632, 125630, 125628, 125296, 125295, 125294, 125292, 125186, 125156, 125140, 125139, 125134, 125133, 125131, 125101, 125100, 125097, 125085, 125083, 125078, 125077, 125076, 125023, 125022, 124886, 124850, 124751, 124750, 124746, 124745, 124702, 124608, 124607, 124606, 124605, 124604, 124603, 124602, 124600, 124400, 124388, 124385, 124383, 124381, 124380, 124378, 124374, 124371, 124367, 124364, 124362, 124360, 124359, 124358, 124355, 124191, 124187, 124186, 124183, 122375, 122374, 122373, 122372, 122195, 121040, 121039, 120829, 120828, 120825, 120824, 120823, 120822, 120821, 120820, 120819, 120818, 120758, 120750, 120746, 120744, 120743, 120742, 120741, 120693, 120692, 120691, 120689, 120688, 120687, 120685, 120683, 120682, 120681, 120679, 120678, 120677, 120675, 120673, 120672, 120671, 120670, 120625, 120624, 120622, 120619, 120618, 120617, 120616, 120615, 120614, 120613, 120612, 120611, 120505, 120504, 120503, 120500, 120498, 120496, 120495, 120494, 120493, 120492, 120490, 120489, 120488, 120487, 120486, 120485, 120483, 120482, 120481, 120480, 120479, 120476, 120244, 120243, 120242, 120241, 120079, 120078, 120076, 120075, 120073, 120072, 120071, 120069, 120068, 120067, 120066, 120065, 120064, 120004, 120003, 120002, 120001, 120000, 119999, 119998, 119994, 119979, 119978, 119973, 119971, 119970, 119969, 119967, 119965, 119963, 119961, 119959, 119954, 119952, 119948, 119946, 119941, 119935, 119934, 119932, 119926, 119924, 119923, 119917, 119915, 119913, 119909, 119907, 119904, 119903, 119902, 119865, 119862, 119859, 119856, 119854, 119853, 119849, 119846, 119845, 119844, 119843, 119842, 119841, 119840, 119838, 119837, 119164, 119163, 119162, 119161, 119160, 119159, 119158, 119156, 119086, 119085, 119084, 119079, 119077, 119068, 119067, 119061, 119057, 119055, 119048, 119047, 119045, 119043, 119042, 119041, 119040, 119038, 119037, 119035, 119033, 119022, 118903, 118561, 118560, 118558, 118557, 118556, 118518, 118512, 118507, 118506, 118504, 118503, 117223, 117222, 117221, 117220, 117121, 117120, 117119, 117118, 117117, 117116, 117113, 117112, 117110, 117109, 117100, 117099, 117098, 117092, 117086, 117082, 117078, 117077, 117065, 117064, 117063, 117061, 117060, 117059, 117054, 117053, 117052, 117051, 117050, 117049, 117048, 117046, 117045, 117042, 117041, 117039, 117035, 117034, 116948, 116684, 116682, 116681, 116645, 116644, 116643, 116642, 116640, 116611, 116610, 116609, 116574, 116572, 116571, 116562, 116561, 116559, 116403, 116402, 116401, 116288, 116287, 116204, 116203, 116198, 116197, 116134, 116130, 116123, 116118, 116112, 116111, 116102, 116081, 116079, 115892, 115890, 115889, 115888, 115887, 115882, 115881, 115880, 115521, 115516, 115514, 115414, 115413, 115401, 115393, 115345, 115338, 115335, 115328, 115325, 115322, 115318, 115315, 115310, 115237, 115193, 115186, 115173, 115165, 114931, 114930, 114924, 114920, 114919, 114918, 114917, 114916, 114798, 114786, 114785, 114783, 114778, 114757, 114753, 114750, 114747, 114746, 114745, 114744, 114743, 114740, 114737, 114448, 114201, 112980, 105268, 105258, 105257, 105256, 105255, 105254, 105160, 105143, 105108, 104892, 104890, 104876, 104867, 104865, 104861, 104852, 104849, 104845, 104841, 104825, 104824, 104821, 104803, 104802, 104801, 104800, 104799, 104798, 104793, 104792, 104618, 104603, 104439, 104321, 104320, 104316, 104315, 104160, 104159, 104157, 104155, 104065, 101278, 101275, 101268, 101266, 101259, 101235
a5770144 1294 };
28cbc692 1295
1296 Int_t min = 1234567890;
1297 Int_t max = -1;
1298 for (Int_t i=0; i<oadbContPS->GetNumberOfEntries(); i++)
1299 {
1300 Printf("%3d: %d --> %d", i, oadbContPS->LowerLimit(i), oadbContPS->UpperLimit(i));
1301 min = TMath::Min(min, oadbContPS->LowerLimit(i));
1302 max = TMath::Max(max, oadbContPS->UpperLimit(i));
1303 }
1304
a5770144 1305 for (Int_t i=0; i<nRuns; i++)
1306 {
1307 min = TMath::Min(min, allRuns[i]);
1308 max = TMath::Max(max, allRuns[i]);
1309 }
1310
1311
b2b7f4bd 1312 TH2* coverageHist = new TH2F("coverageHist", "Run coverage;run number", max - min + 1, min - 0.5, max + 0.5, 3, 0, 3);
28cbc692 1313 coverageHist->SetStats(0);
a5770144 1314 coverageHist->GetYaxis()->SetBinLabel(1, "OADB");
28cbc692 1315 coverageHist->GetYaxis()->SetBinLabel(2, "Physics run");
a5770144 1316 coverageHist->GetYaxis()->SetBinLabel(3, "Run w/o OADB");
28cbc692 1317
1318 for (Int_t i=0; i<oadbContPS->GetNumberOfEntries(); i++)
1319 {
1320 for (Int_t j=oadbContPS->LowerLimit(i); j <= oadbContPS->UpperLimit(i); j++)
1321 coverageHist->Fill(j, 0.5, i+1);
1322 }
1323
1324 for (Int_t i=0; i<nRuns; i++)
1325 {
1326 coverageHist->Fill(allRuns[i], 1.5);
1327 if (coverageHist->GetBinContent(coverageHist->GetXaxis()->FindBin(allRuns[i]), 1) == 0)
1328 coverageHist->Fill(allRuns[i], 2.5);
1329 }
1330
1331 new TCanvas;
1332 coverageHist->Draw("COLZ");
1333
1334 // ----------------- write to file
7c55ebd9 1335
1336 oadbContPS->WriteToFile(oadbfilename.Data());
1337 oadbContFillingScheme->WriteToFile(oadbfilename.Data());
eeaab745 1338 oadbContTriggerAnalysis->WriteToFile(oadbfilename.Data());
7c55ebd9 1339
1340 TFile * fopen = new TFile (oadbfilename);
1341 new TBrowser;
1342
1343}