|
Geant4 examples
|
Test program for the primaryGenerator common classes. More...
#include "ExG4PrimaryGeneratorAction01.hh"#include "ExG4PrimaryGeneratorAction02.hh"#include "G4RunManager.hh"#include "QGSP_BERT.hh"Go to the source code of this file.
Functions | |
| int | main () |
Test program for the primaryGenerator common classes.
Definition in file testPrimaryGenerator.cc.
| int main | ( | ) |
Definition at line 41 of file testPrimaryGenerator.cc.
{
// First construct necessary classes
//
G4RunManager * runManager = new G4RunManager;
G4VModularPhysicsList* physicsList = new QGSP_BERT;
runManager->SetUserInitialization(physicsList);
// Instantiate all primary generator actions classes
ExG4PrimaryGeneratorAction01* primaryGeneratorAction01
= new ExG4PrimaryGeneratorAction01();
ExG4PrimaryGeneratorAction02* primaryGeneratorAction02
= new ExG4PrimaryGeneratorAction02();
// delete all
delete primaryGeneratorAction01;
delete primaryGeneratorAction02;
return 0;
}
1.7.4