]>
Commit | Line | Data |
---|---|---|
5bf1593b | 1 | AliJetReader *CreateJetReader(Char_t *jr,UInt_t filterMask); // Common config\r |
76f9015f | 2 | AliJetFinder *CreateJetFinder(Char_t *jf,Float_t radius = -1);\r |
0651dd18 | 3 | \r |
5bf1593b | 4 | AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf,Float_t radius = -1,UInt_t filterMask = 0); // for the new AF\r |
625fb1d6 | 5 | Int_t AddTaskJetsDelta(char *nonStdFile = "",UInt_t filterMask = 0,Bool_t kUseAODMC = kTRUE,UInt_t runFlag = 1|4|32|128|256); \r |
5bf1593b | 6 | AliAnalysisTaskJets *AddTaskJets(UInt_t filterMask = 0);\r |
0651dd18 | 7 | \r |
5bf1593b | 8 | AliAnalysisTaskJets *AddTaskJets(UInt_t filterMask ){\r |
9902ce1e | 9 | // fills the standard "jets" branch in the AOD\r |
10 | // need the ESDFilter to run before, to access the AODtracks\r | |
11 | // Tracks selected by the first Filter (1<<0)\r | |
12 | // needs to be adapted for different cuts\r | |
13 | \r | |
14 | // UA1 as standard chosen, since it is the most robust and simple JF\r | |
15 | // R = 0.4 suffficient to provide accurate jet axis for correlation studies\r | |
16 | // energy resolution suffers a little\r | |
17 | // Acceptance of jets not limited by the Jet Finder but should be done\r | |
18 | // by user to abs(eta) < 0.5 \r | |
19 | \r | |
5bf1593b | 20 | return AddTaskJets("AOD","UA1",0.4,filterMask);\r |
9902ce1e | 21 | \r |
22 | }\r | |
23 | \r | |
24 | \r | |
25 | \r | |
121e4bd5 | 26 | Int_t AddTaskJetsDelta(char *nonStdFile,UInt_t filterMask,Bool_t kUseAODMC,UInt_t runFlag){\r |
b486b6c5 | 27 | \r |
28 | // Adds a whole set of jet finders all to be written\r | |
29 | // to a delta AOD\r | |
30 | \r | |
31 | // this can in principle be done also with on the fly \r | |
32 | // if we have an ESD input jet fidner task does automatically fetch the ouput aod\r | |
33 | \r | |
34 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();\r | |
35 | if (!mgr) {\r | |
36 | ::Error("AddTaskJetsDelta", "No analysis manager to connect to.");\r | |
37 | return 0;\r | |
38 | } \r | |
39 | \r | |
40 | // Check the analysis type using the event handlers connected to the analysis manager.\r | |
41 | //==============================================================================\r | |
42 | if (!mgr->GetInputEventHandler()) {\r | |
43 | ::Error("AddTaskJetsDelta", "This task requires an input event handler");\r | |
44 | return 0;\r | |
45 | }\r | |
46 | \r | |
47 | AliAODHandler *aodh = (AliAODHandler*)mgr->GetOutputEventHandler();\r | |
48 | if (!aodh) {\r | |
49 | ::Error("AddTaskJetsDelta", "This task needs an output event handler");\r | |
50 | return 0;\r | |
51 | } \r | |
52 | \r | |
f6d6265b | 53 | TString outFile(nonStdFile);\r |
b486b6c5 | 54 | \r |
b486b6c5 | 55 | AliAnalysisTaskJets *jetana = 0;\r |
56 | Int_t iCount = 0;\r | |
57 | \r | |
121e4bd5 | 58 | // Jet Fidners Selected by run flag first bit 2^0 second by 2^1 etc\r |
784b191d | 59 | const char *cJF[14] = {"UA1","UA1","UA1", "CDF", "CDF","DA","DA","SISCONE","SISCONE","FASTJET","FASTJET","FASTKT","FASTKT","UA1LO"};\r |
60 | const Float_t radius[14] = { 0.4, 0.7, 1.0, 0.4, 0.7, 0.4, 0.7, 0.4, 0.7, 0.4, 0.7, 0.4, 0.7, 0.4};\r | |
61 | UInt_t flag[14] = { 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7};\r | |
0ff308fd | 62 | // flag[5] = 0; // set siscone to 0 for proof mode...\r |
3a34b9a9 | 63 | // flag first bit AOD, second bit AODMC2 third bit AODMC2 third (8) bit AOODMC2b (limited acceptance)\r |
b486b6c5 | 64 | // i.e. 7 all, 6 only MC2 and MC\r |
65 | // this stay at three\r | |
3a34b9a9 | 66 | const char *cReader[4] = {"AOD","AODMC","AODMC2","AODMC2b"}; \r |
b486b6c5 | 67 | \r |
121e4bd5 | 68 | \r |
69 | \r | |
3a34b9a9 | 70 | for(int i = 0; i< 14;i++){\r |
121e4bd5 | 71 | if(!(runFlag&(1<<i)))continue;\r |
72 | if(!kUseAODMC)flag[i]&=1; // switch OFF MC if we do not have it\r | |
3a34b9a9 | 73 | for(int ib = 0;ib<4;ib++){ \r |
b486b6c5 | 74 | if(flag[i]&(1<<ib)){\r |
5bf1593b | 75 | jetana = AddTaskJets(cReader[ib],cJF[i],radius[i],filterMask);\r |
b486b6c5 | 76 | if(jetana){\r |
77 | char *cRadius = "";\r | |
8a4430e1 | 78 | if(radius[i]>0)cRadius = Form("%02d",(int)((radius[i]+0.01)*10.)); // add an offset beacuse of precision\r |
f4279ef1 | 79 | // jetana->SetNonStdBranch(Form("jets%s_%s%s",cReader[ib],cJF[i],cRadius)); // done in addtask jets\r |
f6d6265b | 80 | if(outFile.Length()>0)jetana->SetNonStdOutputFile(outFile.Data());\r |
b486b6c5 | 81 | iCount++;\r |
82 | }\r | |
83 | }\r | |
84 | }\r | |
85 | }\r | |
86 | \r | |
87 | Printf("Added %d JetFinders",iCount);\r | |
88 | }\r | |
89 | \r | |
90 | \r | |
91 | \r | |
92 | \r | |
93 | \r | |
94 | \r | |
5bf1593b | 95 | AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf, Float_t radius,UInt_t filterMask)\r |
672f1183 | 96 | {\r |
0651dd18 | 97 | // Creates a jet finder task, configures it and adds it to the analysis manager.\r |
672f1183 | 98 | \r |
99 | // Get the pointer to the existing analysis manager via the static access method.\r | |
100 | //==============================================================================\r | |
101 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();\r | |
102 | if (!mgr) {\r | |
103 | ::Error("AddTaskJets", "No analysis manager to connect to.");\r | |
104 | return NULL;\r | |
105 | } \r | |
106 | \r | |
107 | // Check the analysis type using the event handlers connected to the analysis manager.\r | |
108 | //==============================================================================\r | |
109 | if (!mgr->GetInputEventHandler()) {\r | |
110 | ::Error("AddTaskJets", "This task requires an input event handler");\r | |
111 | return NULL;\r | |
112 | }\r | |
113 | \r | |
0511798f | 114 | AliAODHandler *aodh = (AliAODHandler*)mgr->GetOutputEventHandler();\r |
115 | if (!aodh) {\r | |
116 | ::Error("AddTaskJets", "This task needs an output event handler");\r | |
117 | return NULL;\r | |
118 | } \r | |
119 | \r | |
120 | \r | |
672f1183 | 121 | // Create the task and configure it.\r |
122 | //===========================================================================\r | |
123 | AliAnalysisTaskJets *jetana;\r | |
5bf1593b | 124 | AliJetReader *er = CreateJetReader(jr,filterMask);\r |
672f1183 | 125 | // Define jet header and jet finder\r |
76f9015f | 126 | AliJetFinder *jetFinder = CreateJetFinder(jf,radius);\r |
0651dd18 | 127 | \r |
672f1183 | 128 | if (jetFinder){\r |
672f1183 | 129 | if (er) jetFinder->SetJetReader(er);\r |
130 | }\r | |
131 | \r | |
76f9015f | 132 | char *cRadius = "";\r |
8a4430e1 | 133 | if(radius>0)cRadius = Form("%02d",(int)((radius+0.01)*10.));\r |
76f9015f | 134 | \r |
b486b6c5 | 135 | jetana = new AliAnalysisTaskJets(Form("JetAnalysis%s_%s%s",jr,jf,cRadius));\r |
58ef946c | 136 | \r |
f4279ef1 | 137 | \r |
138 | \r | |
be60d38b | 139 | TString c_jr(jr);\r |
140 | c_jr.ToLower();\r | |
141 | TString c_jf(jf);\r | |
142 | c_jf.ToLower();\r | |
143 | \r | |
f4279ef1 | 144 | \r |
145 | if (jr == "AOD"){\r | |
146 | if(c_jf.Contains("ua1") && TMath::Abs(radius-0.4) < 0.01){\r | |
147 | // do nothing\r | |
148 | }\r | |
149 | else{\r | |
150 | jetana->SetNonStdBranch(Form("jets%s_%s%s",jr,jf,cRadius));\r | |
151 | }\r | |
152 | }\r | |
153 | \r | |
b486b6c5 | 154 | AliAnalysisDataContainer *cout_jet = mgr->CreateContainer(Form("jethist_%s_%s%s",c_jr.Data(),c_jf.Data(),cRadius), TList::Class(),\r |
561a15fa | 155 | AliAnalysisManager::kOutputContainer, Form("%s:PWG4_jethist_%s_%s%s",AliAnalysisManager::GetCommonFileName(),\r |
421320ab | 156 | c_jr.Data(),c_jf.Data(),cRadius));\r |
157 | /*\r | |
158 | AliAnalysisDataContainer *cout_jet = mgr->CreateContainer(Form("jethist_%s_%s%s",c_jr.Data(),c_jf.Data(),cRadius), TList::Class(),\r | |
159 | AliAnalysisManager::kOutputContainer,"ckb_test.root");\r | |
160 | */\r | |
672f1183 | 161 | // Connect jet finder to task.\r |
162 | jetana->SetJetFinder(jetFinder);\r | |
163 | jetana->SetConfigFile("");\r | |
19027d3e | 164 | jetana->SetDebugLevel(0);\r |
672f1183 | 165 | mgr->AddTask(jetana);\r |
166 | \r | |
167 | // Create ONLY the output containers for the data produced by the task.\r | |
168 | // Get and connect other common input/output containers via the manager as below\r | |
169 | //==============================================================================\r | |
170 | mgr->ConnectInput (jetana, 0, mgr->GetCommonInputContainer());\r | |
171 | // AOD output slot will be used in a different way in future\r | |
172 | mgr->ConnectOutput (jetana, 0, mgr->GetCommonOutputContainer());\r | |
173 | mgr->ConnectOutput (jetana, 1, cout_jet);\r | |
174 | \r | |
175 | return jetana;\r | |
176 | }\r | |
0651dd18 | 177 | \r |
76f9015f | 178 | AliJetFinder *CreateJetFinder(Char_t *jf,Float_t radius){\r |
70144f07 | 179 | AliJetFinder *jetFinder = 0;\r |
0651dd18 | 180 | \r |
181 | switch (jf) {\r | |
182 | case "CDF":\r | |
183 | AliCdfJetHeader *jh = new AliCdfJetHeader();\r | |
184 | jh->SetRadius(0.7);\r | |
8a4430e1 | 185 | if(radius>0)jh->SetRadius(radius); \r |
5bf1593b | 186 | jh->SetAODwrite(kTRUE);\r |
58ef946c | 187 | jh->SetAODtracksWrite(kTRUE);\r |
5bf1593b | 188 | // jh->SetDebugCDF(1);\r |
0651dd18 | 189 | jetFinder = new AliCdfJetFinder();\r |
0651dd18 | 190 | if (jh) jetFinder->SetJetHeader(jh);\r |
191 | break;\r | |
192 | \r | |
193 | case "DA":\r | |
194 | AliDAJetHeader *jh=new AliDAJetHeader();\r | |
195 | jh->SetComment("DA jet code with default parameters");\r | |
196 | jh->SelectJets(kTRUE);\r | |
f25f827d | 197 | // jh->SetNeff(200);\r |
198 | // jh->SetEtaEff(2.2);\r | |
8a4430e1 | 199 | if(radius>0)jh->SetRadius(radius);\r |
198864bf | 200 | jh->SetEtMin(5.);\r |
0651dd18 | 201 | jetFinder = new AliDAJetFinder();\r |
202 | if (jh) jetFinder->SetJetHeader(jh);\r | |
203 | break;\r | |
204 | \r | |
70144f07 | 205 | case "FASTJET":\r |
b486b6c5 | 206 | // DEFAULT is ANTI KT\r |
70144f07 | 207 | AliFastJetHeaderV1 *jh = new AliFastJetHeaderV1();\r |
208 | jh->SetRparam(0.4); // setup parameters \r | |
209 | if(radius>0)jh->SetRparam(radius);\r | |
210 | jh->SetAlgorithm(2); // antikt from fastjet/JetDefinition.hh\r | |
0651dd18 | 211 | jetFinder = new AliFastJetFinder();\r |
0ff308fd | 212 | jh->SetPtMin(1);\r |
0651dd18 | 213 | if (jh) jetFinder->SetJetHeader(jh);\r |
214 | break;\r | |
215 | \r | |
8a4430e1 | 216 | case "FASTKT":\r |
217 | AliFastJetHeaderV1 *jh = new AliFastJetHeaderV1();\r | |
218 | jh->SetRparam(0.4); // setup parameters \r | |
219 | if(radius>0)jh->SetRparam(radius);\r | |
220 | jh->SetAlgorithm(0); // kt from fastjet/JetDefinition.hh\r | |
0ff308fd | 221 | jh->SetPtMin(1);\r |
8a4430e1 | 222 | jetFinder = new AliFastJetFinder();\r |
223 | if (jh) jetFinder->SetJetHeader(jh);\r | |
224 | break;\r | |
225 | \r | |
226 | case "SISCONE":\r | |
227 | AliSISConeJetHeader * jh = new AliSISConeJetHeader();\r | |
228 | \r | |
229 | jh->SetJetEtaMax(1.5);\r | |
230 | jh->SetJetEtaMin(-1.5);\r | |
231 | \r | |
232 | //siscone parameters\r | |
233 | jh->SetConeRadius(0.4); // default cone radius\r | |
234 | if(radius>0)jh->SetConeRadius(radius); // cone radius\r | |
235 | \r | |
236 | jh->SetOverlapThreshold(0.75); // overlap parameter, between 0 and 1 excluded!! 0.75 value is advised\r | |
237 | jh->SetPtProtojetMin(0); // pt min of protojets\r | |
53c63663 | 238 | jh->SetMinJetPt(5); // Ptmin of jets (GeV)\r |
8a4430e1 | 239 | \r |
240 | //do you want to subtract BG (0 = no, 1 = yes)\r | |
241 | jh->SetBGMode(0);\r | |
242 | \r | |
243 | //for background\r | |
244 | jh->SetRapRange( -0.9, 0.9); // rapidity range for subtracting background must be < ghostmaxrap-0.95*R\r | |
245 | jh->SetPhiRange(0 , 2*TMath::Pi()); // phi range for subtracting background\r | |
246 | \r | |
247 | //to determine jets area\r | |
248 | jh->SetBGAlgorithm(1); // algorithm for rho calculation : 0 = kT, 1 = Cambridge\r | |
249 | jh->SetGhostEtaMax(4); // eta max where ghosts are generated \r | |
250 | jh->SetGhostArea(0.05); // area of a ghost \r | |
251 | jh->SetMeanGhostKt(1e-100); // average transverse momentum of the ghosts.\r | |
252 | jh->SetAreaTypeNumber(4); // from 1 to 5 : 1 = active_area, 2 = active_area_explicit_ghosts, 3 = one_ghost_passive_area, 4 = passive_area, 5 = voronoi_area\r | |
253 | jetFinder = new AliSISConeJetFinder();\r | |
254 | if (jh) jetFinder->SetJetHeader(jh);\r | |
255 | break;\r | |
256 | \r | |
0651dd18 | 257 | case "UA1":\r |
258 | AliUA1JetHeaderV1 *jh=new AliUA1JetHeaderV1();\r | |
259 | jh->SetComment("UA1 jet code with default parameters");\r | |
ba146e16 | 260 | jh->BackgMode(0);\r |
261 | jh->SetRadius(0.4);\r | |
76f9015f | 262 | if(radius>0)jh->SetRadius(radius);\r |
0651dd18 | 263 | jh->SetEtSeed(4.);\r |
c40ab9fa | 264 | jh->SetNAcceptJets(6);\r |
0651dd18 | 265 | jh->SetLegoNbinPhi(432);\r |
266 | jh->SetLegoNbinEta(274);\r | |
267 | jh->SetLegoEtaMin(-2);\r | |
268 | jh->SetLegoEtaMax(+2);\r | |
9902ce1e | 269 | jh->SetMinJetEt(5.);\r |
ba146e16 | 270 | jh->SetJetEtaMax(1.5);\r |
271 | jh->SetJetEtaMin(-1.5);\r | |
0651dd18 | 272 | \r |
273 | jetFinder = new AliUA1JetFinderV1();\r | |
274 | if (jh) jetFinder->SetJetHeader(jh);\r | |
275 | break;\r | |
0ff308fd | 276 | case "UA1LO":\r |
277 | AliUA1JetHeaderV1 *jh=new AliUA1JetHeaderV1();\r | |
278 | jh->SetComment("UA1 jet code with Lo Pt settings parameters");\r | |
279 | jh->BackgMode(0);\r | |
280 | jh->SetRadius(0.4);\r | |
281 | if(radius>0)jh->SetRadius(radius);\r | |
282 | jh->SetEtSeed(1.);\r | |
283 | jh->SetNAcceptJets(6);\r | |
284 | jh->SetLegoNbinPhi(432);\r | |
285 | jh->SetLegoNbinEta(274);\r | |
286 | jh->SetLegoEtaMin(-2);\r | |
287 | jh->SetLegoEtaMax(+2);\r | |
288 | jh->SetMinJetEt(1.);\r | |
289 | jh->SetJetEtaMax(1.5);\r | |
290 | jh->SetJetEtaMin(-1.5);\r | |
291 | \r | |
292 | jetFinder = new AliUA1JetFinderV1();\r | |
293 | if (jh) jetFinder->SetJetHeader(jh);\r | |
294 | break;\r | |
295 | \r | |
296 | \r | |
0651dd18 | 297 | \r |
ba146e16 | 298 | case "UA1MC":\r |
299 | AliUA1JetHeaderV1 *jh=new AliUA1JetHeaderV1();\r | |
300 | jh->SetComment("UA1 jet code with default MC parameters");\r | |
301 | jh->BackgMode(0);\r | |
302 | jh->SetRadius(1.0);\r | |
76f9015f | 303 | if(radius>0)jh->SetRadius(radius);\r |
ba146e16 | 304 | jh->SetEtSeed(4.);\r |
c40ab9fa | 305 | jh->SetNAcceptJets(6);\r |
ba146e16 | 306 | jh->SetLegoNbinPhi(432);\r |
307 | jh->SetLegoNbinEta(274);\r | |
308 | jh->SetLegoEtaMin(-2);\r | |
309 | jh->SetLegoEtaMax(+2);\r | |
9902ce1e | 310 | jh->SetMinJetEt(5.);\r |
ba146e16 | 311 | jh->SetJetEtaMax(1.5);\r |
312 | jh->SetJetEtaMin(-1.5);\r | |
ba146e16 | 313 | jetFinder = new AliUA1JetFinderV1();\r |
314 | if (jh) jetFinder->SetJetHeader(jh);\r | |
315 | break;\r | |
70144f07 | 316 | default:\r |
317 | Printf("\n >>>>>>> AddTaskJets Error Wrong jet finder selected\n");\r | |
318 | break;\r | |
0651dd18 | 319 | }\r |
320 | \r | |
321 | return jetFinder;\r | |
322 | \r | |
323 | }\r | |
324 | \r | |
5bf1593b | 325 | AliJetReader *CreateJetReader(Char_t *jr,UInt_t filterMask){\r |
0651dd18 | 326 | AliJetReader *er = 0;\r |
327 | \r | |
328 | switch (jr) {\r | |
329 | case "MC":\r | |
330 | AliJetKineReaderHeader *jrh = new AliJetKineReaderHeader();\r | |
331 | jrh->SetComment("MC full Kinematics");\r | |
332 | jrh->SetFastSimTPC(kFALSE);\r | |
333 | jrh->SetFastSimEMCAL(kFALSE);\r | |
334 | jrh->SetPtCut(0.);\r | |
335 | jrh->SetFiducialEta(-2.1,2.1); // to take all MC particles default is 0 .9 \r | |
336 | // Define reader and set its header \r | |
337 | er = new AliJetKineReader();\r | |
338 | er->SetReaderHeader(jrh);\r | |
339 | break;\r | |
ba146e16 | 340 | case "MC2":\r |
341 | AliJetKineReaderHeader *jrh = new AliJetKineReaderHeader();\r | |
5dbee319 | 342 | jrh->SetComment("MC full Kinematics spearate config charged only");\r |
ba146e16 | 343 | jrh->SetFastSimTPC(kFALSE);\r |
344 | jrh->SetFastSimEMCAL(kFALSE);\r | |
5dbee319 | 345 | jrh->SetChargedOnly(kTRUE);\r |
ba146e16 | 346 | jrh->SetPtCut(0.);\r |
347 | jrh->SetFiducialEta(-2.1,2.1); // to take all MC particles default is 0 .9 \r | |
348 | // Define reader and set its header \r | |
349 | er = new AliJetKineReader();\r | |
350 | er->SetReaderHeader(jrh);\r | |
351 | break;\r | |
0651dd18 | 352 | case "ESD":\r |
353 | AliJetESDReaderHeader *jrh = new AliJetESDReaderHeader();\r | |
354 | jrh->SetComment("Testing");\r | |
355 | jrh->SetFirstEvent(0);\r | |
356 | jrh->SetLastEvent(1000);\r | |
357 | jrh->SetPtCut(0.);\r | |
358 | jrh->SetReadSignalOnly(kFALSE);\r | |
359 | // Define reader and set its header \r | |
360 | er = new AliJetESDReader();\r | |
361 | er->SetReaderHeader(jrh);\r | |
362 | break;\r | |
363 | \r | |
364 | case "AOD":\r | |
365 | AliJetAODReaderHeader *jrh = new AliJetAODReaderHeader();\r | |
366 | jrh->SetComment("AOD Reader");\r | |
367 | jrh->SetPtCut(0.);\r | |
8a4430e1 | 368 | jrh->SetTestFilterMask(16); // Change this one for a different set of cuts\r |
5bf1593b | 369 | if(filterMask>0)jrh->SetTestFilterMask(filterMask); \r |
0651dd18 | 370 | // Define reader and set its header\r |
371 | er = new AliJetAODReader();\r | |
372 | er->SetReaderHeader(jrh);\r | |
373 | break;\r | |
0c43aaa9 | 374 | case "AODMC":\r |
375 | AliJetAODReaderHeader *jrh = new AliJetAODReaderHeader();\r | |
376 | jrh->SetComment("AOD MC Reader");\r | |
377 | jrh->SetPtCut(0.);\r | |
378 | jrh->SetFiducialEta(-2.1,2.1); // to take all MC particles default is 0.9\r | |
379 | jrh->SetReadAODMC(1);// 1 all primary MC , 2 all primary charged\r | |
380 | // Define reader and set its header\r | |
381 | er = new AliJetAODReader();\r | |
382 | er->SetReaderHeader(jrh);\r | |
383 | break;\r | |
5dbee319 | 384 | case "AODMC2":\r |
385 | AliJetAODReaderHeader *jrh = new AliJetAODReaderHeader();\r | |
386 | jrh->SetComment("AOD MC Reader");\r | |
387 | jrh->SetPtCut(0.);\r | |
388 | jrh->SetFiducialEta(-2.1,2.1); // to take all MC particles default is 0.9\r | |
389 | jrh->SetReadAODMC(2);// 1 all primary MC , 2 all primary charged\r | |
390 | // Define reader and set its header\r | |
391 | er = new AliJetAODReader();\r | |
392 | er->SetReaderHeader(jrh);\r | |
393 | break;\r | |
3a34b9a9 | 394 | case "AODMC2b":\r |
395 | AliJetAODReaderHeader *jrh = new AliJetAODReaderHeader();\r | |
396 | jrh->SetComment("AOD MC Reader");\r | |
397 | jrh->SetPtCut(0.);\r | |
398 | jrh->SetFiducialEta(-0.9,0.9); // to take all MC particles default is 0.9\r | |
399 | jrh->SetReadAODMC(2);// 1 all primary MC , 2 all primary charged\r | |
400 | // Define reader and set its header\r | |
401 | er = new AliJetAODReader();\r | |
402 | er->SetReaderHeader(jrh);\r | |
403 | break;\r | |
5dbee319 | 404 | \r |
0651dd18 | 405 | default:\r |
406 | ::Error("AddTaskJets", "Wrong jet reader selected\n");\r | |
407 | return 0;\r | |
408 | }\r | |
409 | \r | |
410 | return er;\r | |
411 | \r | |
412 | }\r |