52 ed <<
"Particle `" << particleName <<
"' not found !" <<
G4endl;
53 G4Exception(
"GB05BOptrSplitAndKillByCrossSection(...)",
91 G4bool processFound(
false);
108 G4String particleName =
"(unknown)";
115 <<
"' not found for particle `" << particleName <<
"'"
117 G4Exception(
"GB05BOptrSplitAndKillByCrossSection::StartRun(...)",
130 ed <<
"No processes to counterbalance for defined or found ! "
131 <<
"Biasing will do nothing."
133 G4Exception(
"GB05BOptrSplitAndKillByCrossSection::StartRun(...)",
162 for (
size_t i = 0 ; i <
fProcesses.size() ; i++ )
165 if ( interactionLength <
DBL_MAX/10. )
166 totalCrossSection += 1./interactionLength;
168 if ( totalCrossSection <
DBL_MIN )
return 0;
170 G4double totalInteractionLength = 1./totalCrossSection;
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
Definition of the GB05BOptrSplitAndKillByCrossSection class.
std::ostringstream G4ExceptionDescription
static G4ParticleTable * GetParticleTable()
virtual ~GB05BOptrSplitAndKillByCrossSection()
const G4String & GetParticleName() const
std::vector< G4String > fProcessesToEquipoise
G4ParticleDefinition * GetDefinition() const
const std::vector< const G4BiasingProcessInterface * > & GetPhysicsBiasingProcessInterfaces() const
void SetInteractionLength(G4double interactionLength)
G4VProcess * GetWrappedProcess() const
const G4String & GetProcessName() const
std::vector< const G4VProcess * > fProcesses
virtual G4VBiasingOperation * ProposeNonPhysicsBiasingOperation(const G4Track *, const G4BiasingProcessInterface *) final
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
Definition of the GB05BOptnSplitAndKillByCrossSection class.
void AddProcessToEquipoise(G4String processName)
GB05BOptnSplitAndKillByCrossSection * fSplitAndKillByCrossSection
G4ProcessManager * GetProcessManager() const
const G4ParticleDefinition * fParticleToBias
GB05BOptrSplitAndKillByCrossSection(G4String particleToBias, G4String name="SplitAndKillByXS")
const G4BiasingProcessSharedData * GetSharedData() const