]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Changing the /tmp directory pointing to the sanbox earlier in the generated analysis...
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Sep 2010 07:03:47 +0000 (07:03 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 3 Sep 2010 07:03:47 +0000 (07:03 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index c71d0a91070b5c542200b9e7db7545573724b6ba..ab0040e6eb5ef88131f702c401a0e5711591ce60 100644 (file)
@@ -2452,6 +2452,9 @@ void AliAnalysisAlien::WriteAnalysisMacro()
       out << "// Automatically generated analysis steering macro executed in grid subjobs" << endl << endl;
       out << "   TStopwatch timer;" << endl;
       out << "   timer.Start();" << endl << endl;
+      // Change temp directory to current one
+      out << "// Set temporary merging directory to current one" << endl;
+      out << "   gSystem->Setenv(\"TMPDIR\", gSystem->pwd());" << endl << endl;   
       out << "// load base root libraries" << endl;
       out << "   gSystem->Load(\"libTree\");" << endl;
       out << "   gSystem->Load(\"libGeom\");" << endl;
@@ -2569,9 +2572,6 @@ void AliAnalysisAlien::WriteAnalysisMacro()
          out << "   gEnv->SetValue(\"XNet.ReconnectTimeout\",10);" << endl;
          out << "   gEnv->SetValue(\"XNet.FirstConnectMaxCnt\",1);" << endl << endl;
       }   
-      // Change temp directory to current one
-      out << "// Set temporary merging directory to current one" << endl;
-      out << "   gSystem->Setenv(\"TMPDIR\", gSystem->pwd());" << endl << endl;   
       out << "// connect to AliEn and make the chain" << endl;
       out << "   if (!TGrid::Connect(\"alien://\")) return;" << endl;
       if (IsUsingTags()) {