From e3079fb2367c26f767be41e6c313d960c517bbcd Mon Sep 17 00:00:00 2001 From: shivesh Date: Thu, 22 Aug 2019 01:37:19 +0100 Subject: Thu 22 Aug 01:37:19 BST 2019 --- #G4BeamTest.cxx# | 100 ------------------------------------------------------- 1 file changed, 100 deletions(-) delete mode 100644 #G4BeamTest.cxx# (limited to '#G4BeamTest.cxx#') diff --git a/#G4BeamTest.cxx# b/#G4BeamTest.cxx# deleted file mode 100644 index 287d689..0000000 --- a/#G4BeamTest.cxx# +++ /dev/null @@ -1,100 +0,0 @@ -#include "G4UImanager.hh" -#include "G4UIExecutive.hh" - -#include "G4Interface.h" -#include "G4BeamTestTank.h" - -//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -namespace { - void PrintUsage() { - G4cerr << " Usage: " << G4endl; - G4cerr << " OpNovice [-m macro ] [-u UIsession] [-t nThreads] [-r seed] " - << G4endl; - G4cerr << " note: -t option is available only for multi-threaded mode." - << G4endl; - } -} - -//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... - -int main(int argc,char** argv) -{ - // Evaluate arguments - // - if ( argc > 9 ) { - PrintUsage(); - return 1; - } - - G4String macro; - G4String session; -#ifdef G4MULTITHREADED - G4int nThreads = 0; -#endif - - G4long myseed = 345354; - for ( G4int i=1; iInstallTank(g4Tank_); - g4Interface_->InitializeEvent(); - - // Get the pointer to the User Interface manager - // - G4UImanager* UImanager = G4UImanager::GetUIpointer(); - - if ( macro.size() ) { - // Batch mode - G4String command = "/control/execute "; - UImanager->ApplyCommand(command+macro); - } - else // Define UI session for interactive mode - { -#ifdef G4UI_USE - G4UIExecutive * ui = new G4UIExecutive(argc,argv,session); -#ifdef G4VIS_USE - UImanager->ApplyCommand("/control/execute vis.mac"); -#else - UImanager->ApplyCommand("/control/execute G4BeamTest.in"); -#endif - if (ui->IsGUI()) - UImanager->ApplyCommand("/control/execute gui.mac"); - ui->SessionStart(); - delete ui; -#endif - } - - // Job termination - // Free the store: user actions, physics_list and detector_description are - // owned and deleted by the run manager, so they should not - // be deleted in the main() program ! - delete g4Interface_; - - return 0; -} - -//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -- cgit v1.2.3