From: ivana Date: Tue, 13 Feb 2001 14:48:14 +0000 (+0000) Subject: the fPhysicsList type changed to G4VModularPhysicsList*; method GetPhysicsList()... X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=20bf4ef58261540e88967def56b38ff16cc4073b;p=u%2Fmrichter%2FAliRoot.git the fPhysicsList type changed to G4VModularPhysicsList*; method GetPhysicsList() added --- diff --git a/TGeant4/TG4VRunConfiguration.cxx b/TGeant4/TG4VRunConfiguration.cxx index 3a2822a1c68..1c86c27b71f 100644 --- a/TGeant4/TG4VRunConfiguration.cxx +++ b/TGeant4/TG4VRunConfiguration.cxx @@ -7,7 +7,7 @@ #include "TG4Globals.h" #include -#include +#include #include #include #include @@ -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; +} + diff --git a/TGeant4/TG4VRunConfiguration.h b/TGeant4/TG4VRunConfiguration.h index c7259bf693d..5672d9d7dc7 100644 --- a/TGeant4/TG4VRunConfiguration.h +++ b/TGeant4/TG4VRunConfiguration.h @@ -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