77 TH1F* hid = (TH1F*)
f.Get( hp );
78 TAxis* xaxis = hid->GetXaxis();
80 double BLE = xaxis->GetBinLowEdge( 1 );
81 int BINS = xaxis->GetLast();
83 static double ymax = 0.0;
85 double Ntotal = 0, yc[20000];
86 static int icount = 0;
90 for ( i = 1; i < BINS + 1; i++ )
92 yvalue[i] = hid->GetBinContent( i );
93 if ( yvalue[i] > ymax ) ymax = yvalue[i];
104 double costheta, cosphi;
111 double ppmag = pp.
d3mag();
112 nor = pd1.
cross( pd2 );
114 if ( ppmag < 0.0001 ) { costheta = nor.
get( 3 ) / nor.
d3mag(); }
115 else { costheta = nor.
dot( pp ) / nor.
d3mag() / pp.
d3mag(); }
117 int xbin = hid->FindBin( costheta );
118 double xratio = ( hid->GetBinContent( xbin ) ) / ymax;
121 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)