Import Geant4 9.5.0 source tree
This commit is contained in:
@@ -55,17 +55,10 @@
|
||||
#include "G4HumanPhantomSteppingAction.hh"
|
||||
#include "G4HumanPhantomEventAction.hh"
|
||||
#include "G4HumanPhantomRunAction.hh"
|
||||
#ifdef G4ANALYSIS_USE
|
||||
#include "G4HumanPhantomAnalysisManager.hh"
|
||||
#endif
|
||||
|
||||
int main(int argc,char** argv)
|
||||
{
|
||||
G4RunManager* runManager = new G4RunManager;
|
||||
|
||||
// G4VSteppingVerbose* verbosity = new ExN02SteppingVerbose;
|
||||
// G4VSteppingVerbose::SetInstance(new ExN02SteppingVerbose);
|
||||
|
||||
// Set mandatory initialization classes
|
||||
G4HumanPhantomConstruction* userPhantom = new G4HumanPhantomConstruction();
|
||||
runManager->SetUserInitialization(userPhantom);
|
||||
@@ -74,10 +67,6 @@ int main(int argc,char** argv)
|
||||
|
||||
runManager->SetUserAction(new G4HumanPhantomPrimaryGeneratorAction);
|
||||
|
||||
#ifdef G4ANALYSIS_USE
|
||||
G4HumanPhantomAnalysisManager* analysis = G4HumanPhantomAnalysisManager::getInstance();
|
||||
analysis->book();
|
||||
#endif
|
||||
|
||||
#ifdef G4VIS_USE
|
||||
G4VisManager* visManager = new G4VisExecutive;
|
||||
@@ -87,7 +76,6 @@ int main(int argc,char** argv)
|
||||
runManager->SetUserAction(new G4HumanPhantomRunAction);
|
||||
|
||||
|
||||
|
||||
G4HumanPhantomEventAction* eventAction = new G4HumanPhantomEventAction();
|
||||
runManager->SetUserAction(eventAction);
|
||||
|
||||
@@ -112,10 +100,6 @@ int main(int argc,char** argv)
|
||||
UImanager -> ApplyCommand(command+fileName);
|
||||
}
|
||||
|
||||
#ifdef G4ANALYSIS_USE
|
||||
if (analysis)analysis->finish();
|
||||
#endif
|
||||
|
||||
// job termination
|
||||
#ifdef G4VIS_USE
|
||||
delete visManager;
|
||||
|
||||
Reference in New Issue
Block a user