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

#include <G4ParticleHPPAInelasticFS.hh>

+ Inheritance diagram for G4ParticleHPPAInelasticFS:

Public Member Functions

 G4ParticleHPPAInelasticFS ()
 
 ~G4ParticleHPPAInelasticFS ()
 
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)
 
G4bool DoNotAdjustFinalState ()
 
- 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
 

Detailed Description

Definition at line 41 of file G4ParticleHPPAInelasticFS.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPPAInelasticFS()

G4ParticleHPPAInelasticFS::G4ParticleHPPAInelasticFS ( )
inline

Definition at line 45 of file G4ParticleHPPAInelasticFS.hh.

45{}

Referenced by New().

◆ ~G4ParticleHPPAInelasticFS()

G4ParticleHPPAInelasticFS::~G4ParticleHPPAInelasticFS ( )
inline

Definition at line 46 of file G4ParticleHPPAInelasticFS.hh.

46{}

Member Function Documentation

◆ ApplyYourself()

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

Implements G4ParticleHPInelasticBaseFS.

Definition at line 37 of file G4ParticleHPPAInelasticFS.cc.

38{
39// these are the particle types in the final state
40
41 G4ParticleDefinition * theDefs[2];
42 theDefs[0] = G4Proton::Proton();
43 theDefs[1] = G4Alpha::Alpha();
44
45// fill the final state
46 G4ParticleHPInelasticBaseFS::BaseApply(theTrack, theDefs, 2);
47
48// return the result
49 return theResult.Get();
50}
static G4Alpha * Alpha()
Definition: G4Alpha.cc:88
value_type & Get() const
Definition: G4Cache.hh:315
G4Cache< G4HadFinalState * > theResult
void BaseApply(const G4HadProjectile &theTrack, G4ParticleDefinition **theDefs, G4int nDef)
static G4Proton * Proton()
Definition: G4Proton.cc:92

◆ Init()

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

Reimplemented from G4ParticleHPInelasticBaseFS.

Definition at line 52 of file G4ParticleHPPAInelasticFS.cc.

54{
55 G4ParticleHPInelasticBaseFS::Init(A, Z, M, dirName, aFSType, projectile);
56 G4double ResidualA = 0;
57 G4double ResidualZ = 0;
58 if( projectile == G4Neutron::Neutron() ) {
59 ResidualA = A-4;
60 ResidualZ = Z-3;
61 } else if( projectile == G4Proton::Proton() ) {
62 ResidualA = A-4;
63 ResidualZ = Z-2;
64 } else if( projectile == G4Deuteron::Deuteron() ) {
65 ResidualA = A-3;
66 ResidualZ = Z-2;
67 } else if( projectile == G4Triton::Triton() ) {
68 ResidualA = A-2;
69 ResidualZ = Z-2;
70 } else if( projectile == G4He3::He3() ) {
71 ResidualA = A-2;
72 ResidualZ = Z-1;
73 } else if( projectile == G4Alpha::Alpha() ) {
74 ResidualA = A-1;
75 ResidualZ = Z-1;
76 }
77
78 G4ParticleHPInelasticBaseFS::InitGammas(ResidualA, ResidualZ);
79}
double A(double temperature)
double G4double
Definition: G4Types.hh:83
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:93
static G4He3 * He3()
Definition: G4He3.cc:93
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
void InitGammas(G4double AR, G4double ZR)
void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &bit, G4ParticleDefinition *)
static G4Triton * Triton()
Definition: G4Triton.cc:94

◆ New()

G4ParticleHPFinalState * G4ParticleHPPAInelasticFS::New ( )
inlinevirtual

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