]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
Outpath modified to custom
authorDennis Doering <doering@physik.uni-frankfurt.de>
Tue, 25 Aug 2015 10:20:17 +0000 (12:20 +0200)
committerDennis Doering <doering@physik.uni-frankfurt.de>
Tue, 25 Aug 2015 10:20:17 +0000 (12:20 +0200)
MABS_run_analyzer/ChargeSpektrum.c
MABS_run_analyzer/ChargeSpektrumFunctions.c

index 29ee298744b7dce0d16d42a7ccdfc57dea1f0d5b..a5588330631875c762a801d3425db79554028cf8 100644 (file)
@@ -170,6 +170,7 @@ void ChargeSpektrum(TString runnumber = "")
     }
 //     plotAllRuns("");
     plotAllRuns("seed calibrated");
+       setCustomPath("Excel/");
 //     writeObservableToFile("seed threshold calibrated");
 //    writeObservableToFile("seed threshold");
        writeObservableToFile("seed threshold");
index a504d01a9f3a07a7d77b4d534ccd1bb60897eb10..4f8ed94325c3bdbd8d5834a6a5ab9fd708d64ffc 100644 (file)
@@ -19,7 +19,13 @@ const TString colorwhite = "\033[1;29m";
 const TString colorred = "\033[1;31m";
 const TString coloryellow = "\033[1;33m";
 const TString colorreset = "\033[0m";  
-const TString endlr = "\033[0m\n";  
+const TString endlr = "\033[0m\n"; 
+TString ownpath = ""; 
+
+void setCustomPath(TString ownpath)
+{
+    ownpath = ownpath;
+}
 
 void ChargeSpektrum(Int_t runnumber)
 {
@@ -135,7 +141,7 @@ Bool_t writeObservableToFile()
             }
         }
     }
-    TString filename= runs[0]->savepathresults + "/Excel/" + runnumberListe + "histograms.dat";
+    TString filename= runs[0]->savepathresults + "/" + ownpath + runnumberListe + "histograms.dat";
     fstream* fout = new fstream(filename,ios::out);
     *fout << headerInfo << endl;
     *fout << header << endl;