_ROOT Version: 6.14.00 Platform: Linux Ubuntu 18.04 Compiler: Not Provided
Hi all,
Is it possible to put histograms (as existing files) into a THStack and how would one do that? Is there a general way to unpack a file and set it to a temporary variable name in the ROOT shell?
Is a histogram an object? I don’t think I understand what the link is trying to explain (sorry! I’m a super beginner). I’ve seen this:
TH1F *h = new TH1F("h1","title",100,0,3,3)
and I was wondering if there’s a way to take a .root or .c file and make it so that it can be called by a variable equivalent of the “h1” when you create a new histogram. I’m trying to put files into a THStack and I can’t seem to find anything that says how to do it with a .root or .C file.