]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TEvtGen/TEvtGen/AliDecayerEvtGen.cxx
The decay tree is printed only if the debug level is at least one.
[u/mrichter/AliRoot.git] / TEvtGen / TEvtGen / AliDecayerEvtGen.cxx
index b99b54dcf37832861d03cf1b902a1a38877affaf..f4bfd574d93113c51d65561d98fb055e5b614d55 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();
   }