]>
Commit | Line | Data |
---|---|---|
a0895cca | 1 | |
2 | AliTwoParticlePIDCorrKine *AddTaskTwoParticlePIDCorrKine(){ | |
3 | ||
4 | ||
5 | AliTwoParticlePIDCorrKine* kine = new AliTwoParticlePIDCorrKine(""); | |
6 | ||
7 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); | |
8 | if (!mgr) { | |
9 | cout<<"AliAnalysisKine", "No analysis manager to connect to."<<endl; | |
10 | return NULL; | |
11 | } | |
12 | ||
13 | // Check the analysis type using the event handlers connected to the analysis manager. | |
14 | //=========================================================================== | |
15 | if (!mgr->GetInputEventHandler()) { | |
16 | ::Error("AddKineBF", "This Kine requires an input event handler"); | |
17 | return NULL; | |
18 | } | |
19 | ||
20 | TString type = mgr->GetInputEventHandler()->GetDataType(); | |
21 | ||
22 | mgr->AddTask(kine); | |
23 | ||
24 | ||
25 | AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer(); | |
0626535c | 26 | AliAnalysisDataContainer *coutput = mgr->CreateContainer("coutput", TList::Class(), AliAnalysisManager::kOutputContainer, "AnalysisResults.root"); |
a0895cca | 27 | |
28 | // connect input/output | |
29 | mgr->ConnectInput(kine, 0, cinput); | |
30 | mgr->ConnectOutput(kine, 1, coutput); | |
31 | ||
32 | return kine; | |
33 | ||
34 | ||
35 | } | |
36 | ||
37 | ||
38 | ||
39 |