Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
@@ -16,7 +16,11 @@ void G4NeutronHPInelasticCompFS::InitGammas(G4double AR, G4double ZR)
ostrstream ost(the, 100, ios::out);
ost <<gammaPath<<"z"<<ZR<<".a"<<AR;
G4String * aName = new G4String(the);
#ifndef WIN32
ifstream from(*aName, ios::in);
#else
ifstream from(*aName, ios::in|ios::nocreate);
#endif
if(!from) return; // no data found for this isotope
ifstream theGammaData(*aName, ios::in);
@@ -44,7 +48,11 @@ void G4NeutronHPInelasticCompFS::Init (G4double A, G4double Z, G4String & dirNam
hasXsec = false;
return;
}
#ifndef WIN32
ifstream theData(filename, ios::in);
#else
ifstream theData(filename, ios::in|ios::nocreate);
#endif
if(!theData)
{
hasAnyData = false;