From: Dennis Doering Date: Tue, 25 Aug 2015 10:20:17 +0000 (+0200) Subject: Outpath modified to custom X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=75e36fa29c88a57e9ad01f046e6b8d75842aad16;p=radhard.git Outpath modified to custom --- diff --git a/MABS_run_analyzer/ChargeSpektrum.c b/MABS_run_analyzer/ChargeSpektrum.c index 29ee298..a558833 100644 --- a/MABS_run_analyzer/ChargeSpektrum.c +++ b/MABS_run_analyzer/ChargeSpektrum.c @@ -170,6 +170,7 @@ void ChargeSpektrum(TString runnumber = "") } // plotAllRuns(""); plotAllRuns("seed calibrated"); + setCustomPath("Excel/"); // writeObservableToFile("seed threshold calibrated"); // writeObservableToFile("seed threshold"); writeObservableToFile("seed threshold"); diff --git a/MABS_run_analyzer/ChargeSpektrumFunctions.c b/MABS_run_analyzer/ChargeSpektrumFunctions.c index a504d01..4f8ed94 100644 --- a/MABS_run_analyzer/ChargeSpektrumFunctions.c +++ b/MABS_run_analyzer/ChargeSpektrumFunctions.c @@ -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;