96 TH2F *hid = (TH2F*)f.Get(hp);
97 TAxis* xaxis = hid->GetXaxis();
98 TAxis* yaxis = hid->GetYaxis();
100 int BINSx =xaxis->GetLast();
101 int BINSy =yaxis->GetLast();
102 int BINS =BINSx*BINSy;
103 double yvalue,ymax=0.0;
106 for(i=1;i<BINSx+1;i++){
107 for(j=1;j<BINSy+1;j++){
108 binxy=hid->GetBin(i,j);
109 yvalue=hid->GetBinContent(binxy);
111 if(yvalue>ymax) ymax=yvalue;
120 double xmass2,ymass2;
132 xmass2=(pd1+pd2).mass2();
133 ymass2=(pd3+pd4).mass2();
135 int xbin = hid->GetXaxis()->FindBin(xmass2);
136 int ybin = hid->GetYaxis()->FindBin(ymass2);
137 int xybin= hid->GetBin(xbin,ybin);
138 double zvalue=hid->GetBinContent(xybin);
139 double xratio=zvalue/ymax;
142 if(rd1>xratio)
goto loop;
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)