81double ResonanceMass =0.7710;
82double ResonanceWidth=0.1492;
95double amps,SamAmps,rd1;
99 for(ir=0;ir<=20000;ir++){
103 for(i=0;i<=nd-1;i++){
107 amps=
AmplitudeSquare(ResonanceMass,ResonanceWidth,r1,r2,phase1,phase2);
108 if(amps>max_amps) max_amps=amps*1.01;
112if(max_amps==0.0) {
report(
ERROR,
"EvtGen")<<
"The decay amplitude square should be positive number"<<endl;abort();}
124 amps=
AmplitudeSquare(ResonanceMass,ResonanceWidth,r1,r2,phase1,phase2);
125 SamAmps=amps/max_amps;
127 if(rd1>=SamAmps)
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)
double AmplitudeSquare(double ResonanceMass, double ResonanceWidth, double r1, double r2, double phase1, double phase2)