Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
|
||||
#include "PersEx01RunAction.hh"
|
||||
|
||||
#include "G4Run.hh"
|
||||
#include "G4VPersistencyManager.hh"
|
||||
#include "G4TransportationManager.hh"
|
||||
#include "G4VPhysicalVolume.hh"
|
||||
|
||||
PersEx01RunAction::PersEx01RunAction()
|
||||
{
|
||||
}
|
||||
|
||||
PersEx01RunAction::~PersEx01RunAction()
|
||||
{
|
||||
}
|
||||
|
||||
void PersEx01RunAction::BeginOfRunAction(const G4Run* aRun)
|
||||
{
|
||||
if(aRun->GetRunID()==0)
|
||||
{
|
||||
G4VPersistencyManager* persM
|
||||
= G4VPersistencyManager::GetPersistencyManager();
|
||||
if(persM)
|
||||
{
|
||||
G4VPhysicalVolume* theWorld
|
||||
= G4TransportationManager::GetTransportationManager()
|
||||
->GetNavigatorForTracking()->GetWorldVolume();
|
||||
persM->Store(theWorld);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void PersEx01RunAction::EndOfRunAction(const G4Run* )
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user