I am compiling some code which loops over several rootfile inputs to create an array of canvases.
The code works OK, however I have two minor niggles.
Firstly, I would like to increase the label size.
gStyle->SetLabelSize(0.06, “XY”); gives a seg fault, anything with gStyle does - which library do I need to include?
Secondly, I would like to clean up the 2D spectra by removing low stat regions.
h[j]->SetMinimum(1000); or h[j]->GetZaxis()->SetRangeUser(1000,10000); both fail.
I compile via
g++ root-config --cflags -Wl,–no-as-needed -g -O2 paparazzi2.cpp -o paparazzi2 root-config --libs
I attach one of the canvas elements as an example and also my code.
Ta muchly
Ben
(I also get “Error in TTreeFormula::TTreeFormula: Index 70 for dimension #1 in cal[70] is too high (max is 31)”, but as errors go it is quite agreeable
However, without using an array of histograms, how might I set the minimum?
“h[j]->GetZaxis()->SetRangeUser(1000,reallybignumber);”
I know topdown[32] doesn’t exist - it draws something crazy. But then I write over that corner of the canvas, so in the end I think it’s ok (bad practice