New task for 2particle correlations with PID for triggers at high pT (Subikash Choudh...
[u/mrichter/AliRoot.git] / PWGCF / Correlations / macros / TriggerPID / AddTaskPIDCORR.C
1 AliAnalysisTaskPIDCORR *AddTaskPIDCORR()
2 {
3 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
4         if (!mgr) {
5                 
6                 return NULL;
7         } 
8 AliAnalysisTaskPIDCORR* task = new AliAnalysisTaskPIDCORR("PIDCORR_pp7TeV");
9
10 mgr->AddTask(task);
11
12  TString outputFileName = AliAnalysisManager::GetCommonFileName();
13  AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
14  AliAnalysisDataContainer *coutput = mgr->CreateContainer("PIDCORR_pp7TeV", TList::Class(), AliAnalysisManager::kOutputContainer, outputFileName.Data());
15         
16
17 outputFileName.Data()
18
19
20     // connect input/output
21 mgr->ConnectInput(task, 0, cinput);
22 mgr->ConnectOutput(task, 1, coutput);
23
24 return task;
25
26 }
27