91 TH1F *hid = (TH1F*)f.Get(hp);
92 TAxis* xaxis = hid->GetXaxis();
94 double BLE =xaxis->GetBinLowEdge(1);
95 int BINS =xaxis->GetLast();
97 static double ymax=0.0;
99 double Ntotal=0,yc[20000];
103 for(i=1;i<BINS+1;i++){
104 yvalue[i]=hid->GetBinContent(i);
105 if(yvalue[i]>ymax) ymax=yvalue[i];
116 double costheta,cosphi;
123 double ppmag=pp.
d3mag();
126 if(ppmag<0.0001){costheta=nor.
get(3)/nor.
d3mag();}
else
129 int xbin =hid->FindBin(costheta);
130 double xratio=(hid->GetBinContent(xbin))/ymax;
133 if(rd1>xratio)
goto loop;
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)