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

#include <G4PromptPhotonEvaporation.hh>

+ Inheritance diagram for G4PromptPhotonEvaporation:

Public Member Functions

 G4PromptPhotonEvaporation ()
 
virtual ~G4PromptPhotonEvaporation ()
 
virtual G4double GetEmissionProbability (G4Fragment *theNucleus)
 
virtual G4FragmentEmittedFragment (G4Fragment *theNucleus)
 
virtual G4FragmentVectorBreakUpFragment (G4Fragment *theNucleus)
 
virtual G4FragmentVectorBreakUp (const G4Fragment &theNucleus)
 
void SetVerboseLevel (G4int verbose)
 
void SetICM (G4bool)
 
void RDMForced (G4bool)
 
void SetMaxHalfLife (G4double)
 
- Public Member Functions inherited from G4VEvaporationChannel
 G4VEvaporationChannel (const G4String &aName="Anonymous")
 
virtual ~G4VEvaporationChannel ()
 
virtual G4FragmentEmittedFragment (G4Fragment *theNucleus)
 
virtual G4FragmentVectorBreakUpFragment (G4Fragment *theNucleus)
 
virtual G4FragmentVectorBreakUp (const G4Fragment &theNucleus)=0
 
virtual G4double GetEmissionProbability (G4Fragment *theNucleus)=0
 
G4String GetName () const
 
void SetName (const G4String &aName)
 
void SetOPTxs (G4int opt)
 
void UseSICB (G4bool use)
 

Additional Inherited Members

- Protected Attributes inherited from G4VEvaporationChannel
G4int OPTxs
 
G4bool useSICB
 

Detailed Description

Definition at line 55 of file G4PromptPhotonEvaporation.hh.

Constructor & Destructor Documentation

◆ G4PromptPhotonEvaporation()

G4PromptPhotonEvaporation::G4PromptPhotonEvaporation ( )

Definition at line 64 of file G4PromptPhotonEvaporation.cc.

65 :fVerbose(0), fICM(true), fRDM(false), fMaxHalfTime(DBL_MAX),
66 fEmissionProbability(0.0),levelManager(0),nucleus(0)
67{
68 fNuclearLevelStore = G4NuclearLevelStore::GetInstance();
69 theA = theZ = 0;
70 fEnergyFermi = fExcEnergyMax = gammaE = 0.0;
71}
static G4NuclearLevelStore * GetInstance()
#define DBL_MAX
Definition: templates.hh:83

◆ ~G4PromptPhotonEvaporation()

G4PromptPhotonEvaporation::~G4PromptPhotonEvaporation ( )
virtual

Definition at line 73 of file G4PromptPhotonEvaporation.cc.

74{
75}

Member Function Documentation

◆ BreakUp()

G4FragmentVector * G4PromptPhotonEvaporation::BreakUp ( const G4Fragment theNucleus)
virtual

Implements G4VEvaporationChannel.

Definition at line 171 of file G4PromptPhotonEvaporation.cc.

172{
173 //G4cout << "G4PromptPhotonEvaporation::BreakUp" << G4endl;
174 G4Fragment* initialState = new G4Fragment(theNucleus);
175 G4FragmentVector* v = BreakUpFragment(initialState);
176 v->push_back(initialState);
177 return v;
178}
std::vector< G4Fragment * > G4FragmentVector
Definition: G4Fragment.hh:65
virtual G4FragmentVector * BreakUpFragment(G4Fragment *theNucleus)

◆ BreakUpFragment()

G4FragmentVector * G4PromptPhotonEvaporation::BreakUpFragment ( G4Fragment theNucleus)
virtual

Reimplemented from G4VEvaporationChannel.

Definition at line 157 of file G4PromptPhotonEvaporation.cc.

158{
159 //G4cout << "G4PromptPhotonEvaporation::BreakUpFragment" << G4endl;
161 G4Fragment* gamma = 0;
162 do {
163 gamma = EmittedFragment(theNucleus);
164 if(gamma) { v->push_back(gamma); }
165 } while(gamma);
166
167 return v;
168}
virtual G4Fragment * EmittedFragment(G4Fragment *theNucleus)

Referenced by BreakUp().

◆ EmittedFragment()

G4Fragment * G4PromptPhotonEvaporation::EmittedFragment ( G4Fragment theNucleus)
virtual

Reimplemented from G4VEvaporationChannel.

Definition at line 111 of file G4PromptPhotonEvaporation.cc.

112{
113 //G4cout << "G4PromptPhotonEvaporation::EmittedFragment" << G4endl;
114
115 G4Fragment* gamma = 0;
116 if(theNucleus->GetExcitationEnergy() <= keV) { return gamma; }
117 if(GetEmissionProbability(theNucleus) <= 0.0){ return gamma; }
118
119 //G4cout << "G4PromptPhotonEvaporation::EmittedFragment" << G4endl;
120 /*
121 G4Fragment* gamma = _contDeexcitation->GenerateGamma();
122 if(gamma) {
123 if (_verbose > 0) {
124 G4cout << "G4PromptPhotonEvaporation::EmittedFragment continium deex: "
125 << gamma << G4endl;
126 G4cout << " Residual: " << nucleus << G4endl;
127 }
128 return gamma;
129 }
130 }
131
132 // Do one photon emission by the discrete deexcitation
133 _discrDeexcitation->SetNucleus(_nucleus);
134 _discrDeexcitation->Initialize();
135
136 if(_discrDeexcitation->CanDoTransition()) {
137 G4Fragment* gamma = _discrDeexcitation->GenerateGamma();
138 if(gamma) {
139 if (_verbose > 0) {
140 G4cout << "G4PromptPhotonEvaporation::EmittedFragment discrete deex: "
141 << gamma << G4endl;
142 G4cout << " Residual: " << nucleus << G4endl;
143 }
144 return gamma;
145 }
146 }
147
148 if (_verbose > 0) {
149 G4cout << "G4PromptPhotonEvaporation unable emit gamma: "
150 << nucleus << G4endl;
151 }
152 */
153 return gamma;
154}
G4double GetExcitationEnergy() const
Definition: G4Fragment.hh:235
virtual G4double GetEmissionProbability(G4Fragment *theNucleus)

Referenced by BreakUpFragment().

◆ GetEmissionProbability()

G4double G4PromptPhotonEvaporation::GetEmissionProbability ( G4Fragment theNucleus)
virtual

Implements G4VEvaporationChannel.

Definition at line 78 of file G4PromptPhotonEvaporation.cc.

79{
80 fEmissionProbability = 0.0;
81 nucleus = theNucleus;
82 G4double ex = nucleus->GetExcitationEnergy();
83
84 if(nucleus->GetZ_asInt() != theZ || nucleus->GetA_asInt() != theA) {
85 G4int Z = nucleus->GetZ_asInt();
86 G4int A = nucleus->GetA_asInt();
87 fExcEnergyMax = -1.0;
88 if(1 < A && ex > keV) {
89 fEnergyFermi = G4NucleiProperties::GetNuclearMass(A-1, Z)
90 + neutron_mass_c2 - nucleus->GetGroundStateMass();
91 fExcEnergyMax = fEnergyFermi + 15*MeV;
92 }
93 if(ex < fExcEnergyMax) {
94
95 theZ = Z;
96 theA = A;
97 levelManager = fNuclearLevelStore->GetManager(Z,A);
98
99 // continium transition
100 if(ex >= fEnergyFermi) {
101
102 // discrete transition
103 } else {
104 }
105 }
106 }
107 return fEmissionProbability;
108}
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
G4double GetGroundStateMass() const
Definition: G4Fragment.hh:240
G4int GetZ_asInt() const
Definition: G4Fragment.hh:223
G4int GetA_asInt() const
Definition: G4Fragment.hh:218
G4NuclearLevelManager * GetManager(G4int Z, G4int A)
static G4double GetNuclearMass(const G4double A, const G4double Z)

Referenced by EmittedFragment().

◆ RDMForced()

void G4PromptPhotonEvaporation::RDMForced ( G4bool  val)
inline

Definition at line 117 of file G4PromptPhotonEvaporation.hh.

118{
119 fRDM = val;
120}

◆ SetICM()

void G4PromptPhotonEvaporation::SetICM ( G4bool  val)
inline

Definition at line 112 of file G4PromptPhotonEvaporation.hh.

113{
114 fICM = val;
115}

◆ SetMaxHalfLife()

void G4PromptPhotonEvaporation::SetMaxHalfLife ( G4double  val)
inline

Definition at line 122 of file G4PromptPhotonEvaporation.hh.

123{
124 fMaxHalfTime = val;
125}

◆ SetVerboseLevel()

void G4PromptPhotonEvaporation::SetVerboseLevel ( G4int  verbose)
inline

Definition at line 107 of file G4PromptPhotonEvaporation.hh.

108{
109 fVerbose = verbose;
110}

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