]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4VRunConfiguration.cxx
changed printout
[u/mrichter/AliRoot.git] / TGeant4 / TG4VRunConfiguration.cxx
index 3a2822a1c6866dcebdc0ff425ab0fb5e8e6a21c0..d2191a06684cd5924ca14bcef797884aab0523b4 100644 (file)
@@ -4,20 +4,23 @@
 // See the class description in the header file.
 
 #include "TG4VRunConfiguration.h"
+#include "TG4VSDConstruction.h"
+#include "TG4TrackingAction.h"
+#include "TG4SteppingAction.h"
 #include "TG4Globals.h"
 
 #include <G4VUserDetectorConstruction.hh>
-#include <G4VUserPhysicsList.hh>
+#include <G4VModularPhysicsList.hh>
 #include <G4VUserPrimaryGeneratorAction.hh>
 #include <G4UserRunAction.hh>
 #include <G4UserEventAction.hh>
-#include <G4UserTrackingAction.hh>
-#include <G4UserSteppingAction.hh>
 #include <G4UserStackingAction.hh>
 #include <G4RunManager.hh>
 
+//_____________________________________________________________________________
 TG4VRunConfiguration::TG4VRunConfiguration()
   : fDetectorConstruction(0),
+    fSDConstruction(0),
     fPhysicsList(0),
     fPrimaryGenerator(0),
     fRunAction(0),
@@ -29,18 +32,21 @@ TG4VRunConfiguration::TG4VRunConfiguration()
 //
 }
 
+//_____________________________________________________________________________
 TG4VRunConfiguration::TG4VRunConfiguration(const TG4VRunConfiguration& right)
 {
 //
   TG4Globals::Exception("TG4VRunConfiguration is protected from copying.");
 }
 
+//_____________________________________________________________________________
 TG4VRunConfiguration::~TG4VRunConfiguration(){
 //
 }
 
 // operators
 
+//_____________________________________________________________________________
 TG4VRunConfiguration& TG4VRunConfiguration::operator=(
                                 const TG4VRunConfiguration& right)
 {
@@ -52,8 +58,9 @@ TG4VRunConfiguration& TG4VRunConfiguration::operator=(
   return *this;  
 }    
           
-// protected methods
+// public methods
 
+//_____________________________________________________________________________
 void TG4VRunConfiguration::ConfigureRunManager(G4RunManager* runManager)
 {
 // Sets the user action classes to G4RunManager.
@@ -74,3 +81,22 @@ 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;
+}
+
+//_____________________________________________________________________________
+TG4VSDConstruction* TG4VRunConfiguration::GetSDConstruction() const
+{
+// Returns the sensitive detectors construction.
+// ---
+  
+  return fSDConstruction;
+}
+