…So I was trying to have a histogram that would serve as sort of an array. In other words I was trying…
TH2F eff (“eff”,"",32,-3.2,3.2,16,0,.6);
…then I fill the appropriate values from a text file into the TH2F by doing…
float a, b, c;
fin >> a;
fin >> b;
fin >> c;
…where a and b are not bin values, rather coordinates on the x and y-axis. Similarly I want to recall these values by inputting some variables x and y from calculations…
float z = eff.GetBinContent(eff.FindBin(x,y));
…anyway, the nice thing about this is it’s convenient to run through and fill a histogram and save it to a .root file and use it in other code, and that it’s simple to find the values you need.
The problem I’m having is that FinBin doesn’t seem to find negative values thus: first fills only the positive quadrant and also reads only the positive coordinates.
If I’m just being stupid pleas tell me why