]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGCF/EBYE/macros/AddTaskLRC.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGCF / EBYE / macros / AddTaskLRC.C
CommitLineData
41f63c69 1
a022cbd0 2AliAnalysisTaskLRC *AddTaskLRC(Bool_t RunKine=kFALSE, TString OutputRootFolder=":PWGCFLRC")
41cfced7 3{
4// This macro adds AliAnalysisTaskLRC to existing AnalysisManager
d96e5666 5// RunKine paramiter switch task to kinematics analysis
41cfced7 6
d96e5666 7// Author : Andrey Ivanov , St.Peterburg State University
8// Email: Andrey.Ivanov@cern.ch
41cfced7 9
41f63c69 10// Version line : 3.6
11// Version 3.6.7
12
13 gROOT->LoadMacro("configLRCAnalysis.C");
14
15 //gROOT->LoadMacro("AliAnalysisTaskIA.cxx+g");
16
17
18 // A. Get the pointer to the existing analysis manager via the static access method.
19 //==============================================================================
20 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
21 if (!mgr) {
22 Error("AddTaskLRC", "No analysis manager to connect to.");
23 return NULL;
24 }
25
26 // B. Check the analysis type using the event handlers connected to the analysis
27 // manager. The availability of MC handler cann also be checked here.
28 //==============================================================================
29 if (!mgr->GetInputEventHandler()) {
30 Error("AddTaskLRC", "This task requires an input event handler");
31 return NULL;
32 }
33 TString type = mgr->GetInputEventHandler()->GetDataType();
34 cout<<" # TaskLRC - input :"<<type<<"\n";
35
36 // MB - Global2
37
38 taskLRC = createLRCtaskSkeleton("Task_LRC_MB_Global2",RunKine);
39 taskLRC->SetTrackCuts(createAliLRCcuts("Global2"));
40 addAliLRCProcessors(taskLRC,kTRUE);
41 taskLRC->SetVtxDiamond(0.4,0.4,7.0);
42 taskLRC->SetMaxPtLimit(1.5);
43 taskLRC->SetMinPtLimit(0.3);
44 mgr->AddTask(taskLRC);
a022cbd0 45 configureLRCtaskOutput(taskLRC,":PWGCFLRC");
41f63c69 46
47return taskLRC;
d96e5666 48}
41cfced7 49