Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
+4 -5
View File
@@ -21,22 +21,21 @@
// ********************************************************************
//
//
// $Id: G4UIbatch.cc,v 1.9 2001/10/16 08:14:32 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-00 $
// $Id: G4UIbatch.cc,v 1.11 2002/06/07 17:37:44 asaim Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
#include "G4UIbatch.hh"
#include "G4UImanager.hh"
#include "G4ios.hh"
G4UIbatch::G4UIbatch(G4String fileName,G4UIsession* prevSession)
G4UIbatch::G4UIbatch(const char* fileName,G4UIsession* prevSession)
: previousSession(prevSession), macroFileName(fileName),
openFailed(false)
{
const char* theFileName = fileName;
UImanager = G4UImanager::GetUIpointer();
UImanager->SetSession(this);
macroFile.open((char*)theFileName);
macroFile.open((char*)fileName);
if(macroFile.fail())
{
G4cerr << "macro file <" << fileName << "> could not open."