/*
$Log$
+Revision 1.23 2000/10/02 21:28:06 fca
+Removal of useless dependecies via forward declarations
+
Revision 1.22 2000/09/12 14:14:55 morsch
Call fDecayer->ForceDecay() at the beginning of Generate().
wgtch=fChildWeight*fPtParaFunc(& ptd, &dummy);
}
xmt=sqrt(pt*pt+am*am);
+ if (TMath::Abs(ty)==1) ty=0;
pl=xmt*ty/sqrt(1.-ty*ty);
theta=TMath::ATan2(pt,pl);
// Cut on theta
/*
$Log$
+Revision 1.24 2000/09/18 10:41:35 morsch
+Add possibility to use nuclear structure functions from PDF library V8.
+
Revision 1.23 2000/09/14 14:05:40 morsch
dito
//
// rapidity cut
- Float_t y = 0.5*TMath::Log((e+pz)/(e-pz));
- if (y > fYMax || y < fYMin)
- {
+ if (e==pz) {
+ return kFALSE;
+ }
+ else {
+ Float_t y = 0.5*TMath::Log((e+pz)/(e-pz));
+ if (y > fYMax || y < fYMin)
+ {
// printf("\n failed y cut %f %f %f \n",y,fYMin,fYMax);
- return kFALSE;
+ return kFALSE;
+ }
}
//