Updates to run with deltas (L. Cunqueiro)
[u/mrichter/AliRoot.git] / PWG4 / macros / AddTaskJetCore.C
CommitLineData
75bf77e3 1
2
3AliAnalysisTaskJetCore* AddTaskJetCore(const char* bRec1,const char* bRec2, UInt_t filterMask = 272 , Float_t ptTrackMin = 0.15, Int_t eventClassMin = 0, Int_t eventClassMax = 4){
4
ea693273 5 Printf("adding task jet response\n");
75bf77e3 6
7 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
8 if(!mgr){
9 ::Error("AddTaskJetCore", "No analysis manager to connect to.");
10 return NULL;
11 }
12 if(!mgr->GetInputEventHandler()){
13 ::Error("AddTaskJetCore", "This task requires an input event handler.");
14 return NULL;
15 }
16
17
ea693273 18
75bf77e3 19
20 TString typeRec(bRec1);
21 TString typeGen(bRec2);
22
23 AliAnalysisTaskJetCore *task = new AliAnalysisTaskJetCore(Form("JetCore_%s_%s",bRec1,bRec2));
24
25
26
27 task->SetBranchNames(bRec1,bRec2);
28 task->SetOfflineTrgMask(AliVEvent::kMB);
29
30 task->SetEvtClassMin(eventClassMin);
31 task->SetEvtClassMax(eventClassMax);
32 task->SetCentMin(0.);
33 task->SetCentMax(100.);
34
35
36
37 task->SetJetPtMin(0.);
ea693273 38 task->SetAngStructCloseTracks(1);
75bf77e3 39
40
75bf77e3 41
42 mgr->AddTask(task);
43
44
45 AliAnalysisDataContainer *coutputJetCore = mgr->CreateContainer(Form("pwg4jetcore_%s_%s",bRec1,bRec2), TList::Class(),AliAnalysisManager::kOutputContainer,Form("%s:PWG4_jetcore_%s_%s",AliAnalysisManager::GetCommonFileName(),bRec1,bRec2));
46
47
48
49
50
51 mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer());
52 mgr->ConnectOutput(task, 0, mgr->GetCommonOutputContainer());
53 mgr->ConnectOutput(task, 1, coutputJetCore);
54
55 return task;
56}