changed binning, vertex range, leading, subleading
[u/mrichter/AliRoot.git] / PWGJE / macros / AddTaskJetCore.C
CommitLineData
75bf77e3 1
2
a9e585a7 3AliAnalysisTaskJetCore* AddTaskJetCore(const char* bRec1,const char* bRec2, UInt_t filterMask = 272 , Float_t ptTrackMin = 0.15, Int_t kTriggerMask=0, Int_t eventClassMin = 0, Int_t eventClassMax = 4){
75bf77e3 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
a9e585a7 23 AliAnalysisTaskJetCore *task = new AliAnalysisTaskJetCore(Form("JetCore_%s_%s_%d",bRec1,bRec2,kTriggerMask));
75bf77e3 24
25
26
27 task->SetBranchNames(bRec1,bRec2);
d3cc2b50 28 //task->SetOfflineTrgMask(AliVEvent::kMB);
75bf77e3 29
30 task->SetEvtClassMin(eventClassMin);
31 task->SetEvtClassMax(eventClassMax);
32 task->SetCentMin(0.);
33 task->SetCentMax(100.);
34
35
36
37 task->SetJetPtMin(0.);
d3cc2b50 38 //task->SetAngStructCloseTracks(1);
75bf77e3 39
40
75bf77e3 41
42 mgr->AddTask(task);
43
44
a9e585a7 45 AliAnalysisDataContainer *coutputJetCore = mgr->CreateContainer(Form("pwgjejetcore_%s_%s_%d",bRec1,bRec2,kTriggerMask), TList::Class(),AliAnalysisManager::kOutputContainer,Form("%s:PWGJE_jetcore_%s_%s_%d",AliAnalysisManager::GetCommonFileName(),bRec1,bRec2,kTriggerMask));
75bf77e3 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}