diff --git a/onlineGUI/onlineGUI_v1.2.1/online.C b/onlineGUI/onlineGUI_v1.2.1/online.C index ed88a986b536722ea9ee84c96e197f39d571ccef..f4429539a9bbea95754b3def9d18d6ddc5f3907d 100755 --- a/onlineGUI/onlineGUI_v1.2.1/online.C +++ b/onlineGUI/onlineGUI_v1.2.1/online.C @@ -62,6 +62,7 @@ OnlineConfig::OnlineConfig(TString anatype) // Loads up the configuration file, and stores it's contents for access. confFileName = anatype; + configfilestart=anatype; if(!confFileName.Contains(".cfg")) confFileName += ".cfg"; fMonitor = kFALSE; @@ -1830,7 +1831,12 @@ void OnlineGUI::PrintPages() { Bool_t useJPG = kFALSE; if(!plotsdir.IsNull()) useJPG = kTRUE; - TString filename = "summaryplots"; + // TString filename = "summaryplots"; + TString ConfigStartAll=fConfig->GetConfigStart(); + TObjArray *tx= ConfigStartAll.Tokenize("/"); + TString temp=((TObjString *)(tx->At(tx->GetEntries()-1)))->String(); + Ssiz_t pos=temp.Index(".cfg"); + TString filename=temp(0,pos); if(runNumber!=0) { filename += "_"; filename += runNumber; @@ -1839,7 +1845,7 @@ void OnlineGUI::PrintPages() { filename.Prepend(plotsdir+"/"); filename += "_pageXXXX.jpg"; } - else filename += ".ps"; + else filename += ".pdf"; TString pagehead = "Summary Plots"; if(runNumber!=0) { @@ -1855,6 +1861,7 @@ void OnlineGUI::PrintPages() { gStyle->SetPadBorderMode(0); gStyle->SetHistLineColor(1); gStyle->SetHistFillColor(1); + cout << filename << endl; if(!useJPG) fCanvas->Print(filename+"["); TString origFilename = filename; for(UInt_t i=0; i<fConfig->GetPageCount(); i++) { diff --git a/onlineGUI/onlineGUI_v1.2.1/online.h b/onlineGUI/onlineGUI_v1.2.1/online.h index 742611a129a43d041605c55c4af10da729f228d0..f9e076142a59bb75f8eb870a8e08b908f7f0e0b1 100755 --- a/onlineGUI/onlineGUI_v1.2.1/online.h +++ b/onlineGUI/onlineGUI_v1.2.1/online.h @@ -76,6 +76,7 @@ private: TString rootfilename; // Just the name TString goldenrootfilename; // Golden rootfile for comparisons TString protorootfile; // Prototype for getting the rootfilename + TString configfilestart; // TString guicolor; // User's choice of background color TString plotsdir; // Where to store sample plots.. automatically stored as .jpg's). UInt_t canvaswidth; // Width of histogram canvas @@ -111,6 +112,7 @@ public: Bool_t IsMonitor() { return fMonitor; }; UInt_t GetCanvasWidth() { return canvaswidth; }; UInt_t GetCanvasHeight() { return canvasheight; }; + TString GetConfigStart() {return configfilestart;}; // }; class OnlineGUI {