#include <G4BOptrForceCollision.hh>
|
| G4BOptrForceCollision (G4String particleToForce, G4String name="ForceCollision") |
|
| G4BOptrForceCollision (const G4ParticleDefinition *particleToForce, G4String name="ForceCollision") |
|
| ~G4BOptrForceCollision () |
|
virtual void | Configure () final |
|
virtual void | ConfigureForWorker () final |
|
virtual void | StartRun () final |
|
virtual void | StartTracking (const G4Track *track) final |
|
virtual void | ExitBiasing (const G4Track *, const G4BiasingProcessInterface *) final |
|
virtual void | EndTracking () final |
|
void | OperationApplied (const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced) final |
|
void | OperationApplied (const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *occurenceOperationApplied, G4double weightForOccurenceInteraction, G4VBiasingOperation *finalStateOperationApplied, const G4VParticleChange *particleChangeProduced) final |
|
| G4VBiasingOperator (G4String name) |
|
virtual | ~G4VBiasingOperator () |
|
const G4String | GetName () const |
|
void | AttachTo (const G4LogicalVolume *) |
|
G4BiasingAppliedCase | GetPreviousBiasingAppliedCase () const |
|
G4VBiasingOperation * | GetProposedOccurenceBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess) |
|
G4VBiasingOperation * | GetProposedFinalStateBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess) |
|
G4VBiasingOperation * | GetProposedNonPhysicsBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess) |
|
void | ExitingBiasing (const G4Track *track, const G4BiasingProcessInterface *callingProcess) |
|
void | ReportOperationApplied (const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *operationApplied, const G4VParticleChange *particleChangeProduced) |
|
void | ReportOperationApplied (const G4BiasingProcessInterface *callingProcess, G4BiasingAppliedCase biasingCase, G4VBiasingOperation *occurenceOperationApplied, G4double weightForOccurenceInteraction, G4VBiasingOperation *finalStateOperationApplied, const G4VParticleChange *particleChangeProduced) |
|
const G4VBiasingOperation * | GetPreviousNonPhysicsAppliedOperation () |
|
Definition at line 59 of file G4BOptrForceCollision.hh.
G4BOptrForceCollision::G4BOptrForceCollision |
( |
G4String |
particleToForce, |
|
|
G4String |
name = "ForceCollision" |
|
) |
| |
Definition at line 46 of file G4BOptrForceCollision.cc.
48 fForceCollisionModelID(-1),
49 fCurrentTrack(
nullptr),
50 fCurrentTrackData(
nullptr),
51 fInitialTrackWeight(-1.0),
58 if ( fParticleToBias == 0 )
61 ed <<
" Particle `" << particleName <<
"' not found !" <<
G4endl;
62 G4Exception(
" G4BOptrForceCollision::G4BOptrForceCollision(...)",
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
std::ostringstream G4ExceptionDescription
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ParticleTable * GetParticleTable()
G4VBiasingOperator(G4String name)
Definition at line 70 of file G4BOptrForceCollision.cc.
72 fForceCollisionModelID(-1),
73 fCurrentTrack(
nullptr),
74 fCurrentTrackData(
nullptr),
75 fInitialTrackWeight(-1.0),
80 fParticleToBias = particle;
G4VBiasingOperator(G4String name)
G4BOptrForceCollision::~G4BOptrForceCollision |
( |
| ) |
|
Definition at line 84 of file G4BOptrForceCollision.cc.
86 for ( std::map< const G4BiasingProcessInterface*, G4BOptnForceFreeFlight* >::iterator it = fFreeFlightOperations.begin() ;
87 it != fFreeFlightOperations.end() ;
88 it++ )
delete (*it).second;
89 delete fSharedForceInteractionOperation;
90 delete fCloningOperation;
void G4BOptrForceCollision::Configure |
( |
| ) |
|
|
finalvirtual |
void G4BOptrForceCollision::ConfigureForWorker |
( |
| ) |
|
|
finalvirtual |
Reimplemented from G4VBiasingOperator.
Definition at line 104 of file G4BOptrForceCollision.cc.
114 if ( interfaceProcessSharedData )
const std::vector< const G4BiasingProcessInterface * > & GetPhysicsBiasingProcessInterfaces() const
G4VProcess * GetWrappedProcess() const
const G4String & GetProcessName() const
G4ProcessManager * GetProcessManager() const
static G4int Register(const G4String &)
const G4BiasingProcessSharedData * GetSharedData() const
void G4BOptrForceCollision::EndTracking |
( |
| ) |
|
|
finalvirtual |
Reimplemented from G4VBiasingOperator.
Definition at line 316 of file G4BOptrForceCollision.cc.
319 if ( fCurrentTrackData !=
nullptr )
326 ed <<
"Current track deleted while under biasing by " <<
GetName() <<
". Will result in inconsistencies.";
327 G4Exception(
" G4BOptrForceCollision::EndTracking()",
std::ostringstream G4ExceptionDescription
G4TrackStatus GetTrackStatus() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String GetName() const
G4bool IsFreeFromBiasing() const
Reimplemented from G4VBiasingOperator.
Definition at line 337 of file G4BOptrForceCollision.cc.
343 if ( fCurrentTrackData ==
nullptr )
348 ed <<
" Internal inconsistency : please submit bug report. " <<
G4endl;
349 G4Exception(
" G4BOptrForceCollision::OperationApplied(...)",
366 if ( fFreeFlightOperations[callingProcess]->OperationComplete() ) fCurrentTrackData->Reset();
370 if ( operationApplied != fSharedForceInteractionOperation )
373 ed <<
" Internal inconsistency : please submit bug report. " <<
G4endl;
374 G4Exception(
" G4BOptrForceCollision::OperationApplied(...)",
381 if ( operationApplied != fSharedForceInteractionOperation )
384 ed <<
" Internal inconsistency : please submit bug report. " <<
G4endl;
385 G4Exception(
" G4BOptrForceCollision::OperationApplied(...)",
397 ed <<
" Internal inconsistency : please submit bug report. " <<
G4endl;
398 G4Exception(
" G4BOptrForceCollision::OperationApplied(...)",
std::ostringstream G4ExceptionDescription
G4Track * GetCloneTrack() const
void SetAuxiliaryTrackInformation(G4int idx, G4VAuxiliaryTrackInformation *info) const
G4bool GetInteractionOccured() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Reimplemented from G4VBiasingOperator.
Definition at line 407 of file G4BOptrForceCollision.cc.
414 if ( finalStateOperationApplied != fSharedForceInteractionOperation )
417 ed <<
" Internal inconsistency : please submit bug report. " <<
G4endl;
418 G4Exception(
" G4BOptrForceCollision::OperationApplied(...)",
428 ed <<
" Internal inconsistency : please submit bug report. " <<
G4endl;
429 G4Exception(
" G4BOptrForceCollision::OperationApplied(...)",
std::ostringstream G4ExceptionDescription
G4bool GetInteractionOccured() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
void G4BOptrForceCollision::StartRun |
( |
| ) |
|
|
finalvirtual |
void G4BOptrForceCollision::StartTracking |
( |
const G4Track * |
track | ) |
|
|
finalvirtual |
The documentation for this class was generated from the following files: