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);
G4ThreeVector sourcePosition
ThreeVector shoot(const G4int Ap, const G4int Af)
CLHEP::Hep3Vector G4ThreeVector
G4ThreeVector GenerateBeamDirection() const
virtual void GeneratePrimaries(G4Event *anEvent)
G4ParticleDefinition * particle