]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
attribute fSDConstruction and its getter added; added comment lines separating methods
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Aug 2001 11:28:33 +0000 (11:28 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Aug 2001 11:28:33 +0000 (11:28 +0000)
TGeant4/TG4VRunConfiguration.cxx

index 0f811f57c59963145cd198c0be70367975a705a7..d2191a06684cd5924ca14bcef797884aab0523b4 100644 (file)
@@ -4,6 +4,7 @@
 // See the class description in the header file.
 
 #include "TG4VRunConfiguration.h"
+#include "TG4VSDConstruction.h"
 #include "TG4TrackingAction.h"
 #include "TG4SteppingAction.h"
 #include "TG4Globals.h"
 #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)
 {
@@ -54,6 +60,7 @@ TG4VRunConfiguration& TG4VRunConfiguration::operator=(
           
 // public methods
 
+//_____________________________________________________________________________
 void TG4VRunConfiguration::ConfigureRunManager(G4RunManager* runManager)
 {
 // Sets the user action classes to G4RunManager.
@@ -75,6 +82,7 @@ void TG4VRunConfiguration::ConfigureRunManager(G4RunManager* runManager)
   if (fStackingAction) runManager->SetUserAction(fStackingAction);
 }
 
+//_____________________________________________________________________________
 G4VModularPhysicsList* TG4VRunConfiguration::GetPhysicsList() const
 {
 // Returns the modular physics list.
@@ -83,3 +91,12 @@ G4VModularPhysicsList* TG4VRunConfiguration::GetPhysicsList() const
   return fPhysicsList;
 }
 
+//_____________________________________________________________________________
+TG4VSDConstruction* TG4VRunConfiguration::GetSDConstruction() const
+{
+// Returns the sensitive detectors construction.
+// ---
+  
+  return fSDConstruction;
+}
+