updated to addtask macro
[u/mrichter/AliRoot.git] / PWGJE / macros / ConfigLegoTrainPWGJE.C
CommitLineData
68216590 1void ConfigLegoTrainPWGJE(int iFlag = 0){
2
b0ea14de 3 Printf("%s:%d with flag %d",(char*)__FILE__,__LINE__,iFlag);
68216590 4 // Adds the Global Variables depending on the flag
5 //
6
dd048caa 7 if(iFlag==1008){ // 10h
68216590 8 AliAnalysisManager::SetGlobalStr("kJetRunPeriod","LHC10h");
86dd7ebf 9 AliAnalysisManager::SetGlobalInt("kGridRunRangeLo",110000);
10 AliAnalysisManager::SetGlobalInt("kGridRunRangeUp",160000);
11
12 AliAnalysisManager::SetGlobalStr("kDeltaAODJetName","");
13
5f5ae725 14 // event selection
86dd7ebf 15 AliAnalysisManager::SetGlobalInt("kPhysicsSelectionFlag",AliVEvent::kMB);
16 AliAnalysisManager::SetGlobalInt("kNTrigger",1);
17 AliAnalysisManager::SetGlobalInt("kTriggerBit0",AliVEvent::kMB);
18 AliAnalysisManager::SetGlobalStr("kTriggerName0","kMB");
86dd7ebf 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
68216590 28 }
dd048caa 29 else if(iFlag==1108){ // 11h
86dd7ebf 30
31
dd048caa 32 AliAnalysisManager::SetGlobalStr("kJetRunPeriod","LHC11h");
86dd7ebf 33 AliAnalysisManager::SetGlobalInt("kGridRunRangeLo",166000);
34 AliAnalysisManager::SetGlobalInt("kGridRunRangeUp",171000);
35
36
37 AliAnalysisManager::SetGlobalStr("kDeltaAODJetName","");
38
39
d5dd77cf 40 AliAnalysisManager::SetGlobalInt("kPhysicsSelectionFlag",AliVEvent::kMB|AliVEvent::kCentral|AliVEvent::kSemiCentral|AliVEvent::kEMCEJE);
9b894d75 41 AliAnalysisManager::SetGlobalInt("kNTrigger",5);
d5dd77cf 42 AliAnalysisManager::SetGlobalInt("kTriggerBit0",AliVEvent::kMB|AliVEvent::kCentral|AliVEvent::kSemiCentral|AliVEvent::kEMCEJE);
86dd7ebf 43 AliAnalysisManager::SetGlobalInt("kTriggerBit1",AliVEvent::kMB);
44 AliAnalysisManager::SetGlobalInt("kTriggerBit2",AliVEvent::kCentral);
45 AliAnalysisManager::SetGlobalInt("kTriggerBit3",AliVEvent::kSemiCentral);
9b894d75 46 AliAnalysisManager::SetGlobalInt("kTriggerBit4",AliVEvent::kEMCEJE);
47 AliAnalysisManager::SetGlobalStr("kTriggerName0","kMB|kCentral|kSemiCentral|kEMCEJE");
86dd7ebf 48 AliAnalysisManager::SetGlobalStr("kTriggerName1","kMB");
49 AliAnalysisManager::SetGlobalStr("kTriggerName2","kCentral");
50 AliAnalysisManager::SetGlobalStr("kTriggerName3","kSemiCentral");
9b894d75 51 AliAnalysisManager::SetGlobalStr("kTriggerName4","kEMCEJE");
86dd7ebf 52
86dd7ebf 53 // jet selection
54 AliAnalysisManager::SetGlobalDbl("kJetEtaWindow",0.5);
55
56 // track selection
57 AliAnalysisManager::SetGlobalDbl("kTrackEtaWindow",0.9);
58 AliAnalysisManager::SetGlobalDbl("kVertexWindow",10);
019742c7 59 AliAnalysisManager::SetGlobalInt("kHighPtFilterMask",768);
38e78449 60 AliAnalysisManager::SetGlobalInt("kHighPtFilterMaskBest",256);
86dd7ebf 61
dd048caa 62 }
86dd7ebf 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
86dd7ebf 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
68216590 88
89}