92 TH2F *hid = (TH2F*)
f.Get(
"mH2");
93 TAxis* xaxis = hid->GetXaxis();
94 TAxis* yaxis = hid->GetYaxis();
96 int BINSx =xaxis->GetLast();
97 int BINSy =yaxis->GetLast();
98 int BINS =BINSx*BINSy;
99 double yvalue,ymax=0.0;
102 for(i=1;i<BINSx+1;i++){
103 for(j=1;j<BINSy+1;j++){
104 binxy=hid->GetBin(i,j);
105 yvalue=hid->GetBinContent(binxy);
107 if(yvalue>ymax) ymax=yvalue;
114 if(p->
getNDaug()!= nbx+nby) {std::cout<<
"The number of specified particles is not equal the number of decay daughters "<<endl;::abort();}
120 for (
int ii=1;ii<nbx;ii++){
130 int xbin = hid->GetXaxis()->FindBin(
xmass);
131 int ybin = hid->GetYaxis()->FindBin(ymass);
132 int xybin= hid->GetBin(xbin,ybin);
133 double zvalue=hid->GetBinContent(xybin);
134 double xratio=zvalue/ymax;
137 if(rd1>xratio)
goto loop;
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)