Hello everyone…
I am converting a profile into a 1d histogram, using
TH1D *hist = profile->ProjectionX();
and then
hist->Draw(“l”);
The first annoyance is that this automatically creates a histogram called profile_px,
which lingers in the memory, hence if you try to do
TH1D *secondhist = profile->ProjectionX();
you start getting memory leak warnings…
The second annoyance is that it’s impossible to do
hist->Draw(“l”) – i.e. you get a plot of points with error bars, and
if you want to get a line plot, well, there seems to be no way (I go
into the Editor and try to do it using the gui, and still, all I see
are points with error bars). This prolem is particularly annoying,
and I am looking for ways to solve this. Any ideas?