// 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),
//
}
+//_____________________________________________________________________________
TG4VRunConfiguration::TG4VRunConfiguration(const TG4VRunConfiguration& right)
{
//
TG4Globals::Exception("TG4VRunConfiguration is protected from copying.");
}
+//_____________________________________________________________________________
TG4VRunConfiguration::~TG4VRunConfiguration(){
//
}
// operators
+//_____________________________________________________________________________
TG4VRunConfiguration& TG4VRunConfiguration::operator=(
const TG4VRunConfiguration& right)
{
// public methods
+//_____________________________________________________________________________
void TG4VRunConfiguration::ConfigureRunManager(G4RunManager* runManager)
{
// Sets the user action classes to G4RunManager.
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;
+}
+