Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ParticleHPNInelasticFS Class Reference

#include <G4ParticleHPNInelasticFS.hh>

+ Inheritance diagram for G4ParticleHPNInelasticFS:

Public Member Functions

 G4ParticleHPNInelasticFS ()
 
 ~G4ParticleHPNInelasticFS () override=default
 
void Init (G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *) override
 
G4HadFinalStateApplyYourself (const G4HadProjectile &theTrack) override
 
G4ParticleHPFinalStateNew () override
 
- Public Member Functions inherited from G4ParticleHPInelasticCompFS
 G4ParticleHPInelasticCompFS ()
 
 ~G4ParticleHPInelasticCompFS () override
 
void InitGammas (G4double AR, G4double ZR)
 
G4double GetXsec (G4double anEnergy) override
 
G4ParticleHPVectorGetXsec () override
 
G4int SelectExitChannel (G4double eKinetic)
 
void CompositeApply (const G4HadProjectile &theTrack, G4ParticleDefinition *aHadron)
 
void InitDistributionInitialState (G4ReactionProduct &anIncidentPart, G4ReactionProduct &aTarget, G4int it)
 
 G4ParticleHPInelasticCompFS (G4ParticleHPInelasticCompFS &)=delete
 
G4ParticleHPInelasticCompFSoperator= (const G4ParticleHPInelasticCompFS &right)=delete
 
- Public Member Functions inherited from G4ParticleHPFinalState
 G4ParticleHPFinalState ()
 
virtual ~G4ParticleHPFinalState ()
 
void Init (G4double A, G4double Z, G4String &dirName, G4String &aFSType, G4ParticleDefinition *p)
 
G4bool HasXsec ()
 
G4bool HasFSData ()
 
G4bool HasAnyData ()
 
void SetA_Z (G4double anA, G4double aZ, G4int aM=0)
 
G4double GetZ ()
 
G4double GetN ()
 
G4double GetA ()
 
G4int GetM ()
 
void SetAZMs (G4ParticleHPDataUsed used)
 
void SetAZMs (G4double anA, G4double aZ, G4int aM, G4ParticleHPDataUsed used)
 
void SetProjectile (G4ParticleDefinition *projectile)
 
G4ParticleHPFinalStateoperator= (const G4ParticleHPFinalState &right)=delete
 
 G4ParticleHPFinalState (const G4ParticleHPFinalState &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from G4ParticleHPFinalState
void adjust_final_state (G4LorentzVector)
 
- Protected Attributes inherited from G4ParticleHPInelasticCompFS
G4ParticleHPVectortheXsection [51]
 
G4ParticleHPEnergyDistributiontheEnergyDistribution [51]
 
G4ParticleHPAngulartheAngularDistribution [51]
 
G4ParticleHPEnAngCorrelationtheEnergyAngData [51]
 
G4ParticleHPPhotonDisttheFinalStatePhotons [51]
 
std::vector< G4doubleQI
 
std::vector< G4intLR
 
G4ParticleHPDeExGammas theGammas
 
G4String gammaPath
 
- Protected Attributes inherited from G4ParticleHPFinalState
G4ParticleDefinitiontheProjectile {nullptr}
 
G4ParticleHPManagerfManager
 
G4IonTableionTable
 
G4int theBaseA {0}
 
G4int theBaseZ {0}
 
G4int theBaseM {0}
 
G4int theNDLDataZ {0}
 
G4int theNDLDataA {0}
 
G4int theNDLDataM {0}
 
G4int secID {-1}
 
G4bool hasXsec {true}
 
G4bool hasFSData {true}
 
G4bool hasAnyData {true}
 
G4ParticleHPNames theNames
 
G4Cache< G4HadFinalState * > theResult
 

Detailed Description

Definition at line 41 of file G4ParticleHPNInelasticFS.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPNInelasticFS()

G4ParticleHPNInelasticFS::G4ParticleHPNInelasticFS ( )

Definition at line 44 of file G4ParticleHPNInelasticFS.cc.

45{
46 secID = G4PhysicsModelCatalog::GetModelID("model_G4ParticleHPNInelasticFS_F01");
47}
static G4int GetModelID(const G4int modelIndex)

Referenced by New().

◆ ~G4ParticleHPNInelasticFS()

G4ParticleHPNInelasticFS::~G4ParticleHPNInelasticFS ( )
overridedefault

Member Function Documentation

◆ ApplyYourself()

G4HadFinalState * G4ParticleHPNInelasticFS::ApplyYourself ( const G4HadProjectile & theTrack)
overridevirtual

Implements G4ParticleHPInelasticCompFS.

Definition at line 84 of file G4ParticleHPNInelasticFS.cc.

85{
86 // do the final state
88
89 // return the result
90 return theResult.Get();
91}
value_type & Get() const
Definition G4Cache.hh:315
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
G4Cache< G4HadFinalState * > theResult
void CompositeApply(const G4HadProjectile &theTrack, G4ParticleDefinition *aHadron)

◆ Init()

void G4ParticleHPNInelasticFS::Init ( G4double A,
G4double Z,
G4int M,
G4String & dirName,
G4String & aFSType,
G4ParticleDefinition * projectile )
overridevirtual

Reimplemented from G4ParticleHPInelasticCompFS.

Definition at line 49 of file G4ParticleHPNInelasticFS.cc.

51{
52 // G4cout << "Getting initialized for: "<<A<<" "<< Z<<G4endl;
53 G4ParticleHPInelasticCompFS::Init(A, Z, M, dirName, aFSType, projectile);
54 G4double ResidualA = 0;
55 G4double ResidualZ = 0;
56 if (projectile == G4Neutron::Neutron()) {
57 ResidualA = A;
58 ResidualZ = Z;
59 }
60 else if (projectile == G4Proton::Proton()) {
61 ResidualA = A;
62 ResidualZ = Z + 1;
63 }
64 else if (projectile == G4Deuteron::Deuteron()) {
65 ResidualA = A + 1;
66 ResidualZ = Z + 1;
67 }
68 else if (projectile == G4Triton::Triton()) {
69 ResidualA = A + 2;
70 ResidualZ = Z + 1;
71 }
72 else if (projectile == G4He3::He3()) {
73 ResidualA = A + 2;
74 ResidualZ = Z + 2;
75 }
76 else if (projectile == G4Alpha::Alpha()) {
77 ResidualA = A + 3;
78 ResidualZ = Z + 2;
79 }
80
81 G4ParticleHPInelasticCompFS::InitGammas(ResidualA, ResidualZ);
82}
#define M(row, col)
double G4double
Definition G4Types.hh:83
const G4double A[17]
static G4Alpha * Alpha()
Definition G4Alpha.cc:83
static G4Deuteron * Deuteron()
Definition G4Deuteron.cc:90
static G4He3 * He3()
Definition G4He3.cc:90
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aSFType, G4ParticleDefinition *) override
void InitGammas(G4double AR, G4double ZR)
static G4Proton * Proton()
Definition G4Proton.cc:90
static G4Triton * Triton()
Definition G4Triton.cc:90

◆ New()

G4ParticleHPFinalState * G4ParticleHPNInelasticFS::New ( )
inlineoverridevirtual

Implements G4ParticleHPInelasticCompFS.

Definition at line 49 of file G4ParticleHPNInelasticFS.hh.

50 {
51 auto theNew = new G4ParticleHPNInelasticFS;
52 return theNew;
53 }

The documentation for this class was generated from the following files: