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: pyG4EmCalculator.cc,v 1.7 2008-03-13 07:32:18 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyG4EmCalculator.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyG4EmCalculator.cc
|
||||
//
|
||||
@@ -55,7 +54,7 @@ G4double (G4EmCalculator::*f2_GetDEDX)
|
||||
(G4double, const G4String&, const G4String&, const G4String&)
|
||||
= &G4EmCalculator::GetDEDX;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetDEDX, GetDEDX, 3, 4);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetDEDX, GetDEDX, 3, 4)
|
||||
|
||||
// GetRange
|
||||
G4double (G4EmCalculator::*f1_GetRange)
|
||||
@@ -66,7 +65,7 @@ G4double (G4EmCalculator::*f2_GetRange)
|
||||
(G4double, const G4String&, const G4String&, const G4String&)
|
||||
= &G4EmCalculator::GetRange;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetRange, GetRange, 3, 4);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetRange, GetRange, 3, 4)
|
||||
|
||||
// GetKinEnergy
|
||||
G4double (G4EmCalculator::*f1_GetKinEnergy)
|
||||
@@ -77,55 +76,39 @@ G4double (G4EmCalculator::*f2_GetKinEnergy)
|
||||
(G4double, const G4String&, const G4String&, const G4String&)
|
||||
= &G4EmCalculator::GetKinEnergy;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetKinEnergy, GetKinEnergy, 3, 4);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetKinEnergy, GetKinEnergy, 3, 4)
|
||||
|
||||
// GetCrossSectionPerVolume
|
||||
G4double (G4EmCalculator::*f1_GetCrossSectionPerVolume)
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
const G4String&, const G4Material*, const G4Region*)
|
||||
= &G4EmCalculator::GetCrossSectionPerVolume;
|
||||
|
||||
G4double (G4EmCalculator::*f2_GetCrossSectionPerVolume)
|
||||
(G4double, const G4String&, const G4String&,
|
||||
(G4double, const G4String&, const G4String&,
|
||||
const G4String&, const G4String&)
|
||||
= &G4EmCalculator::GetCrossSectionPerVolume;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetCrossSectionPerVolume,
|
||||
GetCrossSectionPerVolume, 4, 5);
|
||||
|
||||
// GetCrossSectionPerAtom
|
||||
#if G4VERSION_NUMBER <= 801
|
||||
G4double (G4EmCalculator::*f1_GetCrossSectionPerAtom)
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
const G4String&, const G4Material*, const G4Region*)
|
||||
= &G4EmCalculator::GetCrossSectionPerAtom;
|
||||
|
||||
G4double (G4EmCalculator::*f2_GetCrossSectionPerAtom)
|
||||
(G4double, const G4String&, const G4String&,
|
||||
const G4String&, const G4String&)
|
||||
= &G4EmCalculator::GetCrossSectionPerAtom;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetCrossSectionPerAtom,
|
||||
GetCrossSectionPerAtom, 4, 5);
|
||||
#endif
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetCrossSectionPerVolume,
|
||||
GetCrossSectionPerVolume, 4, 5)
|
||||
|
||||
// GetMeanFreePath
|
||||
G4double (G4EmCalculator::*f1_GetMeanFreePath)
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
const G4String&, const G4Material*, const G4Region*)
|
||||
= &G4EmCalculator::GetMeanFreePath;
|
||||
|
||||
G4double (G4EmCalculator::*f2_GetMeanFreePath)
|
||||
(G4double, const G4String&, const G4String&,
|
||||
(G4double, const G4String&, const G4String&,
|
||||
const G4String&, const G4String&)
|
||||
= &G4EmCalculator::GetMeanFreePath;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetMeanFreePath,
|
||||
GetMeanFreePath, 4, 5);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetMeanFreePath,
|
||||
GetMeanFreePath, 4, 5)
|
||||
|
||||
// ComputeDEDX
|
||||
G4double (G4EmCalculator::*f1_ComputeDEDX)
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
const G4String&, const G4Material*, G4double)
|
||||
= &G4EmCalculator::ComputeDEDX;
|
||||
|
||||
@@ -133,10 +116,9 @@ G4double (G4EmCalculator::*f2_ComputeDEDX)
|
||||
(G4double, const G4String&, const G4String&, const G4String&, G4double)
|
||||
= &G4EmCalculator::ComputeDEDX;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeDEDX, ComputeDEDX, 4, 5);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeDEDX, ComputeDEDX, 4, 5)
|
||||
|
||||
// ComputeNuclearDEDX
|
||||
#if G4VERSION_NUMBER >=710
|
||||
G4double (G4EmCalculator::*f1_ComputeNuclearDEDX)
|
||||
(G4double, const G4ParticleDefinition*, const G4Material*)
|
||||
= &G4EmCalculator::ComputeNuclearDEDX;
|
||||
@@ -144,9 +126,7 @@ G4double (G4EmCalculator::*f1_ComputeNuclearDEDX)
|
||||
G4double (G4EmCalculator::*f2_ComputeNuclearDEDX)
|
||||
(G4double, const G4String&, const G4String&)
|
||||
= &G4EmCalculator::ComputeNuclearDEDX;
|
||||
#endif
|
||||
|
||||
#if G4VERSION_NUMBER >= 810
|
||||
// ComputeElectronicDEDX
|
||||
G4double (G4EmCalculator::*f1_ComputeElectronicDEDX)
|
||||
(G4double, const G4ParticleDefinition*, const G4Material*, G4double)
|
||||
@@ -156,8 +136,8 @@ G4double (G4EmCalculator::*f2_ComputeElectronicDEDX)
|
||||
(G4double, const G4String&, const G4String&, G4double)
|
||||
= &G4EmCalculator::ComputeElectronicDEDX;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeElectronicDEDX,
|
||||
ComputeElectronicDEDX, 3, 4);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeElectronicDEDX,
|
||||
ComputeElectronicDEDX, 3, 4)
|
||||
|
||||
// ComputeTotalDEDX
|
||||
G4double (G4EmCalculator::*f1_ComputeTotalDEDX)
|
||||
@@ -168,14 +148,11 @@ G4double (G4EmCalculator::*f2_ComputeTotalDEDX)
|
||||
(G4double, const G4String&, const G4String&, G4double)
|
||||
= &G4EmCalculator::ComputeTotalDEDX;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeTotalDEDX, ComputeTotalDEDX,
|
||||
3, 4);
|
||||
#endif
|
||||
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeTotalDEDX, ComputeTotalDEDX,
|
||||
3, 4)
|
||||
// ComputeCrossSectionPerVolume
|
||||
G4double (G4EmCalculator::*f1_ComputeCrossSectionPerVolume)
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
const G4String&, const G4Material*, G4double)
|
||||
= &G4EmCalculator::ComputeCrossSectionPerVolume;
|
||||
|
||||
@@ -183,12 +160,12 @@ G4double (G4EmCalculator::*f2_ComputeCrossSectionPerVolume)
|
||||
(G4double, const G4String&, const G4String&, const G4String&, G4double)
|
||||
= &G4EmCalculator::ComputeCrossSectionPerVolume;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeCrossSectionPerVolume,
|
||||
ComputeCrossSectionPerVolume, 4, 5);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeCrossSectionPerVolume,
|
||||
ComputeCrossSectionPerVolume, 4, 5)
|
||||
|
||||
// ComputeCrossSectionPerAtom
|
||||
G4double (G4EmCalculator::*f1_ComputeCrossSectionPerAtom)
|
||||
(G4double, const G4ParticleDefinition*, const G4String&,
|
||||
(G4double, const G4ParticleDefinition*, const G4String&,
|
||||
G4double, G4double, G4double)
|
||||
= &G4EmCalculator::ComputeCrossSectionPerAtom;
|
||||
|
||||
@@ -196,13 +173,12 @@ G4double (G4EmCalculator::*f2_ComputeCrossSectionPerAtom)
|
||||
(G4double, const G4String&, const G4String&, const G4Element*, G4double)
|
||||
= &G4EmCalculator::ComputeCrossSectionPerAtom;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeCrossSectionPerAtom,
|
||||
ComputeCrossSectionPerAtom, 5, 6);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeCrossSectionPerAtom,
|
||||
ComputeCrossSectionPerAtom, 5, 6)
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(g_ComputeCrossSectionPerAtom,
|
||||
ComputeCrossSectionPerAtom, 4, 5);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(g_ComputeCrossSectionPerAtom,
|
||||
ComputeCrossSectionPerAtom, 4, 5)
|
||||
|
||||
#if G4VERSION_NUMBER >= 830
|
||||
// ComputeEnergyCutFromRangeCut
|
||||
G4double (G4EmCalculator::*f1_ComputeEnergyCutFromRangeCut)
|
||||
(G4double, const G4ParticleDefinition*, const G4Material*)
|
||||
@@ -211,12 +187,10 @@ G4double (G4EmCalculator::*f1_ComputeEnergyCutFromRangeCut)
|
||||
G4double (G4EmCalculator::*f2_ComputeEnergyCutFromRangeCut)
|
||||
(G4double range, const G4String&, const G4String&)
|
||||
= &G4EmCalculator::ComputeEnergyCutFromRangeCut;
|
||||
#endif
|
||||
|
||||
|
||||
// ComputeMeanFreePath
|
||||
G4double (G4EmCalculator::*f1_ComputeMeanFreePath)
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
(G4double, const G4ParticleDefinition*,
|
||||
const G4String&, const G4Material*, G4double)
|
||||
= &G4EmCalculator::ComputeMeanFreePath;
|
||||
|
||||
@@ -224,13 +198,13 @@ G4double (G4EmCalculator::*f2_ComputeMeanFreePath)
|
||||
(G4double, const G4String&, const G4String&, const G4String&, G4double)
|
||||
= &G4EmCalculator::ComputeMeanFreePath;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeMeanFreePath,
|
||||
ComputeMeanFreePath, 4, 5);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeMeanFreePath,
|
||||
ComputeMeanFreePath, 4, 5)
|
||||
|
||||
// FindCouple
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_FindCouple, FindCouple, 1, 2);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_FindCouple, FindCouple, 1, 2)
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyG4EmCalculator;
|
||||
|
||||
@@ -248,16 +222,10 @@ void export_G4EmCalculator()
|
||||
.def("GetRange", f2_GetDEDX, f_GetRange())
|
||||
.def("GetKinEnergy", f1_GetKinEnergy, f_GetKinEnergy())
|
||||
.def("GetKinEnergy", f2_GetKinEnergy, f_GetKinEnergy())
|
||||
.def("GetCrossSectionPerVolume",
|
||||
.def("GetCrossSectionPerVolume",
|
||||
f1_GetCrossSectionPerVolume, f_GetCrossSectionPerVolume())
|
||||
.def("GetCrossSectionPerVolume",
|
||||
.def("GetCrossSectionPerVolume",
|
||||
f2_GetCrossSectionPerVolume, f_GetCrossSectionPerVolume())
|
||||
#if G4VERSION_NUMBER <= 801
|
||||
.def("GetCrossSectionPerAtom",
|
||||
f1_GetCrossSectionPerAtom, f_GetCrossSectionPerAtom())
|
||||
.def("GetCrossSectionPerAtom",
|
||||
f2_GetCrossSectionPerAtom, f_GetCrossSectionPerAtom())
|
||||
#endif
|
||||
.def("GetMeanFreePath", f1_GetMeanFreePath, f_GetMeanFreePath())
|
||||
.def("GetMeanFreePath", f2_GetMeanFreePath, f_GetMeanFreePath())
|
||||
// ---
|
||||
@@ -267,18 +235,14 @@ void export_G4EmCalculator()
|
||||
// ---
|
||||
.def("ComputeDEDX", f1_ComputeDEDX, f_ComputeDEDX())
|
||||
.def("ComputeDEDX", f2_ComputeDEDX, f_ComputeDEDX())
|
||||
#if G4VERSION_NUMBER >=710
|
||||
.def("ComputeNuclearDEDX", f1_ComputeNuclearDEDX)
|
||||
.def("ComputeNuclearDEDX", f2_ComputeNuclearDEDX)
|
||||
#endif
|
||||
#if G4VERSION_NUMBER >= 810
|
||||
.def("ComputeElectronicDEDX", f1_ComputeElectronicDEDX,
|
||||
.def("ComputeElectronicDEDX", f1_ComputeElectronicDEDX,
|
||||
f_ComputeElectronicDEDX())
|
||||
.def("ComputeDEDX", f2_ComputeElectronicDEDX,
|
||||
.def("ComputeDEDX", f2_ComputeElectronicDEDX,
|
||||
f_ComputeElectronicDEDX())
|
||||
.def("ComputeTotalDEDX", f1_ComputeTotalDEDX, f_ComputeTotalDEDX())
|
||||
.def("ComputeTotalDEDX", f2_ComputeTotalDEDX, f_ComputeTotalDEDX())
|
||||
#endif
|
||||
// ---
|
||||
.def("ComputeCrossSectionPerVolume",
|
||||
f1_ComputeCrossSectionPerVolume, f_ComputeCrossSectionPerVolume())
|
||||
@@ -288,12 +252,10 @@ void export_G4EmCalculator()
|
||||
f1_ComputeCrossSectionPerAtom, f_ComputeCrossSectionPerAtom())
|
||||
.def("ComputeCrossSectionPerAtom",
|
||||
f2_ComputeCrossSectionPerAtom, g_ComputeCrossSectionPerAtom())
|
||||
#if G4VERSION_NUMBER >= 830
|
||||
.def("ComputeEnergyCutFromRangeCut", f1_ComputeEnergyCutFromRangeCut)
|
||||
.def("ComputeEnergyCutFromRangeCut", f2_ComputeEnergyCutFromRangeCut)
|
||||
#endif
|
||||
// ---
|
||||
.def("ComputeMeanFreePath",
|
||||
.def("ComputeMeanFreePath",
|
||||
f1_ComputeMeanFreePath, f_ComputeMeanFreePath())
|
||||
.def("ComputeMeanFreePath",
|
||||
f2_ComputeMeanFreePath, f_ComputeMeanFreePath())
|
||||
@@ -310,4 +272,3 @@ void export_G4EmCalculator()
|
||||
.def("SetVerbose", &G4EmCalculator::SetVerbose)
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user