Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/novice/N03/exampleN03.cc

    r1335 r1337  
    2626//
    2727// $Id: exampleN03.cc,v 1.37 2009/10/30 15:06:01 allison Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
     
    3636
    3737#include "Randomize.hh"
    38 
    39 #include "qcoreapplication.h"
    4038
    4139#include "ExN03DetectorConstruction.hh"
     
    5452#include "G4UIExecutive.hh"
    5553#endif
    56 
    57 #define MAC_OSX_APP 1
    5854
    5955//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    112108  G4UImanager* UImanager = G4UImanager::GetUIpointer();
    113109 
    114 
    115 #ifdef MAC_OSX_APP
    116   std::string progName = argv[0];
    117   std::string::size_type pos = progName.find(".app/Contents/MacOS/",0);
    118   if (pos != std::string::npos) {
    119     std::string progDir = progName.substr(0,pos+4);
    120     chdir((progDir+"/Contents/macros").c_str());
    121     argc = 1;
    122   }
    123 #endif
    124 
    125110  if (argc!=1)   // batch mode
    126111    {
     
    132117    {  // interactive mode : define UI session
    133118#ifdef G4UI_USE
    134       G4UIExecutive* ui = new G4UIExecutive(argc,argv);
     119      G4UIExecutive* ui = new G4UIExecutive(argc, argv);
    135120#ifdef G4VIS_USE
    136121      UImanager->ApplyCommand("/control/execute vis.mac");     
Note: See TracChangeset for help on using the changeset viewer.