38 using namespace CLHEP;
97 while(! (std::abs(x)< xmax && std::abs(y)< ymax) ) {
99 dsin= std::sqrt(1.-
sqr(dcos));
102 x= std::cos(dphi)*dsin*dcos;
103 y= std::sin(dphi)*dsin*dcos;
129 vertex-> SetPrimary(primary);
132 anEvent-> AddPrimaryVertex(vertex);
G4ParticleDefinition * particle
virtual void GeneratePrimaries(G4Event *anEvent)
CLHEP::Hep3Vector G4ThreeVector
static constexpr double cm
G4ThreeVector sourcePosition
static constexpr double MeV
static constexpr double twopi
const G4ThreeVector const G4double const
ThreeVector shoot(const G4int Ap, const G4int Af)
static constexpr double m
static constexpr double cm
G4ThreeVector GenerateBeamDirection() const