37 using namespace CLHEP;
53 fieldShape(MedicalBeam::SQUARE),
75 dr= std::sqrt(
sqr(fieldXY[0]/2.)+
sqr(fieldXY[1]/2.));
88 xmax= fieldXY[0]/2./SSD;
89 ymax= fieldXY[1]/2./SSD;
100 dsin= std::sqrt(1.-
sqr(dcos));
103 x= std::cos(dphi)*dsin*dcos;
104 y= std::sin(dphi)*dsin*dcos;
131 vertex-> SetPrimary(primary);
134 anEvent-> AddPrimaryVertex(vertex);