Is giving me funny behaviour later on when I wish to plot the graph, with axis not appearing, but a stats box appearing. Right now the following code is doing what I want…but I do not like the need to have a pad appear just to be a temporary holder.
int n = tree->Draw("y:x","z>0","goff");
TGraph *g = new TGraph(n,tree->GetV1(),tree->GetV2());
g->Draw("ap");
for more details, see section "How to obtain more info from TTree::Draw"
at : root.cern.ch/root/html/TTreePlay … DrawSelect
I want to take the histogram from Draw(x) and dump it onto something that I can then manipulate so that I can combine several of them. I’m having some trouble doing it with TH1F so I was hoping I could use TGraph as a workaround.
I’ve done the same by using eg Draw(y:x), dumping to a TGraph and then using TMultiGraph to construct graphs that are superimposed, I wanted to do the same but for a couple of 1D histograms.
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
#5 0x0000000000000000 in ?? () #6 0x00002af8456e43e6 in THStack::Add(TH1*, char const*) ()
from /usr/local/root-v5.26.00-gcc3.4/lib/libHist.so #7 0x00002af847a3e951 in drawcompiledgraph() ()
from /home/labs/Linearity/FinalTreesMeanBaseline/./drawcompiledgraph_C.so