From 8c6c598706bf7320a2db9035ac44f1f44a250988 Mon Sep 17 00:00:00 2001 From: Jonathan Eisch Date: Thu, 18 May 2017 08:54:11 -0500 Subject: [PATCH 1/3] use root-config to fill the variables in the Makefile --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 9e43658..1a717ef 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ -RootInclude= -I ../../ToolDAQ/root/include -RootLib= -L ../../ToolDAQ/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lMathCore -lThread -pthread -lm -ldl -rdynamic -pthread -m64 - +RootInclude = -I $(shell root-config --incdir) +RootLib = $(shell root-config --libs) +CXX = $(shell root-config --cxx) all: - g++ -g src/*.cpp UserPlots/*.cpp -o PlotTest -I include -I UserPlots $(RootInclude) $(RootLib) + $(CXX) -g src/*.cpp UserPlots/*.cpp -o PlotTest -I include -I UserPlots $(RootInclude) $(RootLib) clean: - rm PlotTest \ No newline at end of file + rm PlotTest From 0126ba8f6f7fd10629b3f36b80b0e491baaab26f Mon Sep 17 00:00:00 2001 From: Jonathan Eisch Date: Thu, 18 May 2017 09:29:34 -0500 Subject: [PATCH 2/3] Plots really should be in PNG format instead of jpg. Generally smaller file size and lossless compression. --- UserPlots/ExampleEventDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UserPlots/ExampleEventDisplay.cpp b/UserPlots/ExampleEventDisplay.cpp index 823e3c4..d3b46d1 100644 --- a/UserPlots/ExampleEventDisplay.cpp +++ b/UserPlots/ExampleEventDisplay.cpp @@ -49,7 +49,7 @@ bool ExampleEventDisplay::Execute(std::vector *data){ std::stringstream tmp; - tmp<SaveAs(tmp.str().c_str()); } From 04604d054844c87b08d61038b4ce0cec6ff1a0fe Mon Sep 17 00:00:00 2001 From: Jonathan Eisch Date: Thu, 18 May 2017 17:11:00 -0500 Subject: [PATCH 3/3] make more useful filenames. (still overwrite every event) --- UserPlots/ExampleEventDisplay.cpp | 2 +- UserPlots/ExampleEventDisplay.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/UserPlots/ExampleEventDisplay.cpp b/UserPlots/ExampleEventDisplay.cpp index d3b46d1..2b19118 100644 --- a/UserPlots/ExampleEventDisplay.cpp +++ b/UserPlots/ExampleEventDisplay.cpp @@ -49,7 +49,7 @@ bool ExampleEventDisplay::Execute(std::vector *data){ std::stringstream tmp; - tmp<SaveAs(tmp.str().c_str()); } diff --git a/UserPlots/ExampleEventDisplay.h b/UserPlots/ExampleEventDisplay.h index 151c8e1..016fef5 100644 --- a/UserPlots/ExampleEventDisplay.h +++ b/UserPlots/ExampleEventDisplay.h @@ -3,6 +3,7 @@ #include #include +#include #include #include