File indexing completed on 2025-01-18 09:58:01
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
0037
0038
0039
0040
0041
0042
0043 #ifndef G4Cerenkov_h
0044 #define G4Cerenkov_h 1
0045
0046 #include "globals.hh"
0047 #include "G4DynamicParticle.hh"
0048 #include "G4ForceCondition.hh"
0049 #include "G4GPILSelection.hh"
0050 #include "G4MaterialPropertyVector.hh"
0051 #include "G4VProcess.hh"
0052
0053 class G4Material;
0054 class G4ParticleDefinition;
0055 class G4PhysicsTable;
0056 class G4Step;
0057 class G4Track;
0058 class G4VParticleChange;
0059
0060 class G4Cerenkov : public G4VProcess
0061 {
0062 public:
0063 explicit G4Cerenkov(const G4String& processName = "Cerenkov",
0064 G4ProcessType type = fElectromagnetic);
0065 ~G4Cerenkov();
0066
0067 explicit G4Cerenkov(const G4Cerenkov& right);
0068
0069 G4Cerenkov& operator=(const G4Cerenkov& right) = delete;
0070
0071 G4bool IsApplicable(const G4ParticleDefinition& aParticleType) override;
0072
0073
0074
0075 void BuildPhysicsTable(const G4ParticleDefinition& aParticleType) override;
0076
0077
0078 void PreparePhysicsTable(const G4ParticleDefinition& part) override;
0079 void Initialise();
0080
0081 G4double GetMeanFreePath(const G4Track& aTrack, G4double, G4ForceCondition*);
0082
0083
0084
0085 G4double PostStepGetPhysicalInteractionLength(const G4Track& aTrack, G4double,
0086 G4ForceCondition*) override;
0087
0088
0089
0090 G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
0091 const G4Step& aStep) override;
0092
0093
0094
0095 virtual G4double AlongStepGetPhysicalInteractionLength(
0096 const G4Track&, G4double, G4double, G4double&, G4GPILSelection*) override
0097 {
0098 return -1.0;
0099 };
0100
0101 virtual G4double AtRestGetPhysicalInteractionLength(
0102 const G4Track&, G4ForceCondition*) override
0103 {
0104 return -1.0;
0105 };
0106
0107
0108 virtual G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&) override
0109 {
0110 return nullptr;
0111 };
0112
0113 virtual G4VParticleChange* AlongStepDoIt(const G4Track&,
0114 const G4Step&) override
0115 {
0116 return nullptr;
0117 };
0118
0119 void SetTrackSecondariesFirst(const G4bool state);
0120
0121
0122
0123
0124 G4bool GetTrackSecondariesFirst() const;
0125
0126
0127 void SetMaxBetaChangePerStep(const G4double d);
0128
0129
0130 G4double GetMaxBetaChangePerStep() const;
0131
0132
0133 void SetMaxNumPhotonsPerStep(const G4int NumPhotons);
0134
0135
0136
0137
0138
0139
0140 G4int GetMaxNumPhotonsPerStep() const;
0141
0142
0143
0144 void SetStackPhotons(const G4bool);
0145
0146
0147 G4bool GetStackPhotons() const;
0148
0149
0150 G4int GetNumPhotons() const;
0151
0152
0153 G4PhysicsTable* GetPhysicsTable() const;
0154
0155
0156 void DumpPhysicsTable() const;
0157
0158
0159 G4double GetAverageNumberOfPhotons(const G4double charge, const G4double beta,
0160 const G4Material* aMaterial,
0161 G4MaterialPropertyVector* Rindex) const;
0162
0163 void DumpInfo() const override {ProcessDescription(G4cout);};
0164 void ProcessDescription(std::ostream& out) const override;
0165
0166 void SetVerboseLevel(G4int);
0167
0168
0169 protected:
0170 G4PhysicsTable* thePhysicsTable;
0171
0172 private:
0173 G4double fMaxBetaChange;
0174
0175 G4int fMaxPhotons;
0176 G4int fNumPhotons;
0177
0178 G4bool fStackingFlag;
0179 G4bool fTrackSecondariesFirst;
0180
0181 G4int secID = -1;
0182
0183 };
0184
0185 inline G4bool G4Cerenkov::GetTrackSecondariesFirst() const
0186 {
0187 return fTrackSecondariesFirst;
0188 }
0189
0190 inline G4double G4Cerenkov::GetMaxBetaChangePerStep() const
0191 {
0192 return fMaxBetaChange;
0193 }
0194
0195 inline G4int G4Cerenkov::GetMaxNumPhotonsPerStep() const { return fMaxPhotons; }
0196
0197 inline G4bool G4Cerenkov::GetStackPhotons() const { return fStackingFlag; }
0198
0199 inline G4int G4Cerenkov::GetNumPhotons() const { return fNumPhotons; }
0200
0201 inline G4PhysicsTable* G4Cerenkov::GetPhysicsTable() const
0202 {
0203 return thePhysicsTable;
0204 }
0205
0206 #endif