93 TH2F *hid = (TH2F*)f.Get(hp);
94 TAxis* xaxis = hid->GetXaxis();
95 TAxis* yaxis = hid->GetYaxis();
97 int BINSx =xaxis->GetLast();
98 int BINSy =yaxis->GetLast();
99 int BINS =BINSx*BINSy;
100 double yvalue,ymax=0.0;
103 for(i=1;i<BINSx+1;i++){
104 for(j=1;j<BINSy+1;j++){
105 binxy=hid->GetBin(i,j);
106 yvalue=hid->GetBinContent(binxy);
108 if(yvalue>ymax) ymax=yvalue;
117 double xcostheta,ycostheta;
131 if(pd1.
get(0)>pd2.
get(0)){
136 int xbin = hid->GetXaxis()->FindBin(xcostheta);
137 int ybin = hid->GetYaxis()->FindBin(ycostheta);
138 int xybin= hid->GetBin(xbin,ybin);
139 double zvalue=hid->GetBinContent(xybin);
140 double xratio=zvalue/ymax;
143 if(rd1>xratio)
goto loop;
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)