]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4ModularPhysicsList.cxx
Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / TGeant4 / TG4ModularPhysicsList.cxx
index 5f2aab72747e730f88e9017ebaed37cf684cad93..a012e42600cecc19baf812fcaeb5138eb7f3a55b 100644 (file)
@@ -12,9 +12,6 @@
 #include "TG4G3PhysicsManager.h"
 #include "TG4G3ControlVector.h"
 #include "TG4ProcessControlMap.h"
-#include "TG4ExtDecayer.h"
-#include "AliDecayer.h"
-#include "AliMC.h"
 
 #include <G4ParticleDefinition.hh>
 #include <G4ProcessManager.hh>
 #include <G4IonConstructor.hh>
 #include <G4ShortLivedConstructor.hh>
 #include <G4ProcessTable.hh>
-#include <G4Decay.hh>
 
 const G4double TG4ModularPhysicsList::fgkDefaultCutValue = 1.0 * mm;
 
 //_____________________________________________________________________________
 TG4ModularPhysicsList::TG4ModularPhysicsList()
-  : G4VModularPhysicsList() {
+  : G4VModularPhysicsList(),
+    TG4Verbose("physicsList") {
 //
   defaultCutValue = fgkDefaultCutValue;
 
-  SetVerboseLevel(2);
+  SetVerboseLevel(VerboseLevel());
 }
 
 //_____________________________________________________________________________
 TG4ModularPhysicsList::TG4ModularPhysicsList(const TG4ModularPhysicsList& right)
-{
+  : TG4Verbose("physicsList") {
 //
   TG4Globals::Exception("TG4ModularPhysicsList is protected from copying.");
 }
@@ -79,7 +76,7 @@ void TG4ModularPhysicsList::SetProcessActivation(
   G4String strActivation = "activation";
   if (!activation) strActivation = "inactivation";
 
-  if (verboseLevel>1) {
+  if (VerboseLevel() > 1) {
     G4cout << "Set process " << strActivation << " for " 
            << (*processManager->GetProcessList())[processId]->GetProcessName() 
           << G4endl;
@@ -142,7 +139,7 @@ void TG4ModularPhysicsList::SetCuts()
   G4double ecut = cut; 
 
 #ifdef G4VERBOSE    
-  if (verboseLevel >1){
+  if (VerboseLevel() > 1) {
     G4cout << "TG4ModularPhysicsList::SetCutsWithDefault:";
     G4cout << "CutLength : " << cut/mm << " (mm)" << G4endl;
   }  
@@ -180,8 +177,10 @@ void TG4ModularPhysicsList::SetProcessActivation()
     = TG4GeometryServices::Instance()->IsSpecialControls();  
 
   if (!specialControls) 
-    G4cout << G4endl
-           << "### No special controls in user limits are set." << G4endl;
+    if (VerboseLevel() > 0) {
+      G4cout << G4endl
+             << "### No special controls in user limits are set." << G4endl;
+    }       
 
   if (!controlVector) {
     G4String text = "TG4ModularPhysicsList::SetProcessActivation: \n";
@@ -272,4 +271,3 @@ void TG4ModularPhysicsList::DumpAllProcesses() const
     G4cout << G4endl;  
   }  
 }
-