]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EPOS/TEpos.cxx
The following changes are done:
[u/mrichter/AliRoot.git] / EPOS / TEpos.cxx
index 7d6360051400392c507c721907f3058af2b4718c..f1bdacabeb7aa7a06c09f54e358a8594df5c37b7 100644 (file)
@@ -155,7 +155,12 @@ void TEpos::AddExtraInputLine(const char *line) {
 void TEpos::GenerateInputFile() {
        ofstream file(GetInputFileName(), ios_base::out | ios_base::trunc);
        char epo[256];
-       strcpy(epo, getenv("ALICE_ROOT"));
+       char *epoEnv = getenv("EPO");
+       if (epoEnv) {
+               strcpy(epo, epoEnv);
+       } else {
+               strcpy(epo, getenv("ALICE_ROOT"));
+       }
        strcat(epo, "/EPOS/epos167");
 
        file << "fname pathnx " << epo << "/" << endl;
@@ -187,6 +192,10 @@ void TEpos::GenerateInputFile() {
        file << "echo on" << endl;
 
 //     .optns file
+       int precision = file.precision();
+       file.precision(15);
+       file << "set seedj " << (gRandom->Rndm() * 1e14) << endl;
+       file.precision(precision);
        file << "application hadron" << endl;
        file << "set laproj " << fLaproj << endl;
        file << "set maproj " << fMaproj << endl;