BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions
BDSWrapperProcess Class Reference

#include <BDSWrapperProcess.hh>

Inheritance diagram for BDSWrapperProcess:
Inheritance graph
Collaboration diagram for BDSWrapperProcess:
Collaboration graph

Public Member Functions

virtual G4double AlongStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4double currentMinimumStep, G4double &proposedSafety, G4GPILSelection *selection)
 Same as base class but update currentInteractionLength.
 
virtual G4double AtRestGetPhysicalInteractionLength (const G4Track &track, G4ForceCondition *condition)
 Same as base class but update currentInteractionLength.
 
virtual G4double PostStepGetPhysicalInteractionLength (const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
 Same as base class but update currentInteractionLength.
 

Detailed Description

@brieft Wrapper of wrapper to fix interface.

G4WrapperProcess doesn't override GetCurrentInteractionLength, so no wrapped processes provide a correct current interaction length necessary for tracking. This function isn't virtual so we can't override just that sadly. Therefore, we override the 3 big functions where the member variable currentInteractionLength would be updated and copy it out of the wrapped process. Even if this is updated in Geant4 now we need to retain backwards compatibility.

Author
Laurie Nevay

Definition at line 40 of file BDSWrapperProcess.hh.

Constructor & Destructor Documentation

◆ ~BDSWrapperProcess()

virtual BDSWrapperProcess::~BDSWrapperProcess ( )
inlinevirtual

Definition at line 44 of file BDSWrapperProcess.hh.

Member Function Documentation

◆ AlongStepGetPhysicalInteractionLength()

G4double BDSWrapperProcess::AlongStepGetPhysicalInteractionLength ( const G4Track &  track,
G4double  previousStepSize,
G4double  currentMinimumStep,
G4double &  proposedSafety,
G4GPILSelection *  selection 
)
virtual

Same as base class but update currentInteractionLength.

Definition at line 24 of file BDSWrapperProcess.cc.

◆ AtRestGetPhysicalInteractionLength()

G4double BDSWrapperProcess::AtRestGetPhysicalInteractionLength ( const G4Track &  track,
G4ForceCondition *  condition 
)
virtual

Same as base class but update currentInteractionLength.

Definition at line 40 of file BDSWrapperProcess.cc.

◆ PostStepGetPhysicalInteractionLength()

G4double BDSWrapperProcess::PostStepGetPhysicalInteractionLength ( const G4Track &  track,
G4double  previousStepSize,
G4ForceCondition *  condition 
)
virtual

Same as base class but update currentInteractionLength.

Definition at line 49 of file BDSWrapperProcess.cc.


The documentation for this class was generated from the following files: