]> jspc29.x-matter.uni-frankfurt.de Git - radhard.git/commitdiff
Bugfix ownpath
authorDennis Doering <doering@physik.uni-frankfurt.de>
Wed, 26 Aug 2015 13:23:38 +0000 (15:23 +0200)
committerDennis Doering <doering@physik.uni-frankfurt.de>
Wed, 26 Aug 2015 13:23:38 +0000 (15:23 +0200)
MABS_run_analyzer/ChargeSpektrumFunctions.c

index 82c404b805a9c80b77532b919a2ef39c2c6589e3..01de8dadacf64573cc8bf5af5f0de519d68c0786 100644 (file)
@@ -22,9 +22,9 @@ const TString colorreset = "\033[0m";
 const TString endlr = "\033[0m\n"; 
 TString ownpath = ""; 
 
-void setCustomPath(TString ownpath)
+void setCustomPath(TString setOwnpath)
 {
-    ownpath = ownpath;
+    ownpath = setOwnpath;
 }
 
 void ChargeSpektrum(Int_t runnumber)
@@ -141,8 +141,8 @@ Bool_t writeObservableToFile()
             }
         }
     }
-    TString filename= runs[0]->savepathresults + "/" + ownpath + runnumberListe + "histograms.dat";
-    fstream* fout = new fstream(filename,ios::out);
+    TString filename= runs[0]->savepathresults + "/" + ownpath + runnumberListe + Form("%s",plothistogrampointer->GetName())+"histograms.dat";
+       fstream* fout = new fstream(filename,ios::out);
     *fout << headerInfo << endl;
     *fout << header << endl;
     for(Int_t bini=0;bini<plothistogrampointer->GetNbinsX();bini++)