I do not get the same error. It seems your code has some invalid pointer:
Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
In file included from input_line_9:1:
/Users/couet/Downloads/calo.C:6886:14: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
p09sub = htemp9sub->GetFunction("gaus")->GetParameter(0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are right…I commented it and I get error…but I downloaded again your file and I get error using it too o_O
When you uploaded it, it worked… I get the same error that in my printscreen…
line 3258 TH1 *hh = henecdsubstringcutrelTHF->DrawCopy("colz"); // creates all axes
I can’t understand what is happening…
Sometimes your histograms are empty and the fit does not produce any function. But you call GetParameter on this non existing function. This is why it crashes. I have put a few protections here and there to make your macro work. I would anyway recommend that you revisit it completely. It really looks very “draft” (no indentation, a lot of useless code, etc …). calo.C (1.0 MB)
Thank you @bellenot and @couet . Then should I use other TH2F typology (not COLZ) to increase the marker size, or is there other way to increase them using the COLZ?
No, you don’t understand. What you see are not markers, they are bin contents. To see them bigger you have to zoom, or to decrease the bin numbers. Simply try with 50 bins in x and y, you’ll see what I mean…