Fix for using delta AOD's for vertexing HF (A.Dainese)
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Jul 2010 10:54:48 +0000 (10:54 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 16 Jul 2010 10:54:48 +0000 (10:54 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 3dadbb6..f32c7c3 100644 (file)
@@ -2371,17 +2371,7 @@ void AliAnalysisAlien::WriteAnalysisMacro()
       if (IsUsingTags()) {
          out << "   TChain *chain = CreateChainFromTags(\"wn.xml\", anatype);" << endl << endl;
       } else {
-         if(fFriendChainName!="AliAOD.VertexingHF.root") {
-            out << "   TChain *chain = CreateChain(\"wn.xml\", anatype);" << endl << endl;    
-         } else {
-            out << "   // Check if the macro to create the chain was provided" << endl;
-            out << "   if (gSystem->AccessPathName(\"MakeAODInputChain.C\")) {" << endl;
-            out << "      ::Error(\"" << func.Data() << "\", \"File MakeAODInputChain.C not provided. Aborting.\");" << endl;
-            out << "      return;" << endl;
-            out << "   }" << endl;
-            out << "   gROOT->LoadMacro(\"MakeAODInputChain.C\");" << endl;
-            out << "   TChain *chain = MakeAODInputChain(\"wn.xml\",\"none\");" << endl << endl;
-         }  
+         out << "   TChain *chain = CreateChain(\"wn.xml\", anatype);" << endl << endl;   
       }   
       out << "// read the analysis manager from file" << endl;
       TString analysisFile = fExecutable;