Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// $Id: exampleE01.cc,v 1.2 1998/12/08 16:37:23 allison Exp $
|
||||
|
||||
#include "ExE01DetectorConstruction.hh"
|
||||
#include "ExE01RunAction.hh"
|
||||
#include "ExE01PrimaryGeneratorAction.hh"
|
||||
#include "ExE01PhysicsList.hh"
|
||||
#include "ExE01SteppingAction.hh"
|
||||
|
||||
#include "G4RunManager.hh"
|
||||
|
||||
int main(int ,char** ) {
|
||||
// Run manager
|
||||
G4RunManager * runManager = new G4RunManager;
|
||||
|
||||
// UserInitialization classes
|
||||
runManager->SetUserInitialization(new ExE01DetectorConstruction);
|
||||
runManager->SetUserInitialization(new ExE01PhysicsList);
|
||||
|
||||
// UserAction classes.
|
||||
runManager->SetUserAction(new ExE01RunAction);
|
||||
runManager->SetUserAction(new ExE01PrimaryGeneratorAction);
|
||||
runManager->SetUserAction(new ExE01SteppingAction);
|
||||
|
||||
// Event loop
|
||||
G4int n_event = 1000;
|
||||
runManager->Initialize();
|
||||
runManager->BeamOn(n_event);
|
||||
|
||||
delete runManager;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user