The decay tree is printed only if the debug level is at least one.
authormorsch <andreas.morsch@cern.ch>
Mon, 2 Mar 2015 06:49:50 +0000 (07:49 +0100)
committermorsch <andreas.morsch@cern.ch>
Mon, 2 Mar 2015 06:49:50 +0000 (07:49 +0100)
Fiorella Fionda

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();
   }