Geant4 9.6.0
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)
 
void clear ()
 
bool empty () const
 
bool operator== (const G4ExitonConfiguration &right) const
 
bool 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 41 of file G4ExitonConfiguration.hh.

Constructor & Destructor Documentation

◆ G4ExitonConfiguration() [1/2]

G4ExitonConfiguration::G4ExitonConfiguration ( )
inline

◆ G4ExitonConfiguration() [2/2]

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

Definition at line 47 of file G4ExitonConfiguration.hh.

Member Function Documentation

◆ clear()

◆ empty()

bool G4ExitonConfiguration::empty ( ) const
inline

Definition at line 56 of file G4ExitonConfiguration.hh.

56 {
58 protonHoles==0 && neutronHoles==0);
59 }

Referenced by G4InuclNuclei::print().

◆ incrementHoles()

void G4ExitonConfiguration::incrementHoles ( G4int  ip)
inline

◆ incrementQP()

void G4ExitonConfiguration::incrementQP ( G4int  ip)
inline

Definition at line 76 of file G4ExitonConfiguration.hh.

76 {
77 if (ip == 1) protonQuasiParticles++;
78 else if (ip == 2) neutronQuasiParticles++;
79 }

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

◆ operator!=()

bool G4ExitonConfiguration::operator!= ( const G4ExitonConfiguration right) const
inline

Definition at line 69 of file G4ExitonConfiguration.hh.

69 {
70 return !operator==(right);
71 }
bool operator==(const G4ExitonConfiguration &right) const

◆ operator==()

bool G4ExitonConfiguration::operator== ( const G4ExitonConfiguration right) const
inline

Definition at line 61 of file G4ExitonConfiguration.hh.

61 {
62 return ( (&right == this) ||
65 protonHoles == right.protonHoles &&
66 neutronHoles == right.neutronHoles) );
67 }

Referenced by operator!=().

Member Data Documentation

◆ neutronHoles

◆ neutronQuasiParticles

◆ protonHoles

◆ protonQuasiParticles


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