Fix in physics selection OADB
[u/mrichter/AliRoot.git] / ANALYSIS / macros / PhysicsSelectionOADB_CINT5_pA.C
1 //
2 // Usage :
3 //  Select the function that adapts to your needs, then
4 //  AliOADBPhysicsSelection *oadb = function();
5 //  physSelTask->GetPhysicsSelection()->SetCustomOADBObjects(oadb,0);
6 //
7
8 AliOADBPhysicsSelection *OADBSelection_CINT5_V0OR(){
9
10   AliOADBPhysicsSelection * oadbLHC12g = new AliOADBPhysicsSelection("oadbLHC12g");
11   oadbLHC12g->AddCollisionTriggerClass   ( AliVEvent::kCINT5,"+CINT5-B-NOPF-ALLNOTRD","B",0);
12   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-AC-NOPF-ALLNOTRD","AC",0);
13   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-ACE-NOPF-ALLNOTRD","ACE",0);
14   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-A-NOPF-ALLNOTRD","A",0);
15   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-C-NOPF-ALLNOTRD","C",0);
16   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-E-NOPF-ALLNOTRD","E",0);  
17   oadbLHC12g->SetHardwareTrigger         ( 0,"V0A || V0C");
18   oadbLHC12g->SetOfflineTrigger          ( 0,"(V0A || V0C) && !V0ABG && !V0CBG && !ZNABG && !ZNCBG && !TPCLaserWarmUp");
19
20   return oadbLHC12g;
21 }
22
23 AliOADBPhysicsSelection *OADBSelection_CINT5_V0A(){
24
25   AliOADBPhysicsSelection * oadbLHC12g = new AliOADBPhysicsSelection("oadbLHC12g");
26   oadbLHC12g->AddCollisionTriggerClass   ( AliVEvent::kCINT5,"+CINT5-B-NOPF-ALLNOTRD","B",0);
27   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-AC-NOPF-ALLNOTRD","AC",0);
28   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-ACE-NOPF-ALLNOTRD","ACE",0);
29   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-A-NOPF-ALLNOTRD","A",0);
30   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-C-NOPF-ALLNOTRD","C",0);
31   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-E-NOPF-ALLNOTRD","E",0);  
32   oadbLHC12g->SetHardwareTrigger         ( 0,"V0A || V0C");
33   oadbLHC12g->SetOfflineTrigger          ( 0,"V0A && !V0ABG && !V0CBG && !ZNABG && !ZNCBG && !TPCLaserWarmUp");
34
35   return oadbLHC12g;
36 }
37
38 AliOADBPhysicsSelection *OADBSelection_CINT5_V0AND(){
39
40   AliOADBPhysicsSelection * oadbLHC12g = new AliOADBPhysicsSelection("oadbLHC12g");
41   oadbLHC12g->AddCollisionTriggerClass   ( AliVEvent::kCINT5,"+CINT5-B-NOPF-ALLNOTRD","B",0);
42   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-AC-NOPF-ALLNOTRD","AC",0);
43   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-ACE-NOPF-ALLNOTRD","ACE",0);
44   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-A-NOPF-ALLNOTRD","A",0);
45   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-C-NOPF-ALLNOTRD","C",0);
46   oadbLHC12g->AddBGTriggerClass          ( AliVEvent::kCINT5,"+CINT5-E-NOPF-ALLNOTRD","E",0);  
47   oadbLHC12g->SetHardwareTrigger         ( 0,"V0A || V0C");
48   oadbLHC12g->SetOfflineTrigger          ( 0,"(V0A && V0C) && !V0ABG && !V0CBG && !ZNABG && !ZNCBG && !TPCLaserWarmUp");
49
50   return oadbLHC12g;
51 }