Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyParticleGun.cc,v 1.4 2006-06-29 15:30:21 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyParticleGun.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyParticleGun.cc
|
||||
//
|
||||
@@ -53,11 +52,11 @@ G4ParticleGun* Construct()
|
||||
|
||||
ParticleGunAction* pga= new ParticleGunAction;
|
||||
runMgr-> SetUserAction(pga);
|
||||
|
||||
|
||||
return pga-> GetParticleGun();
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyParticleGun;
|
||||
|
||||
@@ -74,7 +73,7 @@ BOOST_PYTHON_MODULE(ParticleGun) {
|
||||
;
|
||||
|
||||
// ---
|
||||
def("Construct", Construct,
|
||||
def("Construct", Construct,
|
||||
return_value_policy<reference_existing_object>());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user