#include <G4Fragment.hh>
Definition at line 66 of file G4Fragment.hh.
G4Fragment::G4Fragment |
( |
| ) |
|
Definition at line 50 of file G4Fragment.cc.
53 theExcitationEnergy(0.0),
54 theGroundStateMass(0.0),
56 thePolarization(
nullptr),
61 numberOfChargedHoles(0),
62 numberOfShellElectrons(0),
64 theParticleDefinition(
nullptr),
CLHEP::HepLorentzVector G4LorentzVector
G4Fragment::~G4Fragment |
( |
| ) |
|
Definition at line 93 of file G4Fragment.cc.
void SetNuclearPolarization(G4NuclearPolarization *)
G4Fragment::G4Fragment |
( |
const G4Fragment & |
right | ) |
|
Definition at line 70 of file G4Fragment.cc.
73 theExcitationEnergy(right.theExcitationEnergy),
74 theGroundStateMass(right.theGroundStateMass),
75 theMomentum(right.theMomentum),
76 thePolarization(
nullptr),
77 creatorModel(right.creatorModel),
78 numberOfParticles(right.numberOfParticles),
79 numberOfCharged(right.numberOfCharged),
80 numberOfHoles(right.numberOfHoles),
81 numberOfChargedHoles(right.numberOfChargedHoles),
82 numberOfShellElectrons(right.numberOfShellElectrons),
84 theParticleDefinition(right.theParticleDefinition),
86 theCreationTime(right.theCreationTime)
88 if(right.thePolarization !=
nullptr) {
Definition at line 98 of file G4Fragment.cc.
101 theExcitationEnergy(0.0),
102 theGroundStateMass(0.0),
103 theMomentum(aMomentum),
104 thePolarization(
nullptr),
106 numberOfParticles(0),
109 numberOfChargedHoles(0),
110 numberOfShellElectrons(0),
112 theParticleDefinition(
nullptr),
117 CalculateGroundStateMass();
118 CalculateExcitationEnergy();
double A(double temperature)
Definition at line 123 of file G4Fragment.cc.
127 theExcitationEnergy(0.0),
128 theMomentum(aMomentum),
129 thePolarization(
nullptr),
131 numberOfParticles(0),
134 numberOfChargedHoles(0),
135 numberOfShellElectrons(0),
137 theParticleDefinition(aParticleDefinition),
143 G4String text =
"G4Fragment::G4Fragment constructor for gamma used for "
147 theGroundStateMass = aParticleDefinition->
GetPDGMass();
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
G4double GetPDGMass() const
Definition at line 256 of file G4Fragment.hh.
static G4double GetNuclearMass(const G4double A, const G4double Z)
double A(double temperature)
G4double G4Fragment::GetBindingEnergy |
( |
| ) |
const |
|
inline |
Definition at line 301 of file G4Fragment.hh.
304 - theGroundStateMass;
static constexpr double proton_mass_c2
static constexpr double neutron_mass_c2
G4double G4Fragment::GetCreationTime |
( |
| ) |
const |
|
inline |
G4int G4Fragment::GetCreatorModelType |
( |
| ) |
const |
|
inline |
G4int G4Fragment::GetFloatingLevelNumber |
( |
| ) |
const |
|
inline |
G4double G4Fragment::GetGroundStateMass |
( |
| ) |
const |
|
inline |
G4int G4Fragment::GetNumberOfCharged |
( |
| ) |
const |
|
inline |
G4int G4Fragment::GetNumberOfChargedHoles |
( |
| ) |
const |
|
inline |
G4int G4Fragment::GetNumberOfElectrons |
( |
| ) |
const |
|
inline |
Definition at line 397 of file G4Fragment.hh.
399 return numberOfShellElectrons;
G4int G4Fragment::GetNumberOfExcitons |
( |
| ) |
const |
|
inline |
Definition at line 340 of file G4Fragment.hh.
342 return numberOfParticles + numberOfHoles;
G4int G4Fragment::GetNumberOfHoles |
( |
| ) |
const |
|
inline |
G4int G4Fragment::GetNumberOfParticles |
( |
| ) |
const |
|
inline |
void G4Fragment::operator delete |
( |
void * |
aFragment | ) |
|
|
inline |
Definition at line 240 of file G4Fragment.hh.
242 ((
G4Fragment *)aFragment)->SetNuclearPolarization(
nullptr);
G4DLLIMPORT G4ThreadLocal G4Allocator< G4Fragment > * pFragmentAllocator
void * G4Fragment::operator new |
( |
size_t |
| ) |
|
|
inline |
Definition at line 234 of file G4Fragment.hh.
G4DLLIMPORT G4ThreadLocal G4Allocator< G4Fragment > * pFragmentAllocator
Definition at line 150 of file G4Fragment.cc.
152 if (
this != &right) {
155 theExcitationEnergy = right.theExcitationEnergy;
156 theGroundStateMass = right.theGroundStateMass;
157 theMomentum = right.theMomentum;
158 delete thePolarization;
159 thePolarization =
nullptr;
160 if(right.thePolarization !=
nullptr) {
163 creatorModel = right.creatorModel;
164 numberOfParticles = right.numberOfParticles;
165 numberOfCharged = right.numberOfCharged;
166 numberOfHoles = right.numberOfHoles;
167 numberOfChargedHoles = right.numberOfChargedHoles;
168 numberOfShellElectrons = right.numberOfShellElectrons;
169 xLevel = right.xLevel;
170 theParticleDefinition = right.theParticleDefinition;
172 theCreationTime = right.theCreationTime;
Definition at line 334 of file G4Fragment.hh.
337 CalculateGroundStateMass();
const XML_Char int const XML_Char * value
void G4Fragment::SetCreatorModelType |
( |
G4int |
value | ) |
|
|
inline |
Definition at line 412 of file G4Fragment.hh.
414 creatorModel =
value;
const XML_Char int const XML_Char * value
Definition at line 293 of file G4Fragment.hh.
296 theExcitationEnergy = eexc;
297 theMomentum.
set(0.0, 0.0, 0.0, theGroundStateMass + eexc);
Hep3Vector boostVector() const
HepLorentzVector & boost(double, double, double)
void set(double x, double y, double z, double t)
void G4Fragment::SetFloatingLevelNumber |
( |
G4int |
value | ) |
|
|
inline |
Definition at line 432 of file G4Fragment.hh.
const XML_Char int const XML_Char * value
Definition at line 312 of file G4Fragment.hh.
315 CalculateExcitationEnergy();
const XML_Char int const XML_Char * value
Definition at line 220 of file G4Fragment.hh.
222 if(p != thePolarization) {
223 delete thePolarization;
void G4Fragment::SetNumberOfCharged |
( |
G4int |
value | ) |
|
|
inline |
Definition at line 389 of file G4Fragment.hh.
391 numberOfCharged =
value;
392 if(
value > numberOfParticles) {
393 NumberOfExitationWarning(
"SetNumberOfCharged");
const XML_Char int const XML_Char * value
void G4Fragment::SetNumberOfElectrons |
( |
G4int |
value | ) |
|
|
inline |
Definition at line 402 of file G4Fragment.hh.
404 numberOfShellElectrons =
value;
const XML_Char int const XML_Char * value
void G4Fragment::SetNumberOfExcitedParticle |
( |
G4int |
valueTot, |
|
|
G4int |
valueP |
|
) |
| |
|
inline |
Definition at line 356 of file G4Fragment.hh.
358 numberOfParticles = valueTot;
359 numberOfCharged = valueP;
360 if(valueTot < valueP) {
361 NumberOfExitationWarning(
"SetNumberOfExcitedParticle");
void G4Fragment::SetNumberOfHoles |
( |
G4int |
valueTot, |
|
|
G4int |
valueP = 0 |
|
) |
| |
|
inline |
Definition at line 375 of file G4Fragment.hh.
377 numberOfHoles = valueTot;
378 numberOfChargedHoles = valueP;
379 if(valueTot < valueP) {
380 NumberOfExitationWarning(
"SetNumberOfHoles");
void G4Fragment::SetNumberOfParticles |
( |
G4int |
value | ) |
|
|
inline |
Definition at line 384 of file G4Fragment.hh.
386 numberOfParticles =
value;
const XML_Char int const XML_Char * value
Definition at line 422 of file G4Fragment.hh.
const XML_Char int const XML_Char * value
Definition at line 328 of file G4Fragment.hh.
331 CalculateGroundStateMass();
const XML_Char int const XML_Char * value
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const G4Fragment * |
theFragment |
|
) |
| |
|
friend |
Definition at line 187 of file G4Fragment.cc.
190 out <<
"Fragment: null pointer ";
194 std::ios::fmtflags old_floatfield = out.flags();
195 out.setf(std::ios::floatfield);
197 out <<
"Fragment: A = " << std::setw(3) << theFragment->theA
198 <<
", Z = " << std::setw(3) << theFragment->theZ ;
199 out.setf(std::ios::scientific,std::ios::floatfield);
202 std::streamsize floatPrec = out.precision();
204 out << std::setprecision(3)
222 out <<
" #spin= " << theFragment->
GetSpin()
237 out.setf(old_floatfield,std::ios::floatfield);
238 out.precision(floatPrec);
G4int GetFloatingLevelNumber() const
static constexpr double ns
G4int GetNumberOfParticles() const
G4int GetNumberOfHoles() const
G4double GetCreationTime() const
const G4LorentzVector & GetMomentum() const
static constexpr double MeV
G4int GetNumberOfExcitons() const
G4int GetNumberOfChargedHoles() const
G4int GetCreatorModelType() const
G4int GetNumberOfCharged() const
G4double GetExcitationEnergy() const
G4NuclearPolarization * GetNuclearPolarization() const
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const G4Fragment & |
theFragment |
|
) |
| |
|
friend |
The documentation for this class was generated from the following files:
- source/geant4.10.03.p03/source/processes/hadronic/models/util/include/G4Fragment.hh
- source/geant4.10.03.p03/source/processes/hadronic/models/util/src/G4Fragment.cc