updated to addtask macro
[u/mrichter/AliRoot.git] / PWGJE / macros / ConfigLegoTrainPWGJE.C
1 void ConfigLegoTrainPWGJE(int iFlag = 0){
2
3   Printf("%s:%d with flag %d",(char*)__FILE__,__LINE__,iFlag);
4   // Adds the Global Variables depending on the flag
5   // 
6
7   if(iFlag==1008){ // 10h
8     AliAnalysisManager::SetGlobalStr("kJetRunPeriod","LHC10h");
9     AliAnalysisManager::SetGlobalInt("kGridRunRangeLo",110000);
10     AliAnalysisManager::SetGlobalInt("kGridRunRangeUp",160000);
11
12     AliAnalysisManager::SetGlobalStr("kDeltaAODJetName","");
13
14     // event selection
15     AliAnalysisManager::SetGlobalInt("kPhysicsSelectionFlag",AliVEvent::kMB);
16     AliAnalysisManager::SetGlobalInt("kNTrigger",1);    
17     AliAnalysisManager::SetGlobalInt("kTriggerBit0",AliVEvent::kMB);    
18     AliAnalysisManager::SetGlobalStr("kTriggerName0","kMB");    
19     // jet selection
20     AliAnalysisManager::SetGlobalDbl("kJetEtaWindow",0.5);
21
22     // track selection 
23     AliAnalysisManager::SetGlobalDbl("kTrackEtaWindow",0.9);
24     AliAnalysisManager::SetGlobalDbl("kVertexWindow",10);
25     AliAnalysisManager::SetGlobalInt("kHighPtFilterMask",272);
26
27
28   }
29   else if(iFlag==1108){ // 11h
30
31
32     AliAnalysisManager::SetGlobalStr("kJetRunPeriod","LHC11h");
33     AliAnalysisManager::SetGlobalInt("kGridRunRangeLo",166000);
34     AliAnalysisManager::SetGlobalInt("kGridRunRangeUp",171000);
35
36
37     AliAnalysisManager::SetGlobalStr("kDeltaAODJetName","");
38
39
40     AliAnalysisManager::SetGlobalInt("kPhysicsSelectionFlag",AliVEvent::kMB|AliVEvent::kCentral|AliVEvent::kSemiCentral|AliVEvent::kEMCEJE);    
41     AliAnalysisManager::SetGlobalInt("kNTrigger",5);    
42     AliAnalysisManager::SetGlobalInt("kTriggerBit0",AliVEvent::kMB|AliVEvent::kCentral|AliVEvent::kSemiCentral|AliVEvent::kEMCEJE);    
43     AliAnalysisManager::SetGlobalInt("kTriggerBit1",AliVEvent::kMB);    
44     AliAnalysisManager::SetGlobalInt("kTriggerBit2",AliVEvent::kCentral);    
45     AliAnalysisManager::SetGlobalInt("kTriggerBit3",AliVEvent::kSemiCentral);
46     AliAnalysisManager::SetGlobalInt("kTriggerBit4",AliVEvent::kEMCEJE);
47     AliAnalysisManager::SetGlobalStr("kTriggerName0","kMB|kCentral|kSemiCentral|kEMCEJE");    
48     AliAnalysisManager::SetGlobalStr("kTriggerName1","kMB");    
49     AliAnalysisManager::SetGlobalStr("kTriggerName2","kCentral");    
50     AliAnalysisManager::SetGlobalStr("kTriggerName3","kSemiCentral");    
51     AliAnalysisManager::SetGlobalStr("kTriggerName4","kEMCEJE");    
52
53     // jet selection
54     AliAnalysisManager::SetGlobalDbl("kJetEtaWindow",0.5);
55
56     // track selection 
57     AliAnalysisManager::SetGlobalDbl("kTrackEtaWindow",0.9);
58     AliAnalysisManager::SetGlobalDbl("kVertexWindow",10);
59     AliAnalysisManager::SetGlobalInt("kHighPtFilterMask",768);
60     AliAnalysisManager::SetGlobalInt("kHighPtFilterMaskBest",256);
61
62   }
63   else{
64     // catch all
65     AliAnalysisManager::SetGlobalInt("kGridRunRangeLo",110000);
66     AliAnalysisManager::SetGlobalInt("kGridRunRangeUp",160000);
67
68
69     AliAnalysisManager::SetGlobalStr("kDeltaAODJetName","");
70
71     AliAnalysisManager::SetGlobalInt("kPhysicsSelectionFlag",AliVEvent::kMB);
72     AliAnalysisManager::SetGlobalInt("kNTrigger",1);    
73     AliAnalysisManager::SetGlobalInt("kTriggerBit0",AliVEvent::kMB);    
74     AliAnalysisManager::SetGlobalStr("kTriggerName0","kMB");    
75
76     // jet selection
77     AliAnalysisManager::SetGlobalDbl("kJetEtaWindow",0.5);
78
79     // track selection 
80     AliAnalysisManager::SetGlobalDbl("kTrackEtaWindow",0.9);
81     AliAnalysisManager::SetGlobalDbl("kVertexWindow",10);
82     AliAnalysisManager::SetGlobalInt("kHighPtFilterMask",272);
83
84
85
86   }
87
88
89 }