the fPhysicsList type changed to G4VModularPhysicsList*; method GetPhysicsList()...
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Feb 2001 14:48:14 +0000 (14:48 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Feb 2001 14:48:14 +0000 (14:48 +0000)
TGeant4/TG4VRunConfiguration.cxx
TGeant4/TG4VRunConfiguration.h

index 3a2822a1c6866dcebdc0ff425ab0fb5e8e6a21c0..1c86c27b71f95990b11c2941a09f19aa27bdda1c 100644 (file)
@@ -7,7 +7,7 @@
 #include "TG4Globals.h"
 
 #include <G4VUserDetectorConstruction.hh>
-#include <G4VUserPhysicsList.hh>
+#include <G4VModularPhysicsList.hh>
 #include <G4VUserPrimaryGeneratorAction.hh>
 #include <G4UserRunAction.hh>
 #include <G4UserEventAction.hh>
@@ -52,7 +52,7 @@ TG4VRunConfiguration& TG4VRunConfiguration::operator=(
   return *this;  
 }    
           
-// protected methods
+// public methods
 
 void TG4VRunConfiguration::ConfigureRunManager(G4RunManager* runManager)
 {
@@ -74,3 +74,12 @@ void TG4VRunConfiguration::ConfigureRunManager(G4RunManager* runManager)
   if (fSteppingAction) runManager->SetUserAction(fSteppingAction);
   if (fStackingAction) runManager->SetUserAction(fStackingAction);
 }
+
+G4VModularPhysicsList* TG4VRunConfiguration::GetPhysicsList() const
+{
+// Returns the modular physics list.
+// ---
+  
+  return fPhysicsList;
+}
+
index c7259bf693d44ce743108c79470bf65c853da3c7..5672d9d7dc77e869754a9b357d05ee1c5ef40e91 100644 (file)
@@ -10,7 +10,7 @@
 #define TG4V_RUN_CONFIGURATION_H
 
 class G4VUserDetectorConstruction;
-class G4VUserPhysicsList;
+class G4VModularPhysicsList;
 class G4VUserPrimaryGeneratorAction;
 class G4UserRunAction;
 class G4UserEventAction;
@@ -30,6 +30,9 @@ class TG4VRunConfiguration
     // methods
     void ConfigureRunManager(G4RunManager* runManager);
 
+    // get methods
+    G4VModularPhysicsList* GetPhysicsList() const;
+
   protected:
     TG4VRunConfiguration(const TG4VRunConfiguration& right);
 
@@ -41,7 +44,7 @@ class TG4VRunConfiguration
 
     // data members
     G4VUserDetectorConstruction*    fDetectorConstruction; //det construction
-    G4VUserPhysicsList*             fPhysicsList;          //physics list
+    G4VModularPhysicsList*          fPhysicsList;          //physics list
     G4VUserPrimaryGeneratorAction*  fPrimaryGenerator;     //primary generator
     G4UserRunAction*                fRunAction;            //run action
     G4UserEventAction*              fEventAction;          //event action