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

#include <G4ParticleHPT2AInelasticFS.hh>

+ Inheritance diagram for G4ParticleHPT2AInelasticFS:

Public Member Functions

 G4ParticleHPT2AInelasticFS ()
 
 ~G4ParticleHPT2AInelasticFS () 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 G4ParticleHPInelasticBaseFS
 G4ParticleHPInelasticBaseFS ()
 
 ~G4ParticleHPInelasticBaseFS () override
 
void BaseApply (const G4HadProjectile &theTrack, G4ParticleDefinition **theDefs, G4int nDef)
 
void InitGammas (G4double AR, G4double ZR)
 
G4double GetXsec (G4double anEnergy) override
 
G4ParticleHPVectorGetXsec () override
 
G4ParticleHPInelasticBaseFSoperator= (const G4ParticleHPInelasticBaseFS &right)=delete
 
 G4ParticleHPInelasticBaseFS (const G4ParticleHPInelasticBaseFS &)=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 G4ParticleHPInelasticBaseFS
G4ParticleHPVectortheXsection
 
G4ParticleHPEnergyDistributiontheEnergyDistribution {nullptr}
 
G4ParticleHPAngulartheAngularDistribution {nullptr}
 
G4ParticleHPEnAngCorrelationtheEnergyAngData {nullptr}
 
G4ParticleHPPhotonDisttheFinalStatePhotons {nullptr}
 
G4double theNuclearMassDifference {0.0}
 
G4double Qvalue {0.0}
 
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 37 of file G4ParticleHPT2AInelasticFS.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPT2AInelasticFS()

G4ParticleHPT2AInelasticFS::G4ParticleHPT2AInelasticFS ( )

Definition at line 37 of file G4ParticleHPT2AInelasticFS.cc.

38{
39 secID = G4PhysicsModelCatalog::GetModelID("model_G4ParticleHPT2AInelasticFS_F33");
40}
static G4int GetModelID(const G4int modelIndex)

Referenced by New().

◆ ~G4ParticleHPT2AInelasticFS()

G4ParticleHPT2AInelasticFS::~G4ParticleHPT2AInelasticFS ( )
overridedefault

Member Function Documentation

◆ ApplyYourself()

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

Implements G4ParticleHPInelasticBaseFS.

Definition at line 42 of file G4ParticleHPT2AInelasticFS.cc.

43{
44 // these are the particle types in the final state
45
46 G4ParticleDefinition* theDefs[3];
47 theDefs[0] = G4Triton::Triton();
48 theDefs[1] = G4Alpha::Alpha();
49 theDefs[2] = G4Alpha::Alpha();
50
51 // fill the final state
52 G4ParticleHPInelasticBaseFS::BaseApply(theTrack, theDefs, 3);
53
54 // return the result
55 return theResult.Get();
56}
static G4Alpha * Alpha()
Definition G4Alpha.cc:83
value_type & Get() const
Definition G4Cache.hh:315
G4Cache< G4HadFinalState * > theResult
void BaseApply(const G4HadProjectile &theTrack, G4ParticleDefinition **theDefs, G4int nDef)
static G4Triton * Triton()
Definition G4Triton.cc:90

◆ Init()

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

Reimplemented from G4ParticleHPInelasticBaseFS.

Definition at line 58 of file G4ParticleHPT2AInelasticFS.cc.

60{
61 G4ParticleHPInelasticBaseFS::Init(A, Z, M, dirName, aFSType, projectile);
62 G4double ResidualA = 0;
63 G4double ResidualZ = 0;
64 if (projectile == G4Neutron::Neutron()) {
65 ResidualA = A - 10;
66 ResidualZ = Z - 5;
67 }
68 else if (projectile == G4Proton::Proton()) {
69 ResidualA = A - 10;
70 ResidualZ = Z - 4;
71 }
72 else if (projectile == G4Deuteron::Deuteron()) {
73 ResidualA = A - 9;
74 ResidualZ = Z - 4;
75 }
76 else if (projectile == G4Triton::Triton()) {
77 ResidualA = A - 8;
78 ResidualZ = Z - 4;
79 }
80 else if (projectile == G4He3::He3()) {
81 ResidualA = A - 8;
82 ResidualZ = Z - 3;
83 }
84 else if (projectile == G4Alpha::Alpha()) {
85 ResidualA = A - 7;
86 ResidualZ = Z - 3;
87 }
88
89 G4ParticleHPInelasticBaseFS::InitGammas(ResidualA, ResidualZ);
90}
#define M(row, col)
double G4double
Definition G4Types.hh:83
const G4double A[17]
static G4Deuteron * Deuteron()
Definition G4Deuteron.cc:90
static G4He3 * He3()
Definition G4He3.cc:90
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &bit, G4ParticleDefinition *) override
void InitGammas(G4double AR, G4double ZR)
static G4Proton * Proton()
Definition G4Proton.cc:90

◆ New()

G4ParticleHPFinalState * G4ParticleHPT2AInelasticFS::New ( )
inlineoverridevirtual

Implements G4ParticleHPInelasticBaseFS.

Definition at line 45 of file G4ParticleHPT2AInelasticFS.hh.

46 {
47 auto theNew = new G4ParticleHPT2AInelasticFS;
48 return theNew;
49 }

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