ROOT logo

AliAnalysisTaskLRC *AddTaskLRC(Bool_t RunKine=kFALSE, TString OutputRootFolder=":PWGCFLRC")
{
// This macro adds AliAnalysisTaskLRC to existing AnalysisManager
// RunKine paramiter switch task to kinematics analysis 

// Author : Andrey Ivanov , St.Peterburg State University
// Email: Andrey.Ivanov@cern.ch

// Version line : 3.6
// Version 3.6.7

	gROOT->LoadMacro("configLRCAnalysis.C");
	
	//gROOT->LoadMacro("AliAnalysisTaskIA.cxx+g"); 
	

	// A. Get the pointer to the existing analysis manager via the static access method.
	//==============================================================================
	AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
	if (!mgr) {
		Error("AddTaskLRC", "No analysis manager to connect to.");
		return NULL;
	}  
	
	// B. Check the analysis type using the event handlers connected to the analysis
	//    manager. The availability of MC handler cann also be checked here.
	//==============================================================================
	if (!mgr->GetInputEventHandler()) {
		Error("AddTaskLRC", "This task requires an input event handler");
		return NULL;
	}  
	TString type = mgr->GetInputEventHandler()->GetDataType(); 
	cout<<" # TaskLRC - input :"<<type<<"\n";

	// MB - Global2

	taskLRC = createLRCtaskSkeleton("Task_LRC_MB_Global2",RunKine);
	taskLRC->SetTrackCuts(createAliLRCcuts("Global2"));
	addAliLRCProcessors(taskLRC,kTRUE);
	taskLRC->SetVtxDiamond(0.4,0.4,7.0);
	taskLRC->SetMaxPtLimit(1.5);
	taskLRC->SetMinPtLimit(0.3);
	mgr->AddTask(taskLRC);
	configureLRCtaskOutput(taskLRC,":PWGCFLRC");

return taskLRC;
}

 AddTaskLRC.C:1
 AddTaskLRC.C:2
 AddTaskLRC.C:3
 AddTaskLRC.C:4
 AddTaskLRC.C:5
 AddTaskLRC.C:6
 AddTaskLRC.C:7
 AddTaskLRC.C:8
 AddTaskLRC.C:9
 AddTaskLRC.C:10
 AddTaskLRC.C:11
 AddTaskLRC.C:12
 AddTaskLRC.C:13
 AddTaskLRC.C:14
 AddTaskLRC.C:15
 AddTaskLRC.C:16
 AddTaskLRC.C:17
 AddTaskLRC.C:18
 AddTaskLRC.C:19
 AddTaskLRC.C:20
 AddTaskLRC.C:21
 AddTaskLRC.C:22
 AddTaskLRC.C:23
 AddTaskLRC.C:24
 AddTaskLRC.C:25
 AddTaskLRC.C:26
 AddTaskLRC.C:27
 AddTaskLRC.C:28
 AddTaskLRC.C:29
 AddTaskLRC.C:30
 AddTaskLRC.C:31
 AddTaskLRC.C:32
 AddTaskLRC.C:33
 AddTaskLRC.C:34
 AddTaskLRC.C:35
 AddTaskLRC.C:36
 AddTaskLRC.C:37
 AddTaskLRC.C:38
 AddTaskLRC.C:39
 AddTaskLRC.C:40
 AddTaskLRC.C:41
 AddTaskLRC.C:42
 AddTaskLRC.C:43
 AddTaskLRC.C:44
 AddTaskLRC.C:45
 AddTaskLRC.C:46
 AddTaskLRC.C:47
 AddTaskLRC.C:48
 AddTaskLRC.C:49
 AddTaskLRC.C:50