some more updates
[u/mrichter/AliRoot.git] / PWGPP / macros / AddTaskFBFqa.C
CommitLineData
81b9e9f2 1AliAnalysisTaskSE* AddTaskFBFqa(Char_t *name, Bool_t debug=kFALSE)
2{
3 // Creates a QA task to explore main observables related to FLOW and BALANCE FUNCTION analysis
4
5 // Get the pointer to the existing analysis manager via the static access method.
6 //==============================================================================
7 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
8 if (!mgr) {
9 ::Error("AddTaskFBFqa", "No analysis manager to connect to.");
10 return NULL;
11 }
12 AliAnalysisDataContainer *cinput1 = mgr->GetCommonInputContainer();
13
14 // Configure analysis
15 //===========================================================================
16 //gROOT->LoadMacro("AliGlobalFBFqa.cxx++");
17 AliGlobalFBFqa *taskChk = new AliGlobalFBFqa( name );
18 if(debug)
19 taskChkMB->SetDebugON();
20 mgr->ConnectInput (taskChk,0,cinput1);
21 AliAnalysisDataContainer *outListMB = mgr->CreateContainer(name,TList::Class(),
22 AliAnalysisManager::kOutputContainer,
23 Form("%s:%s", mgr->GetCommonFileName(),name) );
24 mgr->ConnectOutput(taskChk,1,outListMB);
25
26 return taskChk;
27}
28
29