159 void ExcitationEnergyWarning();
161 void NumberOfExitationWarning(
const G4String&);
163 inline void CalculateExcitationEnergy();
165 inline void CalculateGroundStateMass();
169 static G4int errCount;
185 G4int numberOfParticles;
187 G4int numberOfCharged;
191 G4int numberOfChargedHoles;
195 G4int numberOfShellElectrons;
207inline void G4Fragment::CalculateExcitationEnergy()
209 theExcitationEnergy = theMomentum.
mag() - theGroundStateMass;
210 if(theExcitationEnergy < 0.0) { ExcitationEnergyWarning(); }
213inline void G4Fragment::CalculateGroundStateMass()
232 CalculateGroundStateMass();
237 return theExcitationEnergy;
242 return theGroundStateMass;
247 return (theA-theZ)*CLHEP::neutron_mass_c2 + theZ*CLHEP::proton_mass_c2
248 - theGroundStateMass;
259 CalculateExcitationEnergy();
264 return theAngularMomentum;
269 theAngularMomentum = value;
291 CalculateGroundStateMass();
297 CalculateGroundStateMass();
302 return numberOfParticles + numberOfHoles;
307 return numberOfParticles;
312 return numberOfCharged;
318 numberOfParticles = valueTot;
319 numberOfCharged = valueP;
320 if(valueTot < valueP) {
321 NumberOfExitationWarning(
"SetNumberOfExcitedParticle");
327 return numberOfHoles;
332 return numberOfChargedHoles;
337 numberOfHoles = valueTot;
338 numberOfChargedHoles = valueP;
339 if(valueTot < valueP) {
340 NumberOfExitationWarning(
"SetNumberOfHoles");
346 numberOfParticles = value;
351 numberOfCharged = value;
352 if(value > numberOfParticles) {
353 NumberOfExitationWarning(
"SetNumberOfCharged");
359 return numberOfShellElectrons;
364 numberOfShellElectrons = value;
370 return theParticleDefinition;
375 theParticleDefinition = p;
380 return theCreationTime;
385 theCreationTime = time;
std::vector< G4Fragment * > G4FragmentVector
void SetZ(G4double value)
G4double GetGroundStateMass() const
G4int GetNumberOfParticles() const
G4int GetNumberOfHoles() const
friend std::ostream & operator<<(std::ostream &, const G4Fragment *)
void SetNumberOfCharged(G4int value)
G4int GetNumberOfChargedHoles() const
G4double GetExcitationEnergy() const
const G4LorentzVector & GetMomentum() const
G4double GetCreationTime() const
G4double GetBindingEnergy() const
G4bool operator!=(const G4Fragment &right) const
void SetCreationTime(G4double time)
const G4ThreeVector & GetAngularMomentum() const
void SetNumberOfElectrons(G4int value)
void SetNumberOfHoles(G4int valueTot, G4int valueP=0)
void SetParticleDefinition(G4ParticleDefinition *p)
G4int GetNumberOfExcitons() const
G4double ComputeGroundStateMass(G4int Z, G4int A) const
void SetA(G4double value)
void SetMomentum(const G4LorentzVector &value)
void SetStable(G4bool val)
G4int GetNumberOfElectrons() const
void SetNumberOfExcitedParticle(G4int valueTot, G4int valueP)
G4ParticleDefinition * GetParticleDefinition() const
G4Fragment & operator=(const G4Fragment &right)
void SetNumberOfParticles(G4int value)
G4int GetNumberOfCharged() const
G4bool operator==(const G4Fragment &right) const
void SetZandA_asInt(G4int Znew, G4int Anew)
void SetAngularMomentum(const G4ThreeVector &value)
static G4double GetNuclearMass(const G4double A, const G4double Z)