#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.
95 delete thePolarization;
96 thePolarization =
nullptr;
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 99 of file G4Fragment.cc.
102 theExcitationEnergy(0.0),
103 theGroundStateMass(0.0),
104 theMomentum(aMomentum),
105 thePolarization(
nullptr),
107 numberOfParticles(0),
110 numberOfChargedHoles(0),
111 numberOfShellElectrons(0),
113 theParticleDefinition(
nullptr),
118 CalculateGroundStateMass();
119 CalculateExcitationEnergy();
double A(double temperature)
Definition at line 124 of file G4Fragment.cc.
128 theExcitationEnergy(0.0),
129 theMomentum(aMomentum),
130 thePolarization(
nullptr),
132 numberOfParticles(0),
135 numberOfChargedHoles(0),
136 numberOfShellElectrons(0),
138 theParticleDefinition(aParticleDefinition),
144 G4String text =
"G4Fragment::G4Fragment constructor for gamma used for "
148 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 151 of file G4Fragment.cc.
153 if (
this != &right) {
156 theExcitationEnergy = right.theExcitationEnergy;
157 theGroundStateMass = right.theGroundStateMass;
158 theMomentum = right.theMomentum;
159 delete thePolarization;
160 thePolarization =
nullptr;
161 if(right.thePolarization !=
nullptr) {
164 creatorModel = right.creatorModel;
165 numberOfParticles = right.numberOfParticles;
166 numberOfCharged = right.numberOfCharged;
167 numberOfHoles = right.numberOfHoles;
168 numberOfChargedHoles = right.numberOfChargedHoles;
169 numberOfShellElectrons = right.numberOfShellElectrons;
170 xLevel = right.xLevel;
171 theParticleDefinition = right.theParticleDefinition;
173 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 188 of file G4Fragment.cc.
191 out <<
"Fragment: null pointer ";
195 std::ios::fmtflags old_floatfield = out.flags();
196 out.setf(std::ios::floatfield);
198 out <<
"Fragment: A = " << std::setw(3) << theFragment->theA
199 <<
", Z = " << std::setw(3) << theFragment->theZ ;
200 out.setf(std::ios::scientific,std::ios::floatfield);
203 std::streamsize floatPrec = out.precision();
205 out << std::setprecision(3)
223 out <<
" #spin= " << theFragment->
GetSpin()
238 out.setf(old_floatfield,std::ios::floatfield);
239 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:
- geant4.10.03.p01/source/processes/hadronic/models/util/include/G4Fragment.hh
- geant4.10.03.p01/source/processes/hadronic/models/util/src/G4Fragment.cc