Find the bin of 2D histogram for each event

Dear Expert,

I have prepared a Dalitz plot using two squared masses like below:

Int_t nentries = (Int_t)tree->GetEntries();
for (Int_t i=0; i<nentries; i++)
h2->Fill(M2_Kpi, M2_Kpi0);

Now I want to find the Dalitz bin from the two squared masses for each events.

Can you suggest to solve this?


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

Int_t bin = h2->FindFixBin(some_x_value, some_y_value);

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.