updated to changes in TG4PhysicsManager
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Feb 2001 14:52:09 +0000 (14:52 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Feb 2001 14:52:09 +0000 (14:52 +0000)
TGeant4/TGeant4.cxx

index 1d18163e45b38173a0b6a861d2646fdf5637937d..ce8b1c472d2e21a27618a6f67b4e477f9129ee48 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "TGeant4.h"
 #include "TG4Messenger.h"
+#include "TG4VRunConfiguration.h"
 #include "TG4GeometryManager.h" 
 #include "TG4PhysicsManager.h" 
 #include "TG4StepManager.h" 
@@ -30,7 +31,7 @@ TGeant4::TGeant4(const char* name, const char* title,
   //G4cout << "TG4GeometryManager has been created." << endl;
   
   // create physics manager  
-  fPhysicsManager = new TG4PhysicsManager();
+  fPhysicsManager = new TG4PhysicsManager(configuration->GetPhysicsList());
   // add verbose level
   //G4cout << "TG4GeometryManager has been created." << endl;
   
@@ -66,7 +67,7 @@ TGeant4::TGeant4(const char* name, const char* title,
   //G4cout << "TG4GeometryManager has been created." << endl;
   
   // create physics manager  
-  fPhysicsManager = new TG4PhysicsManager();
+  fPhysicsManager = new TG4PhysicsManager(configuration->GetPhysicsList());
   // add verbose level
   //G4cout << "TG4GeometryManager has been created." << endl;