Update (added some options)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Jun 2010 15:13:12 +0000 (15:13 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Jun 2010 15:13:12 +0000 (15:13 +0000)
PWG1/macros/AddTaskVertexESD.C

index 84da9a3..2fc7f20 100644 (file)
@@ -1,4 +1,4 @@
-AliAnalysisTaskVertexESD *AddTaskVertexESD() 
+AliAnalysisTaskVertexESD *AddTaskVertexESD(Bool_t readMC=kFALSE) 
 {
   //
   // Task for validation of the primary vertices (SPD,TPC,ITS+TPC)
@@ -17,6 +17,9 @@ 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);
   AliLog::SetClassDebugLevel("AliAnalysisTaskVertexESD",10);