49 #define G4Fragment_h 1
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;
207 inline void G4Fragment::CalculateExcitationEnergy()
209 theExcitationEnergy = theMomentum.
mag() - theGroundStateMass;
210 if(theExcitationEnergy < 0.0) { ExcitationEnergyWarning(); }
213 inline 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;