Geant4  10.02.p03
G4ParticleHPNXInelasticFS Class Reference

#include <G4ParticleHPNXInelasticFS.hh>

Inheritance diagram for G4ParticleHPNXInelasticFS:
Collaboration diagram for G4ParticleHPNXInelasticFS:

Public Member Functions

 G4ParticleHPNXInelasticFS ()
 
 ~G4ParticleHPNXInelasticFS ()
 
void Init (G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType, G4ParticleDefinition *)
 
G4HadFinalStateApplyYourself (const G4HadProjectile &theTrack)
 
G4ParticleHPFinalStateNew ()
 

Detailed Description

Definition at line 41 of file G4ParticleHPNXInelasticFS.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPNXInelasticFS()

G4ParticleHPNXInelasticFS::G4ParticleHPNXInelasticFS ( )
inline

Definition at line 45 of file G4ParticleHPNXInelasticFS.hh.

45 {}
Here is the caller graph for this function:

◆ ~G4ParticleHPNXInelasticFS()

G4ParticleHPNXInelasticFS::~G4ParticleHPNXInelasticFS ( )
inline

Definition at line 46 of file G4ParticleHPNXInelasticFS.hh.

46 {}
Here is the call graph for this function:

Member Function Documentation

◆ ApplyYourself()

G4HadFinalState * G4ParticleHPNXInelasticFS::ApplyYourself ( const G4HadProjectile theTrack)

Definition at line 36 of file G4ParticleHPNXInelasticFS.cc.

37 {
38 // these are the particle types in the final state
39 
40  G4ParticleDefinition * theDefs[2];
41  theDefs[0] = G4Neutron::Neutron();
42 
43 // fill the final state
44  G4ParticleHPInelasticBaseFS::BaseApply(theTrack, theDefs, 1);
45 
46 // return the result
47  return theResult.Get();
48 }
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Init()

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

Definition at line 51 of file G4ParticleHPNXInelasticFS.cc.

52 {
53  G4ParticleHPInelasticBaseFS::Init(A, Z, M, dirName, aFSType, projectile);
54  G4double ResidualA = 0;
55  G4double ResidualZ = 0;
56  if( projectile == G4Neutron::Neutron() ) {
57  ResidualA = A-5;
58  ResidualZ = Z-2;
59  } else if( projectile == G4Proton::Proton() ) {
60  ResidualA = A-5;
61  ResidualZ = Z-1;
62  } else if( projectile == G4Deuteron::Deuteron() ) {
63  ResidualA = A-4;
64  ResidualZ = Z-1;
65  } else if( projectile == G4Triton::Triton() ) {
66  ResidualA = A-3;
67  ResidualZ = Z-1;
68  } else if( projectile == G4He3::He3() ) {
69  ResidualA = A-3;
70  ResidualZ = Z;
71  } else if( projectile == G4Alpha::Alpha() ) {
72  ResidualA = A-2;
73  ResidualZ = Z;
74  }
75 
76  // G4double ResidualA = A-5; // wrong, to be improves @@@
77  // G4double ResidualZ = Z-2; // dito @@@
78  G4ParticleHPInelasticBaseFS::InitGammas(ResidualA, ResidualZ);
79 }
void Init()
Definition: G4IonTable.cc:86
double A(double temperature)
Float_t Z
static G4Triton * Triton()
Definition: G4Triton.cc:95
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
double G4double
Definition: G4Types.hh:76
static G4He3 * He3()
Definition: G4He3.cc:94
Here is the call graph for this function:
Here is the caller graph for this function:

◆ New()

G4ParticleHPFinalState* G4ParticleHPNXInelasticFS::New ( )
inline

Definition at line 49 of file G4ParticleHPNXInelasticFS.hh.

Here is the call graph for this function:

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