Import Geant4 7.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 12:11:21 +02:00
parent 516dbf1a58
commit d93e1e39a9
5384 changed files with 125662 additions and 82444 deletions
@@ -132,22 +132,23 @@ void XrayFluoDataSet::LoadData(const G4String& fileName)
{
// Build the complete string identifying the file with the data set
char nameChar[100] = {""};
std::ostrstream ost(nameChar, 100, std::ios::out);
ost << fileName <<".dat";
G4String name(nameChar);
G4String dirFile = name;
G4String dirFile = "";
char* path;
#ifndef XRAYDATA
#define XRAYDATA PWD
#endif
path = getenv("XRAYDATA");
G4cout << path << G4endl;
G4cout << fileName << G4endl;
if (!(getenv("XRAYDATA"))) {
char* path = getenv("PWD");
G4String pathString(path);
dirFile = pathString + "/" + name;
}
dirFile = pathString + "/" + fileName + ".dat";
std::ifstream file(dirFile);
std::filebuf* lsdp = file.rdbuf();