51const G4double G4Fragment::minFragExcitation = 10.*CLHEP::eV;
57 theExcitationEnergy(0.0),
58 theGroundStateMass(0.0),
60 thePolarization(nullptr),
65 numberOfChargedHoles(0),
66 numberOfShellElectrons(0),
68 theParticleDefinition(nullptr),
77 theExcitationEnergy(right.theExcitationEnergy),
78 theGroundStateMass(right.theGroundStateMass),
79 theMomentum(right.theMomentum),
80 thePolarization(right.thePolarization),
81 creatorModel(right.creatorModel),
82 numberOfParticles(right.numberOfParticles),
83 numberOfCharged(right.numberOfCharged),
84 numberOfHoles(right.numberOfHoles),
85 numberOfChargedHoles(right.numberOfChargedHoles),
86 numberOfShellElectrons(right.numberOfShellElectrons),
88 theParticleDefinition(right.theParticleDefinition),
90 theCreationTime(right.theCreationTime)
99 theExcitationEnergy(0.0),
100 theGroundStateMass(0.0),
101 theMomentum(aMomentum),
102 thePolarization(nullptr),
104 numberOfParticles(0),
107 numberOfChargedHoles(0),
108 numberOfShellElectrons(0),
110 theParticleDefinition(nullptr),
115 CalculateGroundStateMass();
116 CalculateExcitationEnergy(warning);
125 theExcitationEnergy(0.0),
126 theMomentum(aMomentum),
127 thePolarization(nullptr),
129 numberOfParticles(0),
132 numberOfChargedHoles(0),
133 numberOfShellElectrons(0),
135 theParticleDefinition(aParticleDefinition),
141 G4String text =
"G4Fragment::G4Fragment constructor for gamma used for "
145 theGroundStateMass = aParticleDefinition->
GetPDGMass();
150 if (
this != &right) {
153 theExcitationEnergy = right.theExcitationEnergy;
154 theGroundStateMass = right.theGroundStateMass;
155 theMomentum = right.theMomentum;
156 thePolarization = right.thePolarization;
157 creatorModel = right.creatorModel;
158 numberOfParticles = right.numberOfParticles;
159 numberOfCharged = right.numberOfCharged;
160 numberOfHoles = right.numberOfHoles;
161 numberOfChargedHoles = right.numberOfChargedHoles;
162 numberOfShellElectrons = right.numberOfShellElectrons;
163 xLevel = right.xLevel;
164 theParticleDefinition = right.theParticleDefinition;
166 theCreationTime = right.theCreationTime;
183 std::ios::fmtflags old_floatfield = out.flags();
184 out.setf(std::ios::floatfield);
186 out <<
"Fragment: A = " << std::setw(3) << theFragment.theA
187 <<
", Z = " << std::setw(3) << theFragment.theZ ;
188 out.setf(std::ios::scientific,std::ios::floatfield);
191 std::streamsize floatPrec = out.precision();
193 out << std::setprecision(3)
211 out <<
" #spin= " << theFragment.
GetSpin()
226 out.setf(old_floatfield,std::ios::floatfield);
227 out.precision(floatPrec);
232void G4Fragment::ExcitationEnergyWarning()
235 G4cout <<
"G4Fragment::CalculateExcitationEnergy(): WARNING "<<
G4endl;
240void G4Fragment::NumberOfExitationWarning(
const G4String& value)
242 G4cout <<
"G4Fragment::"<< value <<
" ERROR "
245 G4String text =
"G4Fragment::G4Fragment wrong exciton number ";
double A(double temperature)
G4Allocator< G4Fragment > *& pFragmentAllocator()
std::ostream & operator<<(std::ostream &out, const G4Fragment &theFragment)
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfParticles() const
G4int GetNumberOfHoles() const
G4NuclearPolarization * GetNuclearPolarization() const
G4int GetNumberOfChargedHoles() const
G4double GetExcitationEnergy() const
const G4LorentzVector & GetMomentum() const
G4double GetCreationTime() const
G4bool operator!=(const G4Fragment &right) const
G4int GetFloatingLevelNumber() const
G4int GetNumberOfExcitons() const
G4int GetCreatorModelType() const
G4ThreeVector GetAngularMomentum() const
G4Fragment & operator=(const G4Fragment &right)
G4int GetNumberOfCharged() const
G4bool operator==(const G4Fragment &right) const
void SetAngularMomentum(const G4ThreeVector &)
G4double GetPDGMass() const
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
#define G4ThreadLocalStatic