Print

Print


Commit in slic/src on MAIN
PhysicsListManager.cc+4-21.21 -> 1.22
print particle table if logging at verbose level or greater

slic/src
PhysicsListManager.cc 1.21 -> 1.22
diff -u -r1.21 -r1.22
--- PhysicsListManager.cc	4 Aug 2009 22:50:42 -0000	1.21
+++ PhysicsListManager.cc	5 Aug 2009 21:16:20 -0000	1.22
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/slic/src/PhysicsListManager.cc,v 1.21 2009/08/04 22:50:42 jeremy Exp $
+// $Header: /cvs/lcd/slic/src/PhysicsListManager.cc,v 1.22 2009/08/05 21:16:20 jeremy Exp $
 #include "PhysicsListManager.hh"
 
 // geant4
@@ -84,7 +84,9 @@
 #ifdef SLIC_LOG
             log().okay( "Registered physics list <" + m_currentListName + "> with G4RunManager" );
             log() << LOG::debug << "Dumping Geant4 particle table ..." << LOG::done;
-            G4ParticleTable::GetParticleTable()->DumpTable(); // FIXME: Goes to G4cout.
+            // Use log level to determine whether particle table should be dumped.
+            if ( log().getOutputLevel() >= LOG::verbose )
+                G4ParticleTable::GetParticleTable()->DumpTable(); // FIXME: Goes to G4cout.
 #endif
 
             m_isInitialized = true;
CVSspam 0.2.8