File indexing completed on 2025-01-18 09:57:52
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 #ifndef G4AdjointProcessEquivalentToDirectProcess_h
0037 #define G4AdjointProcessEquivalentToDirectProcess_h 1
0038
0039 #include "G4VProcess.hh"
0040
0041 class G4AdjointProcessEquivalentToDirectProcess : public G4VProcess
0042 {
0043 public:
0044 explicit G4AdjointProcessEquivalentToDirectProcess(
0045 const G4String& aName, G4VProcess* aProcess,
0046 G4ParticleDefinition* fwd_particle_def);
0047
0048 ~G4AdjointProcessEquivalentToDirectProcess() override;
0049
0050 G4VParticleChange* PostStepDoIt(const G4Track& track,
0051 const G4Step& stepData) override;
0052
0053 G4VParticleChange* AlongStepDoIt(const G4Track& track,
0054 const G4Step& stepData) override;
0055 G4VParticleChange* AtRestDoIt(const G4Track& track,
0056 const G4Step& stepData) override;
0057
0058 G4double AlongStepGetPhysicalInteractionLength(
0059 const G4Track& track, G4double previousStepSize,
0060 G4double currentMinimumStep, G4double& proposedSafety,
0061 G4GPILSelection* selection) override;
0062
0063 G4double AtRestGetPhysicalInteractionLength(
0064 const G4Track& track, G4ForceCondition* condition) override;
0065
0066 G4double PostStepGetPhysicalInteractionLength(
0067 const G4Track& track, G4double previousStepSize,
0068 G4ForceCondition* condition) override;
0069
0070 G4bool IsApplicable(const G4ParticleDefinition&) override;
0071
0072 void BuildPhysicsTable(const G4ParticleDefinition&) override;
0073
0074 void PreparePhysicsTable(const G4ParticleDefinition&) override;
0075
0076 G4bool StorePhysicsTable(const G4ParticleDefinition*,
0077 const G4String& directory,
0078 G4bool ascii = false) override;
0079
0080 G4bool RetrievePhysicsTable(const G4ParticleDefinition*,
0081 const G4String& directory,
0082 G4bool ascii = false) override;
0083
0084 void StartTracking(G4Track*) override;
0085 void EndTracking() override;
0086
0087 void ResetNumberOfInteractionLengthLeft() override;
0088
0089 G4AdjointProcessEquivalentToDirectProcess(G4AdjointProcessEquivalentToDirectProcess&) =
0090 delete;
0091 G4AdjointProcessEquivalentToDirectProcess& operator=(
0092 const G4AdjointProcessEquivalentToDirectProcess& right) = delete;
0093
0094 private:
0095 G4ParticleDefinition* fFwdParticleDef;
0096 G4VProcess* fDirectProcess;
0097 };
0098
0099 #endif