]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG0/AliSelector.cxx
debug is read from option string
[u/mrichter/AliRoot.git] / PWG0 / AliSelector.cxx
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()));