49 #define G4Fragment_h 1
159 void ExcitationEnergyWarning();
161 void NumberOfExitationWarning(
const G4String&);
163 inline void CalculateExcitationEnergy();
165 inline void CalculateGroundStateMass();
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;
static G4double GetNuclearMass(const G4double A, const G4double Z)
friend std::ostream & operator<<(std::ostream &, const G4Fragment *)
const G4ThreeVector & GetAngularMomentum() const
G4int GetNumberOfElectrons() const
void SetAngularMomentum(const G4ThreeVector &value)
void SetNumberOfHoles(G4int valueTot, G4int valueP=0)
void SetNumberOfElectrons(G4int value)
G4int GetNumberOfParticles() const
void SetA(G4double value)
void SetParticleDefinition(G4ParticleDefinition *p)
G4int GetNumberOfHoles() const
void SetNumberOfExcitedParticle(G4int valueTot, G4int valueP)
G4bool operator==(const G4Fragment &right) const
G4double GetCreationTime() const
const G4LorentzVector & GetMomentum() const
void SetMomentum(const G4LorentzVector &value)
std::vector< G4Fragment * > G4FragmentVector
G4double GetGroundStateMass() const
void SetNumberOfParticles(G4int value)
G4double GetBindingEnergy() const
void SetCreationTime(G4double time)
G4int GetNumberOfExcitons() const
void SetZandA_asInt(G4int Znew, G4int Anew)
G4bool operator!=(const G4Fragment &right) const
G4ParticleDefinition * GetParticleDefinition() const
void SetStable(G4bool val)
const XML_Char int const XML_Char * value
void SetZ(G4double value)
G4int GetNumberOfChargedHoles() const
void SetNumberOfCharged(G4int value)
G4Fragment & operator=(const G4Fragment &right)
G4int GetNumberOfCharged() const
G4double ComputeGroundStateMass(G4int Z, G4int A) const
G4double GetExcitationEnergy() const