]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
debug is read from option string
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Jul 2006 07:54:25 +0000 (07:54 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Jul 2006 07:54:25 +0000 (07:54 +0000)
removing lookup from chain creation (now in proof master)

PWG0/AliSelector.cxx
PWG0/CreateESDChain.C

index c561588b124d17c7be1f7d58a4fefa7dced0b170..12b5a5f75145144c519db891f372facc85281c9e 100644 (file)
@@ -86,6 +86,14 @@ void AliSelector::SlaveBegin(TTree* tree)
   // When running with PROOF SlaveBegin() is called on each slave server.
   // The tree argument is deprecated (on PROOF 0 is passed).
 
+  TString option = GetOption();
+
+  if (option.Contains("debug"))
+  {
+    AliLog::SetClassDebugLevel("AliSelector", AliLog::kDebug);
+    AliInfo(Form("Called with option %s.", option.Data()));
+  }
+
   AliDebug(AliLog::kDebug, "=======SLAVEBEGIN========");
   AliDebug(AliLog::kDebug, Form("Hostname: %s", gSystem->HostName()));
   AliDebug(AliLog::kDebug, Form("Time: %s", gSystem->Now().AsString()));
index bb9bf3bc3faf693f6d4c678e38d8d5d2516d8002..45dbbeb6818dacbee4b424319c41c548b9f91622 100644 (file)
@@ -2,7 +2,7 @@
 
 // Helper macros for creating chains
 
-TChain* CreateESDChain(const char* aDataDir, Int_t aRuns = 20, Int_t offset = 0)
+TChain* CreateESDChain(const char* aDataDir = "ESDfiles.txt", Int_t aRuns = 20, Int_t offset = 0)
 {
   // creates chain of files in a given directory or file containing a list.
   // In case of directory the structure is expected as:
@@ -83,8 +83,6 @@ TChain* CreateESDChain(const char* aDataDir, Int_t aRuns = 20, Int_t offset = 0)
     }
 
     in.close();
-
-    chain->Lookup();
   }
 
   return chain;