Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -23,12 +23,11 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: F05PrimaryGeneratorAction.cc 69563 2013-05-08 12:30:36Z gcosmo $
//
/// \file field/field05/src/F05PrimaryGeneratorAction.cc
/// \brief Implementation of the F05PrimaryGeneratorAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -49,19 +48,19 @@
F05PrimaryGeneratorAction::F05PrimaryGeneratorAction(void)
{
G4int n_particle = 1;
particleGun = new G4ParticleGun(n_particle);
fParticleGun = new G4ParticleGun(n_particle);
G4ParticleTable* particleTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* particle = particleTable->FindParticle("mu+");
particleGun->SetParticleDefinition(particle);
fParticleGun->SetParticleDefinition(particle);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
F05PrimaryGeneratorAction::~F05PrimaryGeneratorAction()
{
delete particleGun;
delete fParticleGun;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -80,12 +79,12 @@ void F05PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
G4double y0 = 0.00*m;
G4double z0 = 0.00*m;
particleGun->SetParticleEnergy(Kmu);
particleGun->SetParticlePosition(G4ThreeVector(x0,y0,z0));
particleGun->SetParticlePolarization(G4ThreeVector(0.,1.,0.));
particleGun->SetParticleMomentumDirection(G4ThreeVector(0.,1.,0.));
fParticleGun->SetParticleEnergy(Kmu);
fParticleGun->SetParticlePosition(G4ThreeVector(x0,y0,z0));
fParticleGun->SetParticlePolarization(G4ThreeVector(0.,1.,0.));
fParticleGun->SetParticleMomentumDirection(G4ThreeVector(0.,1.,0.));
particleGun->GeneratePrimaryVertex(anEvent);
fParticleGun->GeneratePrimaryVertex(anEvent);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......