Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
@@ -0,0 +1,58 @@
// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: PersEx02RunAction.cc,v 1.3 1999/11/29 18:33:28 morita Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#include "PersEx02RunAction.hh"
#include "G4Run.hh"
#include "G4PersistencyManager.hh"
#include "G4TransportationManager.hh"
#include "G4VPhysicalVolume.hh"
PersEx02RunAction::PersEx02RunAction()
{
}
PersEx02RunAction::~PersEx02RunAction()
{
}
void PersEx02RunAction::BeginOfRunAction(const G4Run* aRun)
{
G4PersistencyManager* persM
= G4PersistencyManager::GetPersistencyManager();
if(aRun->GetRunID()==0)
{
if(persM)
{
G4VPhysicalVolume* theWorld
= G4TransportationManager::GetTransportationManager()
->GetNavigatorForTracking()->GetWorldVolume();
persM->Store(theWorld);
}
}
// start event DB transaction with sustained mode
persM->StartTransaction(kEventDB, kUpdate, true);
}
void PersEx02RunAction::EndOfRunAction(const G4Run* )
{
G4PersistencyManager* persM
= G4PersistencyManager::GetPersistencyManager();
if(persM)
{
// commit the sustained event DB transaction
persM->Commit(kEventDB, true);
}
}