1 AliPhiCorrelationsQATask *AddTaskPhiCorrelationsQA()
\r
3 // Get the pointer to the existing analysis manager via the static access method.
\r
4 //==============================================================================
\r
5 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
\r
7 ::Error("AddTaskPhiCorrelations", "No analysis manager to connect to.");
\r
11 // Create the task and configure it.
\r
12 //===========================================================================
\r
13 AliPhiCorrelationsQATask* ana = new AliPhiCorrelationsQATask("");
\r
15 ana->SelectCollisionCandidates();
\r
19 // Create ONLY the output containers for the data produced by the task.
\r
20 // Get and connect other common input/output containers via the manager as below
\r
21 //==============================================================================
\r
22 AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("histosPhiCorrelationsQA", TList::Class(),AliAnalysisManager::kOutputContainer,Form("%s", AliAnalysisManager::GetCommonFileName()));
\r
24 mgr->ConnectInput (ana, 0, mgr->GetCommonInputContainer());
\r
25 mgr->ConnectOutput (ana, 1, coutput1 );
\r