missing initialisation
[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
54     // aceptance windows for Spectrum task
55
56     Float_t fid = 0.2;
57     Float_t fEMCPhiLo = 2.17 - 1.87/2. + fid; // some fiducial region
58     Float_t fEMCPhiUp = 2.17 + 1.87/2. - fid; // some fiducial region
59     Float_t fEMCEtaLo = - 0.7 + fid;
60     Float_t fEMCEtaUp =   0.7 - fid;
61     AliAnalysisManager::SetGlobalInt("kNAcceptanceSpec",2);    
62     AliAnalysisManager::SetGlobalDbl("kAcceptancePhiMinSpec0",fEMCPhiLo);
63     AliAnalysisManager::SetGlobalDbl("kAcceptancePhiMaxSpec0",fEMCPhiUp);
64     AliAnalysisManager::SetGlobalDbl("kAcceptanceEtaMinSpec0",fEMCEtaLo);
65     AliAnalysisManager::SetGlobalDbl("kAcceptanceEtaMaxSpec0",fEMCEtaUp);
66
67     // iroc 13 
68     AliAnalysisManager::SetGlobalDbl("kAcceptancePhiMinSpec1",4.7-0.4);
69     AliAnalysisManager::SetGlobalDbl("kAcceptancePhiMaxSpec1",4.7+0.4);
70     AliAnalysisManager::SetGlobalDbl("kAcceptanceEtaMinSpec1",-0.9);
71     AliAnalysisManager::SetGlobalDbl("kAcceptanceEtaMaxSpec1",0);
72
73
74     // jet selection
75     AliAnalysisManager::SetGlobalDbl("kJetEtaWindow",0.5);
76
77     // track selection 
78     AliAnalysisManager::SetGlobalDbl("kTrackEtaWindow",0.9);
79     AliAnalysisManager::SetGlobalDbl("kVertexWindow",10);
80     AliAnalysisManager::SetGlobalInt("kHighPtFilterMask",768);
81     AliAnalysisManager::SetGlobalInt("kHighPtFilterMaskBest",256);
82
83   }
84   else{
85     // catch all
86     AliAnalysisManager::SetGlobalInt("kGridRunRangeLo",110000);
87     AliAnalysisManager::SetGlobalInt("kGridRunRangeUp",160000);
88
89
90     AliAnalysisManager::SetGlobalStr("kDeltaAODJetName","");
91
92     AliAnalysisManager::SetGlobalInt("kPhysicsSelectionFlag",AliVEvent::kMB);
93     AliAnalysisManager::SetGlobalInt("kNTrigger",1);    
94     AliAnalysisManager::SetGlobalInt("kTriggerBit0",AliVEvent::kMB);    
95     AliAnalysisManager::SetGlobalStr("kTriggerName0","kMB");    
96
97     // jet selection
98     AliAnalysisManager::SetGlobalDbl("kJetEtaWindow",0.5);
99
100     // track selection 
101     AliAnalysisManager::SetGlobalDbl("kTrackEtaWindow",0.9);
102     AliAnalysisManager::SetGlobalDbl("kVertexWindow",10);
103     AliAnalysisManager::SetGlobalInt("kHighPtFilterMask",272);
104
105
106
107   }
108
109
110 }