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

#include <G4ExitonConfiguration.hh>

Public Member Functions

 G4ExitonConfiguration ()
 
 G4ExitonConfiguration (G4int qpp, G4int qnp, G4int qph, G4int qnh)
 
 G4ExitonConfiguration (const G4Fragment &frag)
 
void clear ()
 
bool empty () const
 
void fill (const G4Fragment &frag)
 
G4bool operator== (const G4ExitonConfiguration &right) const
 
G4bool operator!= (const G4ExitonConfiguration &right) const
 
void incrementQP (G4int ip)
 
void incrementHoles (G4int ip)
 

Public Attributes

G4int protonQuasiParticles
 
G4int neutronQuasiParticles
 
G4int protonHoles
 
G4int neutronHoles
 

Detailed Description

Definition at line 43 of file G4ExitonConfiguration.hh.

Constructor & Destructor Documentation

◆ G4ExitonConfiguration() [1/3]

G4ExitonConfiguration::G4ExitonConfiguration ( )
inline

◆ G4ExitonConfiguration() [2/3]

G4ExitonConfiguration::G4ExitonConfiguration ( G4int qpp,
G4int qnp,
G4int qph,
G4int qnh )
inline

Definition at line 49 of file G4ExitonConfiguration.hh.

◆ G4ExitonConfiguration() [3/3]

G4ExitonConfiguration::G4ExitonConfiguration ( const G4Fragment & frag)
inlineexplicit

Definition at line 53 of file G4ExitonConfiguration.hh.

55 protonHoles(0), neutronHoles(0) { fill(frag); }
void fill(const G4Fragment &frag)

Member Function Documentation

◆ clear()

◆ empty()

bool G4ExitonConfiguration::empty ( ) const
inline

Definition at line 63 of file G4ExitonConfiguration.hh.

63 {
65 protonHoles==0 && neutronHoles==0);
66 }

Referenced by G4InuclNuclei::print().

◆ fill()

void G4ExitonConfiguration::fill ( const G4Fragment & frag)

Definition at line 37 of file G4ExitonConfiguration.cc.

37 {
42}
G4int GetNumberOfParticles() const
G4int GetNumberOfHoles() const
G4int GetNumberOfChargedHoles() const
G4int GetNumberOfCharged() const

Referenced by G4ExitonConfiguration().

◆ incrementHoles()

void G4ExitonConfiguration::incrementHoles ( G4int ip)
inline

◆ incrementQP()

void G4ExitonConfiguration::incrementQP ( G4int ip)
inline

Definition at line 85 of file G4ExitonConfiguration.hh.

85 {
86 if (ip == 1) protonQuasiParticles++;
87 else if (ip == 2) neutronQuasiParticles++;
88 }

Referenced by G4IntraNucleiCascader::processTrappedParticle(), and G4IntraNucleiCascader::setupCascade().

◆ operator!=()

G4bool G4ExitonConfiguration::operator!= ( const G4ExitonConfiguration & right) const
inline

Definition at line 78 of file G4ExitonConfiguration.hh.

78 {
79 return !operator==(right);
80 }
G4bool operator==(const G4ExitonConfiguration &right) const

◆ operator==()

G4bool G4ExitonConfiguration::operator== ( const G4ExitonConfiguration & right) const
inline

Definition at line 70 of file G4ExitonConfiguration.hh.

70 {
71 return ( (&right == this) ||
74 protonHoles == right.protonHoles &&
75 neutronHoles == right.neutronHoles) );
76 }

Referenced by operator!=().

Member Data Documentation

◆ neutronHoles

◆ neutronQuasiParticles

◆ protonHoles

◆ protonQuasiParticles


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