AliPhysics  d565ceb (d565ceb)
AddTaskCleanupVertexingHF.C
Go to the documentation of this file.
2 {
3  //
4  // AddTask for the AliAnalysisTaskSECleanupVertexingHF to delete secondary vertex of the candidates
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("AddTaskD0Distr", "No analysis manager to connect to.");
10  return NULL;
11  }
12  TString filename="";
13  filename = AliAnalysisManager::GetCommonFileName();
14  filename += ":PWG3_D2H_Delete";
15 
16  TString name = "DeleteTask";
18 
19  mgr->AddTask(secVertDelete);
20 
21 
22 //Create containers for input/output
23  TString name = "cinputDeleteMY";
24  AliAnalysisDataContainer *cinputDelete = mgr->CreateContainer(name,TChain::Class(),
25  AliAnalysisManager::kInputContainer);
26 
27 //TString out1name="nEntriesD0_delete";
28 //AliAnalysisDataContainer *coutputmassD01 = mgr->CreateContainer(out1name,TH1F::Class(),AliAnalysisManager::kOutputContainer, filename.Data()); //nev
29 
30 
31 
32 
33  //mgr->ConnectInput(secVertDelete,0,cinputDelete);
34  mgr->ConnectInput(secVertDelete,0,mgr->GetCommonInputContainer());
35 // mgr->ConnectOutput(secVertDelete,1,coutputmassD01);
36  return secVertDelete;
37 }
const char * filename
Definition: TestFCM.C:1
AliAnalysisTaskSECleanupVertexingHF * AddTaskCleanupVertexingHF()