]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG1/macros/AddTaskVertexESD.C
Physics selection QA
[u/mrichter/AliRoot.git] / PWG1 / macros / AddTaskVertexESD.C
index fe003954dfdaa2e6cfbe62c7d8894cae4df44f83..e09909ee2cdc0a1d989be9683c2a5adb77b5a2fe 100644 (file)
@@ -1,4 +1,4 @@
-AliAnalysisTaskVertexESD *AddTaskVertexESD() 
+AliAnalysisTaskVertexESD *AddTaskVertexESD(Bool_t readMC=kFALSE, AliVEvent::EOfflineTriggerTypes triggerType = AliVEvent::kMB
 {
   //
   // Task for validation of the primary vertices (SPD,TPC,ITS+TPC)
@@ -17,8 +17,13 @@ AliAnalysisTaskVertexESD *AddTaskVertexESD()
 
   // Create the task
   AliAnalysisTaskVertexESD *taskVtxESD = new AliAnalysisTaskVertexESD("VertexESD");
+  taskVtxESD->SetReadMC(readMC);
+  taskVtxESD->SetFillNtuple(kFALSE);
+  taskVtxESD->SetRerecoVertexITSTPCHalfEvent(kFALSE);
   taskVtxESD->SetFillNtupleBeamSpot(kTRUE);
   taskVtxESD->SetRerecoVertexITSTPC(kTRUE);
+  taskVtxESD->SetTriggerType(triggerType);
+       
   AliLog::SetClassDebugLevel("AliAnalysisTaskVertexESD",10);
   // Add to the manager
   mgr->AddTask(taskVtxESD);
@@ -27,7 +32,7 @@ AliAnalysisTaskVertexESD *AddTaskVertexESD()
   // Create containers for input/output
   AliAnalysisDataContainer *cInputVtxESD = mgr->CreateContainer("cInputVtxESD",TChain::Class(),AliAnalysisManager::kInputContainer);
 
-  AliAnalysisDataContainer *cOutputVtxESD = mgr->CreateContainer("cOutputVtxESD",TList::Class(),AliAnalysisManager::kOutputContainer,"Vertex.Performance.root");
+  AliAnalysisDataContainer *cOutputVtxESD = mgr->CreateContainer("cOutputVtxESD",TList::Class(),AliAnalysisManager::kOutputContainer, Form("%s:Vertex_Performance", mgr->GetCommonFileName()));
 
 
   // Attach input