Major update of cuts classes; now they are used in AliAnalysisVertexingHF and stored...
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AliAnalysisTaskSEVertexingHFTest.C
index 35f4993..eb0db8a 100644 (file)
@@ -75,15 +75,16 @@ void AliAnalysisTaskSEVertexingHFTest()
   \r
   // Output \r
   AliAODHandler *aodHandler = new AliAODHandler();\r
+  const char* deltaAODfname="AliAOD.VertexingHF.root";\r
   if(createAOD) {\r
     aodHandler->SetOutputFileName("AliAOD.root");\r
   } else {\r
     aodHandler->SetFillAOD(kFALSE);\r
-    aodHandler->SetOutputFileName("AliAOD.VertexingHF.root");\r
+    aodHandler->SetOutputFileName(deltaAODfname);\r
     aodHandler->SetCreateNonStandardAOD();\r
   }\r
   mgr->SetOutputEventHandler(aodHandler);\r
-  mgr->RegisterExtraFile("AliAOD.VertexingHF.root");  \r
+  mgr->RegisterExtraFile(deltaAODfname);  \r
 \r
   if(!inputAOD && createAOD) {\r
     // MC Truth\r
@@ -115,7 +116,7 @@ void AliAnalysisTaskSEVertexingHFTest()
 \r
   // Vertexing analysis task    \r
   gROOT->LoadMacro("$ALICE_ROOT/PWG3/vertexingHF/AddTaskVertexingHF.C");\r
-  AliAnalysisTaskSEVertexingHF *hfTask = AddTaskVertexingHF();\r
+  AliAnalysisTaskSEVertexingHF *hfTask = AddTaskVertexingHF(deltaAODfname);\r
   \r
   \r
   //\r