Import Geant4 8.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:36:02 +02:00
parent d93e1e39a9
commit 8a51e0bc40
5471 changed files with 99628 additions and 55248 deletions
@@ -53,13 +53,30 @@ HadrontherapyRunAction::~HadrontherapyRunAction()
{
}
void HadrontherapyRunAction::BeginOfRunAction(const G4Run*)
void HadrontherapyRunAction::BeginOfRunAction(const G4Run* aRun)
{
G4RunManager::GetRunManager()->SetRandomNumberStore(true);
G4cout << "Run " << aRun -> GetRunID() << " starts ..." << G4endl;
electromagnetic = 0;
hadronic = 0;
}
void HadrontherapyRunAction::EndOfRunAction(const G4Run*)
void HadrontherapyRunAction::EndOfRunAction(const G4Run* aRun)
{
G4cout << " Summary of Run " << aRun -> GetRunID() <<" :"<< G4endl;
G4cout << "Number of electromagnetic processes of primary particles in the phantom:"
<< electromagnetic << G4endl;
G4cout << "Number of hadronic processes of primary particles in the phantom:"
<< hadronic << G4endl;
}
void HadrontherapyRunAction::AddEMProcess()
{
electromagnetic += 1;
}
void HadrontherapyRunAction::AddHadronicProcess()
{
hadronic += 1;
}