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,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ParticleGun.cc,v 1.7 2007-11-08 06:42:03 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ParticleGun.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4ParticleGun.cc
//
@@ -60,7 +59,7 @@ const G4ParticleGun& G4ParticleGun::operator=(const G4ParticleGun &right)
particle_momentum_direction= right.particle_momentum_direction;
particle_energy= right.particle_energy;
particle_charge= right.particle_charge;
particle_polarization= right.particle_polarization;
particle_polarization= right.particle_polarization;
return *this;
}
@@ -105,7 +104,7 @@ void SetParticleByName(G4ParticleGun* gun, const std::string& pname)
if (pd != 0) {
gun-> SetParticleDefinition(pd);
} else {
G4cout << "*** \"" << pname << "\" is not registered "
G4cout << "*** \"" << pname << "\" is not registered "
<< "in available particle list" << G4endl;
}
}
@@ -118,7 +117,7 @@ std::string GetParticleByName(G4ParticleGun* gun)
return (pd-> GetParticleName()).c_str();
}
};
}
using namespace pyG4ParticleGun;
@@ -148,9 +147,9 @@ void export_G4ParticleGun()
#else
.def("SetParticleMomentum", &G4ParticleGun::SetParticleMomentum)
#endif
.def("SetParticleMomentumDirection",
.def("SetParticleMomentumDirection",
&G4ParticleGun::SetParticleMomentumDirection)
.def("GetParticleMomentumDirection",
.def("GetParticleMomentumDirection",
&G4ParticleGun::GetParticleMomentumDirection)
.def("SetParticleEnergy", &G4ParticleGun::SetParticleEnergy)
.def("GetParticleEnergy", &G4ParticleGun::GetParticleEnergy)