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

#include <G4ParticleHP2N2AInelasticFS.hh>

+ Inheritance diagram for G4ParticleHP2N2AInelasticFS:

Public Member Functions

 G4ParticleHP2N2AInelasticFS ()
 
 ~G4ParticleHP2N2AInelasticFS ()
 
void Init (G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)
 
G4HadFinalStateApplyYourself (const G4HadProjectile &theTrack)
 
G4ParticleHPFinalStateNew ()
 
- Public Member Functions inherited from G4ParticleHPInelasticBaseFS
 G4ParticleHPInelasticBaseFS ()
 
virtual ~G4ParticleHPInelasticBaseFS ()
 
void Init (G4double A, G4double Z, G4int M, G4String &dirName, G4String &bit, G4ParticleDefinition *)
 
void BaseApply (const G4HadProjectile &theTrack, G4ParticleDefinition **theDefs, G4int nDef)
 
void InitGammas (G4double AR, G4double ZR)
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &theTrack)=0
 
virtual G4ParticleHPFinalStateNew ()=0
 
virtual G4double GetXsec (G4double anEnergy)
 
virtual G4ParticleHPVectorGetXsec ()
 
- Public Member Functions inherited from G4ParticleHPFinalState
 G4ParticleHPFinalState ()
 
virtual ~G4ParticleHPFinalState ()
 
void Init (G4double A, G4double Z, G4String &dirName, G4String &aFSType, G4ParticleDefinition *projectile)
 
virtual void Init (G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)=0
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &)
 
virtual G4ParticleHPFinalStateNew ()=0
 
G4bool HasXsec ()
 
G4bool HasFSData ()
 
G4bool HasAnyData ()
 
virtual G4double GetXsec (G4double)
 
virtual G4ParticleHPVectorGetXsec ()
 
void SetA_Z (G4double anA, G4double aZ, G4int aM=0)
 
G4double GetZ ()
 
G4double GetN ()
 
G4double GetA ()
 
G4int GetM ()
 
void SetAZMs (G4double anA, G4double aZ, G4int aM, G4ParticleHPDataUsed used)
 
void SetProjectile (G4ParticleDefinition *projectile)
 

Additional Inherited Members

- Protected Member Functions inherited from G4ParticleHPFinalState
void adjust_final_state (G4LorentzVector)
 
- Protected Attributes inherited from G4ParticleHPInelasticBaseFS
G4ParticleHPVectortheXsection
 
G4ParticleHPEnergyDistributiontheEnergyDistribution
 
G4ParticleHPAngulartheAngularDistribution
 
G4ParticleHPEnAngCorrelationtheEnergyAngData
 
G4ParticleHPPhotonDisttheFinalStatePhotons
 
G4double theNuclearMassDifference
 
G4ParticleHPDeExGammas theGammas
 
G4String gammaPath
 
G4double Qvalue
 
- Protected Attributes inherited from G4ParticleHPFinalState
G4bool hasXsec
 
G4bool hasFSData
 
G4bool hasAnyData
 
G4ParticleHPNames theNames
 
G4Cache< G4HadFinalState * > theResult
 
G4ParticleDefinitiontheProjectile
 
G4double theBaseA
 
G4double theBaseZ
 
G4int theBaseM
 
G4int theNDLDataZ
 
G4int theNDLDataA
 
G4int theNDLDataM
 
G4int secID
 

Detailed Description

Definition at line 41 of file G4ParticleHP2N2AInelasticFS.hh.

Constructor & Destructor Documentation

◆ G4ParticleHP2N2AInelasticFS()

G4ParticleHP2N2AInelasticFS::G4ParticleHP2N2AInelasticFS ( )

Definition at line 38 of file G4ParticleHP2N2AInelasticFS.cc.

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

Referenced by New().

◆ ~G4ParticleHP2N2AInelasticFS()

G4ParticleHP2N2AInelasticFS::~G4ParticleHP2N2AInelasticFS ( )
inline

Definition at line 46 of file G4ParticleHP2N2AInelasticFS.hh.

46{}

Member Function Documentation

◆ ApplyYourself()

G4HadFinalState * G4ParticleHP2N2AInelasticFS::ApplyYourself ( const G4HadProjectile theTrack)
virtual

Implements G4ParticleHPInelasticBaseFS.

Definition at line 43 of file G4ParticleHP2N2AInelasticFS.cc.

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

◆ Init()

void G4ParticleHP2N2AInelasticFS::Init ( G4double  A,
G4double  Z,
G4int  M,
G4String dirName,
G4String aFSType,
G4ParticleDefinition projectile 
)
virtual

Implements G4ParticleHPFinalState.

Definition at line 60 of file G4ParticleHP2N2AInelasticFS.cc.

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

◆ New()

G4ParticleHPFinalState * G4ParticleHP2N2AInelasticFS::New ( )
inlinevirtual

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