21 printf(
"EicBoxGenerator::ReadEvent(): either PDG or momentum range undefined!\n");
29 for(
unsigned iq=0; iq<3; iq++) {
41 for (
unsigned pt=0; pt<
mMult; pt++) {
48 acos(gRandom->Uniform(
cos(
mThetaMax * TMath::DegToRad()),
50 double nx = TMath::Sin(theta)*TMath::Cos(phi);
51 double ny = TMath::Sin(theta)*TMath::Sin(phi);
52 double nz = TMath::Cos(theta);
57 printf(
"%7.3f %7.3f %7.3f\n", pvect[0], pvect[1], pvect[2]);