I have a file which contains a TH2F histogram. I can verify this by f.ls(). I can also verify the histogram content by GetMaximum(), GetBinContent() etc.
But when I draw the histogram totalions->Draw() I get only the axis on the screen and no content. I have tried different options on the Draw() command (col,colz) but nothing changes.
Is there any parameter I should modify?
Because I want each event to go to more than one bin. The code looks like
Int_t nbins=200;
Double_t x[200];
for (Int_t i=0; i<nbins; i++){
x[i]=50*pow((1.005/0.995),i);
}
TH2F *totalions = new TH2F("totalions","number of ions per magnetic rigidity",700,50,400,700,50,400);
totalions->SetBins(nbins-1,x,nbins-1,x);
and for the filling of the histogram inside a duoble for loop over i,j glbin=totalions->GetBin(i,j);
totalions->AddBinContent(glbin);
If it is important I will try to produce a running example.