The decay tree is printed only if the debug level is at least one.
[u/mrichter/AliRoot.git] / TEvtGen / TEvtGen / AliDecayerEvtGen.cxx
index b99b54d..f4bfd57 100644 (file)
@@ -118,7 +118,8 @@ void AliDecayerEvtGen::Decay(Int_t ipart, TLorentzVector *p)
   fGenerator->generateDecay(froot_part);
   fEvtstdhep->init();
   froot_part->makeStdHep(*fEvtstdhep);
-  froot_part->printTree(); //to print the decay chain 
+  if(AliLog::GetDebugLevel("TEvtGen","AliDecayerEvtGen") > 0) 
+    froot_part->printTree(); //to print the decay chain 
   froot_part->deleteTree();
   }