]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/vertexingHF/AddTaskBtoJPSItoEle.C
Included check for errors in the stdout
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AddTaskBtoJPSItoEle.C
1 AliAnalysisTaskSEBtoJPSItoEle *AddTaskBtoJPSItoEle() 
2 {
3   //
4   // Test macro for the AliAnalysisTaskSEBtoJPSItoEle 
5   // starting from AliAOD.root file with HF + Like Sign candidates.
6   // C.Di Giglio, carmelo.digiglio@ba.infn.it
7   //
8
9   // Get the pointer to the existing analysis manager via the static access method.
10   //==============================================================================
11   AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
12   if (!mgr) {
13     ::Error("AddTaskBtoJPSItoEle", "No analysis manager to connect to.");
14     return NULL;
15   }   
16
17   // Cdf unbinned log-likelihood fit analysis task    
18   AliAnalysisTaskSEBtoJPSItoEle *hfTask = new AliAnalysisTaskSEBtoJPSItoEle("CdfFitAnalysis");
19   hfTask->SetDebugLevel(0);
20
21   mgr->AddTask(hfTask);
22
23   //
24   // Create containers for input/output
25   mgr->ConnectInput(hfTask,0,mgr->GetCommonInputContainer());
26
27   AliAnalysisDataContainer *coutput = mgr->CreateContainer("coutputCdfFit",TList::Class(),
28                                                            AliAnalysisManager::kOutputContainer,       
29                                                            "CdfFit.root");
30   mgr->ConnectOutput(hfTask,1,coutput);
31
32   return hfTask;
33 }