]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 84da9a34ab95e85b71079d1cc414a014ca5f9e1d..2fc7f20c6d1093ea0921624bb681d1ab59705c3f 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)
 {
   //
   // 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");
 
   // 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);
   taskVtxESD->SetFillNtupleBeamSpot(kTRUE);
   taskVtxESD->SetRerecoVertexITSTPC(kTRUE);
   AliLog::SetClassDebugLevel("AliAnalysisTaskVertexESD",10);