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

#include <G4NuclearLevel.hh>

Public Member Functions

 G4NuclearLevel (G4double energy, G4double halfLife, G4double angularMomentum, const std::vector< G4double > &eGamma, const std::vector< G4double > &wGamma, const std::vector< G4double > &polarities, const std::vector< G4double > &kCC, const std::vector< G4double > &l1CC, const std::vector< G4double > &l2CC, const std::vector< G4double > &l3CC, const std::vector< G4double > &m1CC, const std::vector< G4double > &m2CC, const std::vector< G4double > &m3CC, const std::vector< G4double > &m4CC, const std::vector< G4double > &m5CC, const std::vector< G4double > &nPlusCC, const std::vector< G4double > &totalCC)
 
 ~G4NuclearLevel ()
 
const std::vector< G4double > & GammaEnergies () const
 
const std::vector< G4double > & GammaWeights () const
 
const std::vector< G4double > & GammaProbabilities () const
 
const std::vector< G4double > & GammaCumulativeProbabilities () const
 
const std::vector< G4double > & GammaPolarities () const
 
const std::vector< G4double > & KConvertionProbabilities () const
 
const std::vector< G4double > & L1ConvertionProbabilities () const
 
const std::vector< G4double > & L2ConvertionProbabilities () const
 
const std::vector< G4double > & L3ConvertionProbabilities () const
 
const std::vector< G4double > & M1ConvertionProbabilities () const
 
const std::vector< G4double > & M2ConvertionProbabilities () const
 
const std::vector< G4double > & M3ConvertionProbabilities () const
 
const std::vector< G4double > & M4ConvertionProbabilities () const
 
const std::vector< G4double > & M5ConvertionProbabilities () const
 
const std::vector< G4double > & NPlusConvertionProbabilities () const
 
const std::vector< G4double > & TotalConvertionProbabilities () const
 
G4double Energy () const
 
G4double AngularMomentum () const
 
G4double HalfLife () const
 
G4int NumberOfGammas () const
 
void PrintAll () const
 
G4bool operator== (const G4NuclearLevel &right) const
 
G4bool operator!= (const G4NuclearLevel &right) const
 
G4bool operator< (const G4NuclearLevel &right) const
 
G4NuclearLeveloperator= (const G4NuclearLevel &right)
 
 G4NuclearLevel (const G4NuclearLevel &right)
 

Friends

class G4NuclearLevelManager
 

Detailed Description

Definition at line 65 of file G4NuclearLevel.hh.

Constructor & Destructor Documentation

◆ G4NuclearLevel() [1/2]

G4NuclearLevel::G4NuclearLevel ( G4double  energy,
G4double  halfLife,
G4double  angularMomentum,
const std::vector< G4double > &  eGamma,
const std::vector< G4double > &  wGamma,
const std::vector< G4double > &  polarities,
const std::vector< G4double > &  kCC,
const std::vector< G4double > &  l1CC,
const std::vector< G4double > &  l2CC,
const std::vector< G4double > &  l3CC,
const std::vector< G4double > &  m1CC,
const std::vector< G4double > &  m2CC,
const std::vector< G4double > &  m3CC,
const std::vector< G4double > &  m4CC,
const std::vector< G4double > &  m5CC,
const std::vector< G4double > &  nPlusCC,
const std::vector< G4double > &  totalCC 
)

Definition at line 84 of file G4NuclearLevel.cc.

96 : _energies(eGamma), _weights(wGamma), _polarities(polarities),
97 _kCC(kCC), _l1CC(l1CC), _l2CC(l2CC), _l3CC(l3CC),
98 _m1CC(m1CC), _m2CC(m2CC), _m3CC(m3CC), _m4CC(m4CC), _m5CC(m5CC),
99 _nPlusCC(nPlusCC), _totalCC(totalCC),
100 _energy(energy), _halfLife(halfLife), _angularMomentum(angularMomentum)
101{
102 Finalize();
103 // G4cout << "####### Incrementing "<<Increment(1)<<G4endl;
104}

Referenced by G4NuclearLevel().

◆ ~G4NuclearLevel()

G4NuclearLevel::~G4NuclearLevel ( )

Definition at line 106 of file G4NuclearLevel.cc.

107{
108 // G4cout << "####### Decrementing "<<Increment(-1)<<G4endl;
109}

◆ G4NuclearLevel() [2/2]

G4NuclearLevel::G4NuclearLevel ( const G4NuclearLevel right)

Definition at line 322 of file G4NuclearLevel.cc.

323{
324 _energies = right._energies;
325 _weights =right._weights;
326 _prob =right._prob;
327 _cumProb =right._cumProb;
328 _polarities =right._polarities;
329 _kCC = right._kCC;
330 _l1CC =right._l1CC;
331 _l2CC =right._l2CC;
332 _l3CC =right._l3CC;
333 _m1CC = right._m1CC;
334 _m2CC = right._m2CC;
335 _m3CC = right._m3CC;
336 _m4CC = right._m4CC;
337 _m5CC = right._m5CC;
338 _nPlusCC = right._nPlusCC;
339 _totalCC = right._totalCC;
340 _energy = right._energy;
341 _halfLife = right._halfLife;
342 _angularMomentum = right._angularMomentum;
343 _nGammas = right._nGammas;
344}

Member Function Documentation

◆ AngularMomentum()

G4double G4NuclearLevel::AngularMomentum ( ) const

Definition at line 216 of file G4NuclearLevel.cc.

217{
218 return _angularMomentum;
219}

◆ Energy()

◆ GammaCumulativeProbabilities()

const std::vector< G4double > & G4NuclearLevel::GammaCumulativeProbabilities ( ) const

Definition at line 145 of file G4NuclearLevel.cc.

146{
147 return _cumProb;
148}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ GammaEnergies()

const std::vector< G4double > & G4NuclearLevel::GammaEnergies ( ) const

Definition at line 128 of file G4NuclearLevel.cc.

129{
130 return _energies;
131}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ GammaPolarities()

const std::vector< G4double > & G4NuclearLevel::GammaPolarities ( ) const

Definition at line 151 of file G4NuclearLevel.cc.

152{
153 return _polarities;
154}

◆ GammaProbabilities()

const std::vector< G4double > & G4NuclearLevel::GammaProbabilities ( ) const

Definition at line 139 of file G4NuclearLevel.cc.

140{
141 return _prob;
142}

◆ GammaWeights()

const std::vector< G4double > & G4NuclearLevel::GammaWeights ( ) const

Definition at line 133 of file G4NuclearLevel.cc.

134{
135 return _weights;
136}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ HalfLife()

G4double G4NuclearLevel::HalfLife ( ) const

◆ KConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::KConvertionProbabilities ( ) const

Definition at line 156 of file G4NuclearLevel.cc.

157{
158 return _kCC;
159}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ L1ConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::L1ConvertionProbabilities ( ) const

Definition at line 161 of file G4NuclearLevel.cc.

162{
163 return _l1CC;
164}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ L2ConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::L2ConvertionProbabilities ( ) const

Definition at line 166 of file G4NuclearLevel.cc.

167{
168 return _l2CC;
169}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ L3ConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::L3ConvertionProbabilities ( ) const

Definition at line 171 of file G4NuclearLevel.cc.

172{
173 return _l3CC;
174}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ M1ConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::M1ConvertionProbabilities ( ) const

Definition at line 176 of file G4NuclearLevel.cc.

177{
178 return _m1CC;
179}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ M2ConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::M2ConvertionProbabilities ( ) const

Definition at line 181 of file G4NuclearLevel.cc.

182{
183 return _m2CC;
184}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ M3ConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::M3ConvertionProbabilities ( ) const

Definition at line 186 of file G4NuclearLevel.cc.

187{
188 return _m3CC;
189}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ M4ConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::M4ConvertionProbabilities ( ) const

Definition at line 191 of file G4NuclearLevel.cc.

192{
193 return _m4CC;
194}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ M5ConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::M5ConvertionProbabilities ( ) const

Definition at line 196 of file G4NuclearLevel.cc.

197{
198 return _m5CC;
199}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ NPlusConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::NPlusConvertionProbabilities ( ) const

Definition at line 201 of file G4NuclearLevel.cc.

202{
203 return _nPlusCC;
204}

◆ NumberOfGammas()

G4int G4NuclearLevel::NumberOfGammas ( ) const

Definition at line 226 of file G4NuclearLevel.cc.

227{
228 return _nGammas;
229}

Referenced by G4DiscreteGammaTransition::SelectGamma().

◆ operator!=()

G4bool G4NuclearLevel::operator!= ( const G4NuclearLevel right) const

Definition at line 117 of file G4NuclearLevel.cc.

118{
119 return (this != (G4NuclearLevel *) &right);
120}

◆ operator<()

G4bool G4NuclearLevel::operator< ( const G4NuclearLevel right) const

Definition at line 122 of file G4NuclearLevel.cc.

123{
124 if (_energy < right.Energy()) return true;
125 else return false;
126}
G4double Energy() const

◆ operator=()

G4NuclearLevel & G4NuclearLevel::operator= ( const G4NuclearLevel right)

Definition at line 294 of file G4NuclearLevel.cc.

295{
296 if(this != &right)
297 {
298 _energies = right._energies;
299 _weights =right._weights;
300 _prob =right._prob;
301 _cumProb =right._cumProb;
302 _polarities =right._polarities;
303 _kCC = right._kCC;
304 _l1CC =right._l1CC;
305 _l2CC =right._l2CC;
306 _l3CC =right._l3CC;
307 _m1CC = right._m1CC;
308 _m2CC = right._m2CC;
309 _m3CC = right._m3CC;
310 _m4CC = right._m4CC;
311 _m5CC = right._m5CC;
312 _nPlusCC = right._nPlusCC;
313 _totalCC = right._totalCC;
314 _energy = right._energy;
315 _halfLife = right._halfLife;
316 _angularMomentum = right._angularMomentum;
317 _nGammas = right._nGammas;
318 }
319 return *this;
320}

◆ operator==()

G4bool G4NuclearLevel::operator== ( const G4NuclearLevel right) const

Definition at line 111 of file G4NuclearLevel.cc.

112{
113 return (this == (G4NuclearLevel *) &right);
114}

◆ PrintAll()

void G4NuclearLevel::PrintAll ( ) const

Definition at line 232 of file G4NuclearLevel.cc.

233{
234 G4cout << "---- Level energy = " << _energy << ", angular momentum = "
235 << _angularMomentum << ", half life " << _halfLife
236 << ", " << _nGammas << " photons" << G4endl;
237 G4int i;
238 G4cout << " Gammas: ";
239 for (i=0; i<_nGammas; i++) { G4cout << _energies[i] << " "; }
240 G4cout << G4endl << " Weights: ";
241 for (i=0; i<_nGammas; i++) { G4cout << _weights[i] << " "; }
242 G4cout << G4endl << " Relative transition probabilities ";
243 for (i=0; i<_nGammas; i++) { G4cout << _prob[i] << " "; }
244 G4cout << G4endl << " Cumulative probabilities: ";
245 for (i=0; i<_nGammas; i++) { G4cout << _cumProb[i] << " "; }
246 G4cout << G4endl << " Polarities: ";
247 for (i=0; i<_nGammas; i++) { G4cout << _polarities[i] << " "; }
248 G4cout << G4endl;
249
250 return;
251}
int G4int
Definition: G4Types.hh:66
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

Referenced by G4NuclearLevelManager::PrintAll().

◆ TotalConvertionProbabilities()

const std::vector< G4double > & G4NuclearLevel::TotalConvertionProbabilities ( ) const

Definition at line 206 of file G4NuclearLevel.cc.

207{
208 return _totalCC;
209}

Referenced by G4DiscreteGammaTransition::SelectGamma().

Friends And Related Function Documentation

◆ G4NuclearLevelManager

friend class G4NuclearLevelManager
friend

Definition at line 132 of file G4NuclearLevel.hh.


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