File indexing completed on 2025-01-18 09:59:28
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 #ifndef G4WeightCutOffProcess_hh
0035 #define G4WeightCutOffProcess_hh 1
0036
0037 #include "G4VProcess.hh"
0038 #include "G4VTrackTerminator.hh"
0039 #include "G4GeometryCell.hh"
0040 #include "G4VTouchable.hh"
0041
0042
0043 class G4VIStore;
0044
0045 class G4Step;
0046 class G4Navigator;
0047 class G4TransportationManager;
0048 class G4PathFinder;
0049
0050 #include "G4FieldTrack.hh"
0051 #include "G4TouchableHandle.hh"
0052 #include "G4MultiNavigator.hh" // For ELimited enum
0053
0054 class G4WeightCutOffProcess : public G4VProcess
0055 {
0056
0057 public:
0058
0059 G4WeightCutOffProcess(G4double wsurvival,
0060 G4double wlimit,
0061 G4double isource,
0062 G4VIStore *istore,
0063 const G4String &aName = "WeightCutOffProcess",
0064 G4bool para = false);
0065
0066
0067 virtual ~G4WeightCutOffProcess();
0068
0069
0070 G4WeightCutOffProcess(const G4WeightCutOffProcess &) = delete;
0071 G4WeightCutOffProcess &operator=(const G4WeightCutOffProcess &) = delete;
0072
0073
0074
0075
0076
0077 void SetParallelWorld(const G4String ¶llelWorldName);
0078 void SetParallelWorld(G4VPhysicalVolume* parallelWorld);
0079
0080
0081
0082
0083
0084 void StartTracking(G4Track*);
0085
0086 virtual G4double
0087 PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
0088 G4double previousStepSize,
0089 G4ForceCondition* condition);
0090
0091
0092 virtual G4VParticleChange * PostStepDoIt(const G4Track&,
0093 const G4Step&);
0094
0095
0096 const G4String &GetName() const;
0097
0098 public:
0099
0100
0101
0102 virtual G4double
0103 AlongStepGetPhysicalInteractionLength(const G4Track&,
0104 G4double ,
0105 G4double ,
0106 G4double& ,
0107 G4GPILSelection*);
0108
0109 virtual G4double
0110 AtRestGetPhysicalInteractionLength(const G4Track& ,
0111 G4ForceCondition*);
0112
0113 virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&);
0114 virtual G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&);
0115
0116 private:
0117
0118 void CopyStep(const G4Step & step);
0119
0120 G4Step* fGhostStep = nullptr;
0121 G4StepPoint* fGhostPreStepPoint = nullptr;
0122 G4StepPoint* fGhostPostStepPoint = nullptr;
0123
0124 G4ParticleChange* fParticleChange = nullptr;
0125 G4double fWeightSurvival = 0.;
0126 G4double fWeightLimit = 0.;
0127 G4double fSourceImportance = 0.;
0128 G4VIStore* fIStore = nullptr;
0129
0130 G4TransportationManager* fTransportationManager = nullptr;
0131 G4PathFinder* fPathFinder = nullptr;
0132
0133
0134
0135
0136 G4String fGhostWorldName = "NoParallelWorld";
0137 G4VPhysicalVolume* fGhostWorld = nullptr;
0138 G4Navigator* fGhostNavigator = nullptr;
0139 G4int fNavigatorID = -1;
0140 G4TouchableHandle fOldGhostTouchable;
0141 G4TouchableHandle fNewGhostTouchable;
0142 G4FieldTrack fFieldTrack = '0';
0143 G4double fGhostSafety = -1;
0144 G4bool fOnBoundary = false;
0145
0146 G4bool fParaflag;
0147 G4FieldTrack fEndTrack = '0';
0148 ELimited feLimited = kDoNot;
0149 };
0150
0151 #endif