File indexing completed on 2025-01-18 09:59:27
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 G4VTransitionRadiation_h
0035 #define G4VTransitionRadiation_h
0036
0037 #include "globals.hh"
0038 #include "G4ForceCondition.hh"
0039 #include "G4ParticleDefinition.hh"
0040 #include "G4Region.hh"
0041 #include "G4Step.hh"
0042 #include "G4Track.hh"
0043 #include "G4VDiscreteProcess.hh"
0044 #include "G4VParticleChange.hh"
0045
0046 #include <vector>
0047
0048 class G4LossTableManager;
0049 class G4Material;
0050 class G4VTRModel;
0051
0052 class G4VTransitionRadiation : public G4VDiscreteProcess
0053 {
0054 public:
0055
0056 explicit G4VTransitionRadiation(const G4String& processName = "TR",
0057 G4ProcessType type = fElectromagnetic);
0058
0059
0060 virtual ~G4VTransitionRadiation();
0061
0062 virtual G4bool IsApplicable(
0063 const G4ParticleDefinition& aParticleType) override;
0064
0065 void ProcessDescription(std::ostream&) const override;
0066 void DumpInfo() const override { ProcessDescription(G4cout); };
0067
0068 virtual G4double GetMeanFreePath(const G4Track& track, G4double,
0069 G4ForceCondition* condition) override;
0070
0071 virtual G4VParticleChange* PostStepDoIt(const G4Track& track,
0072 const G4Step& step) override;
0073
0074 void SetRegion(const G4Region* reg);
0075
0076 void SetModel(G4VTRModel* m);
0077
0078 void Clear();
0079
0080
0081 G4VTransitionRadiation& operator=(const G4VTransitionRadiation& right) =
0082 delete;
0083 G4VTransitionRadiation(const G4VTransitionRadiation&) = delete;
0084
0085 private:
0086 G4LossTableManager* theManager;
0087 const G4Region* region;
0088 G4VTRModel* model;
0089
0090 std::vector<const G4Material*> materials;
0091 std::vector<G4double> steps;
0092 std::vector<G4ThreeVector> normals;
0093
0094 G4ThreeVector startingPosition;
0095 G4ThreeVector startingDirection;
0096
0097 G4double gammaMin;
0098 G4double cosDThetaMax;
0099
0100 G4int nSteps;
0101 };
0102
0103 #endif