]>
Commit | Line | Data |
---|---|---|
32bb35a1 | 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"); | |
3b1598da | 19 | hfTask->SetDebugLevel(0); |
32bb35a1 | 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 | } |