File indexing completed on 2025-01-18 09:58: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 G4ParticleHPInelasticCompFS_h
0037 #define G4ParticleHPInelasticCompFS_h 1
0038
0039 #include "G4ParticleHPFinalState.hh"
0040 #include "G4HadFinalState.hh"
0041 #include "G4HadProjectile.hh"
0042 #include "G4NRESP71M03.hh"
0043 #include "G4Nucleus.hh"
0044 #include "G4ParticleHPAngular.hh"
0045 #include "G4ParticleHPDeExGammas.hh"
0046 #include "G4ParticleHPEnAngCorrelation.hh"
0047 #include "G4ParticleHPEnergyDistribution.hh"
0048 #include "G4ParticleHPPhotonDist.hh"
0049 #include "globals.hh"
0050
0051 class G4ParticleHPInelasticCompFS : public G4ParticleHPFinalState
0052 {
0053 public:
0054 G4ParticleHPInelasticCompFS();
0055 ~G4ParticleHPInelasticCompFS() override;
0056
0057 void Init(G4double A, G4double Z, G4int M, G4String& dirName,
0058 G4String& aSFType, G4ParticleDefinition*) override;
0059
0060 void InitGammas(G4double AR, G4double ZR);
0061
0062 G4HadFinalState* ApplyYourself(const G4HadProjectile& theTrack) override = 0;
0063
0064 G4ParticleHPFinalState* New() override = 0;
0065
0066 G4double GetXsec(G4double anEnergy) override
0067 {
0068 return std::max(0., theXsection[50]->GetY(anEnergy));
0069 }
0070
0071 G4ParticleHPVector* GetXsec() override { return theXsection[50]; }
0072
0073 G4int SelectExitChannel(G4double eKinetic);
0074
0075 void CompositeApply(const G4HadProjectile& theTrack,
0076 G4ParticleDefinition* aHadron);
0077
0078 void InitDistributionInitialState(G4ReactionProduct& anIncidentPart,
0079 G4ReactionProduct& aTarget, G4int it);
0080
0081 G4ParticleHPInelasticCompFS(G4ParticleHPInelasticCompFS&) = delete;
0082 G4ParticleHPInelasticCompFS& operator=
0083 (const G4ParticleHPInelasticCompFS &right) = delete;
0084
0085 private:
0086
0087 void two_body_reaction(G4ReactionProduct* proj, G4ReactionProduct* targ,
0088 G4ReactionProduct* product, G4double exEnergy);
0089
0090 G4bool use_nresp71_model(const G4ParticleDefinition*, const G4int itt,
0091 const G4ReactionProduct& theTarget,
0092 G4ReactionProduct& boosted);
0093
0094 G4NRESP71M03 nresp71_model;
0095
0096 protected:
0097
0098 G4ParticleHPVector* theXsection[51];
0099 G4ParticleHPEnergyDistribution* theEnergyDistribution[51];
0100 G4ParticleHPAngular* theAngularDistribution[51];
0101 G4ParticleHPEnAngCorrelation* theEnergyAngData[51];
0102 G4ParticleHPPhotonDist* theFinalStatePhotons[51];
0103
0104 std::vector<G4double> QI;
0105 std::vector<G4int> LR;
0106
0107 G4ParticleHPDeExGammas theGammas;
0108 G4String gammaPath;
0109 };
0110
0111 #endif