Geant4-11
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends
G4Fragment Class Reference

#include <G4Fragment.hh>

Public Member Functions

G4double ComputeGroundStateMass (G4int Z, G4int A, G4int numberOfLambdas=0) const
 
 G4Fragment ()
 
 G4Fragment (const G4Fragment &right)
 
 G4Fragment (const G4LorentzVector &aMomentum, const G4ParticleDefinition *aParticleDefinition)
 
 G4Fragment (G4int A, G4int Z, const G4LorentzVector &aMomentum, G4bool warning=true)
 
 G4Fragment (G4int A, G4int Z, G4int numberOfLambdas, const G4LorentzVector &aMomentum, G4bool warning=true)
 
G4double GetA () const
 
G4int GetA_asInt () const
 
G4ThreeVector GetAngularMomentum () const
 
G4double GetBindingEnergy () const
 
G4double GetCreationTime () const
 
G4int GetCreatorModelID () const
 
G4double GetExcitationEnergy () const
 
G4int GetFloatingLevelNumber () const
 
G4double GetGroundStateMass () const
 
const G4LorentzVectorGetMomentum () const
 
G4NuclearPolarizationGetNuclearPolarization () const
 
G4int GetNumberOfCharged () const
 
G4int GetNumberOfChargedHoles () const
 
G4int GetNumberOfElectrons () const
 
G4int GetNumberOfExcitons () const
 
G4int GetNumberOfHoles () const
 
G4int GetNumberOfLambdas () const
 
G4int GetNumberOfParticles () const
 
const G4ParticleDefinitionGetParticleDefinition () const
 
G4double GetSpin () const
 
G4double GetZ () const
 
G4int GetZ_asInt () const
 
G4NuclearPolarizationNuclearPolarization ()
 
void operator delete (void *aFragment)
 
void * operator new (size_t)
 
G4bool operator!= (const G4Fragment &right) const
 
G4Fragmentoperator= (const G4Fragment &right)
 
G4bool operator== (const G4Fragment &right) const
 
void SetA (G4double value)
 
void SetAngularMomentum (const G4ThreeVector &)
 
void SetCreationTime (G4double time)
 
void SetCreatorModelID (G4int value)
 
void SetExcEnergyAndMomentum (G4double eexc, const G4LorentzVector &)
 
void SetFloatingLevelNumber (G4int value)
 
void SetMomentum (const G4LorentzVector &value)
 
void SetNuclearPolarization (G4NuclearPolarization *)
 
void SetNumberOfCharged (G4int value)
 
void SetNumberOfElectrons (G4int value)
 
void SetNumberOfExcitedParticle (G4int valueTot, G4int valueP)
 
void SetNumberOfHoles (G4int valueTot, G4int valueP=0)
 
void SetNumberOfLambdas (G4int numberOfLambdas)
 
void SetNumberOfParticles (G4int value)
 
void SetParticleDefinition (const G4ParticleDefinition *p)
 
void SetSpin (G4double value)
 
void SetZ (G4double value)
 
void SetZandA_asInt (G4int Znew, G4int Anew)
 
 ~G4Fragment ()
 

Private Member Functions

void CalculateExcitationEnergy (G4bool warning=true)
 
void CalculateGroundStateMass ()
 
void ExcitationEnergyWarning ()
 
void NumberOfExitationWarning (const G4String &)
 

Private Attributes

G4int creatorModel
 
G4int numberOfCharged
 
G4int numberOfChargedHoles
 
G4int numberOfHoles
 
G4int numberOfParticles
 
G4int numberOfShellElectrons
 
G4double spin
 
G4int theA
 
G4double theCreationTime
 
G4double theExcitationEnergy
 
G4double theGroundStateMass
 
G4int theL
 
G4LorentzVector theMomentum
 
const G4ParticleDefinitiontheParticleDefinition
 
G4NuclearPolarizationthePolarization
 
G4int theZ
 
G4int xLevel
 

Static Private Attributes

static const G4double minFragExcitation = 10.*CLHEP::eV
 

Friends

std::ostream & operator<< (std::ostream &, const G4Fragment &)
 

Detailed Description

Definition at line 67 of file G4Fragment.hh.

Constructor & Destructor Documentation

◆ G4Fragment() [1/5]

G4Fragment::G4Fragment ( )

Definition at line 55 of file G4Fragment.cc.

55 :
56 theA(0),
57 theZ(0),
58 theL(0),
62 thePolarization(nullptr),
63 creatorModel(-1),
69 xLevel(0),
70 theParticleDefinition(nullptr),
71 spin(0.0),
73{}
CLHEP::HepLorentzVector G4LorentzVector
G4double theCreationTime
Definition: G4Fragment.hh:225
G4double theGroundStateMass
Definition: G4Fragment.hh:202
G4int numberOfChargedHoles
Definition: G4Fragment.hh:216
G4int theZ
Definition: G4Fragment.hh:196
G4NuclearPolarization * thePolarization
Definition: G4Fragment.hh:207
G4int numberOfParticles
Definition: G4Fragment.hh:213
G4int numberOfHoles
Definition: G4Fragment.hh:215
G4int theA
Definition: G4Fragment.hh:194
const G4ParticleDefinition * theParticleDefinition
Definition: G4Fragment.hh:222
G4int theL
Definition: G4Fragment.hh:198
G4double theExcitationEnergy
Definition: G4Fragment.hh:200
G4int creatorModel
Definition: G4Fragment.hh:210
G4int numberOfCharged
Definition: G4Fragment.hh:214
G4int numberOfShellElectrons
Definition: G4Fragment.hh:219
G4double spin
Definition: G4Fragment.hh:224
G4LorentzVector theMomentum
Definition: G4Fragment.hh:204
G4int xLevel
Definition: G4Fragment.hh:220

◆ ~G4Fragment()

G4Fragment::~G4Fragment ( )

Definition at line 96 of file G4Fragment.cc.

97{}

◆ G4Fragment() [2/5]

G4Fragment::G4Fragment ( const G4Fragment right)

◆ G4Fragment() [3/5]

G4Fragment::G4Fragment ( G4int  A,
G4int  Z,
const G4LorentzVector aMomentum,
G4bool  warning = true 
)

Definition at line 99 of file G4Fragment.cc.

99 :
100 theA(A),
101 theZ(Z),
102 theL(0),
105 theMomentum(aMomentum),
106 thePolarization(nullptr),
107 creatorModel(-1),
110 numberOfHoles(0),
113 xLevel(0),
114 theParticleDefinition(nullptr),
115 spin(0.0),
116 theCreationTime(0.0)
117{
118 if(theA > 0) {
121 }
122}
const G4int Z[17]
const G4double A[17]
void CalculateExcitationEnergy(G4bool warning=true)
Definition: G4Fragment.hh:249
void CalculateGroundStateMass()
Definition: G4Fragment.hh:265

References CalculateExcitationEnergy(), CalculateGroundStateMass(), and theA.

◆ G4Fragment() [4/5]

G4Fragment::G4Fragment ( G4int  A,
G4int  Z,
G4int  numberOfLambdas,
const G4LorentzVector aMomentum,
G4bool  warning = true 
)

Definition at line 124 of file G4Fragment.cc.

124 :
125 theA(A),
126 theZ(Z),
127 theL(std::max(numberOfLambdas,0)),
130 theMomentum(aMomentum),
131 thePolarization(nullptr),
132 creatorModel(-1),
135 numberOfHoles(0),
138 xLevel(0),
139 theParticleDefinition(nullptr),
140 spin(0.0),
141 theCreationTime(0.0)
142{
143 if(theA > 0) {
146 }
147}
T max(const T t1, const T t2)
brief Return the largest of the two arguments

References CalculateExcitationEnergy(), CalculateGroundStateMass(), and theA.

◆ G4Fragment() [5/5]

G4Fragment::G4Fragment ( const G4LorentzVector aMomentum,
const G4ParticleDefinition aParticleDefinition 
)

Definition at line 150 of file G4Fragment.cc.

151 :
152 theA(0),
153 theZ(0),
154 theL(0),
156 theMomentum(aMomentum),
157 thePolarization(nullptr),
158 creatorModel(-1),
161 numberOfHoles(0),
164 xLevel(0),
165 theParticleDefinition(aParticleDefinition),
166 spin(0.0),
167 theCreationTime(0.0)
168{
169 if(aParticleDefinition->GetPDGEncoding() != 22 &&
170 aParticleDefinition->GetPDGEncoding() != 11) {
171 G4String text = "G4Fragment::G4Fragment constructor for gamma used for "
172 + aParticleDefinition->GetParticleName();
173 throw G4HadronicException(__FILE__, __LINE__, text);
174 }
175 theGroundStateMass = aParticleDefinition->GetPDGMass();
176}
const G4String & GetParticleName() const

References G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGEncoding(), G4ParticleDefinition::GetPDGMass(), and theGroundStateMass.

Member Function Documentation

◆ CalculateExcitationEnergy()

void G4Fragment::CalculateExcitationEnergy ( G4bool  warning = true)
inlineprivate

◆ CalculateGroundStateMass()

void G4Fragment::CalculateGroundStateMass ( )
inlineprivate

◆ ComputeGroundStateMass()

G4double G4Fragment::ComputeGroundStateMass ( G4int  Z,
G4int  A,
G4int  numberOfLambdas = 0 
) const
inline

Definition at line 259 of file G4Fragment.hh.

260{
261 if ( numberOfLambdas <= 0 ) return G4NucleiProperties::GetNuclearMass(A, Z);
262 else return G4HyperNucleiProperties::GetNuclearMass(A, Z, numberOfLambdas);
263}

References A, G4NucleiProperties::GetNuclearMass(), G4HyperNucleiProperties::GetNuclearMass(), and Z.

Referenced by G4GEMProbability::CalcProbability(), and G4PhotonEvaporation::GetEmissionProbability().

◆ ExcitationEnergyWarning()

void G4Fragment::ExcitationEnergyWarning ( )
private

Definition at line 264 of file G4Fragment.cc.

265{
266#ifdef G4VERBOSE
267 G4cout << "G4Fragment::CalculateExcitationEnergy(): WARNING "<<G4endl;
268 G4cout << *this << G4endl;
269#endif
270}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

References G4cout, and G4endl.

Referenced by CalculateExcitationEnergy().

◆ GetA()

G4double G4Fragment::GetA ( void  ) const
inline

Definition at line 339 of file G4Fragment.hh.

340{
341 return G4double(theA);
342}
double G4double
Definition: G4Types.hh:83

References theA.

◆ GetA_asInt()

G4int G4Fragment::GetA_asInt ( ) const
inline

Definition at line 271 of file G4Fragment.hh.

272{
273 return theA;
274}

References theA.

Referenced by G4PreCompoundEmission::AngularDistribution(), G4NeutronRadCapture::ApplyYourself(), G4Evaporation::BreakFragment(), G4FermiBreakUpVI::BreakFragment(), G4ExcitationHandler::BreakItUp(), G4InuclEvaporation::BreakItUp(), G4WilsonAblationModel::BreakItUp(), G4StatMF::BreakItUp(), G4UnstableFragmentBreakUp::BreakUpChain(), G4PhotonEvaporation::BreakUpChain(), G4GEMProbability::CalcAlphaParam(), G4NeutronEvaporationProbability::CalcAlphaParam(), G4GEMProbability::CalcBetaParam(), G4NeutronEvaporationProbability::CalcBetaParam(), G4StatMFMicroCanonical::CalcEntropyOfCompoundNucleus(), G4StatMFMicroCanonical::CalcFreeInternalEnergy(), G4GEMProbability::CalcProbability(), G4GNASHTransitions::CalculateProbability(), G4PreCompoundTransitions::CalculateProbability(), G4StatMFMacroCanonical::CalculateTemperature(), G4StatMFMacroCanonical::ChooseAandZ(), G4StatMFMicroCanonical::ChooseAandZ(), G4CascadeCheckBalance::collide(), G4GEMProbabilityVI::ComputeTotalProbability(), G4InuclNuclei::copy(), G4BinaryCascade::DeExcite(), G4InuclCollider::deexcite(), G4AblaInterface::DeExcite(), G4PreCompoundModel::DeExcite(), G4FissionProbability::EmissionProbability(), G4PhotonEvaporation::EmittedFragment(), G4CompetitiveFission::EmittedFragment(), G4CascadeDeexciteBase::explosion(), G4StatMF::FindTemperatureOfBreakingChannel(), G4StatMFMacroCanonical::G4StatMFMacroCanonical(), G4PhotonEvaporation::GenerateGamma(), G4GEMProbability::GetCoulombBarrier(), G4EvaporationChannel::GetEmissionProbability(), G4GEMChannel::GetEmissionProbability(), G4GEMChannelVI::GetEmissionProbability(), G4PhotonEvaporation::GetEmissionProbability(), G4CompetitiveFission::GetEmissionProbability(), G4CascadeDeexciteBase::getTargetData(), G4VPreCompoundFragment::Initialize(), G4StatMFMacroCanonical::Initialize(), G4StatMFMicroCanonical::Initialize(), G4StatMFMicroManager::Initialize(), G4GNASHTransitions::PerformTransition(), G4PreCompoundTransitions::PerformTransition(), G4GEMChannel::SampleKineticEnergy(), G4ExcitationHandler::SortSecondaryFragment(), and G4EvaporationProbability::TotalProbability().

◆ GetAngularMomentum()

G4ThreeVector G4Fragment::GetAngularMomentum ( ) const

Definition at line 286 of file G4Fragment.cc.

287{
288 G4ThreeVector v(0.0,0.0,spin);
289 return v;
290}

References spin.

Referenced by G4AblaInterface::DeExcite().

◆ GetBindingEnergy()

G4double G4Fragment::GetBindingEnergy ( ) const
inline

Definition at line 317 of file G4Fragment.hh.

318{
321}
static constexpr double proton_mass_c2
static constexpr double neutron_mass_c2

References CLHEP::neutron_mass_c2, CLHEP::proton_mass_c2, theA, theGroundStateMass, and theZ.

◆ GetCreationTime()

G4double G4Fragment::GetCreationTime ( ) const
inline

◆ GetCreatorModelID()

G4int G4Fragment::GetCreatorModelID ( ) const
inline

Definition at line 423 of file G4Fragment.hh.

424{
425 return creatorModel;
426}

References creatorModel.

◆ GetExcitationEnergy()

G4double G4Fragment::GetExcitationEnergy ( void  ) const
inline

Definition at line 299 of file G4Fragment.hh.

300{
301 return theExcitationEnergy;
302}

References theExcitationEnergy.

Referenced by G4PreCompoundEmission::AngularDistribution(), G4NeutronRadCapture::ApplyYourself(), G4Evaporation::BreakFragment(), G4FermiBreakUpVI::BreakFragment(), G4ExcitationHandler::BreakItUp(), G4InuclEvaporation::BreakItUp(), G4WilsonAblationModel::BreakItUp(), G4StatMF::BreakItUp(), G4UnstableFragmentBreakUp::BreakUpChain(), G4PhotonEvaporation::BreakUpChain(), G4StatMFMicroCanonical::CalcEntropyOfCompoundNucleus(), G4GEMProbability::CalcProbability(), G4GNASHTransitions::CalculateProbability(), G4PreCompoundTransitions::CalculateProbability(), G4StatMFMacroCanonical::CalculateTemperature(), G4GEMProbabilityVI::ComputeTotalProbability(), G4InuclNuclei::copy(), G4ITDecay::DecayIt(), G4AblaInterface::DeExcite(), G4PreCompoundModel::DeExcite(), G4FissionProbability::EmissionProbability(), G4GEMProbability::EmissionProbability(), G4PhotonEvaporation::EmittedFragment(), G4CompetitiveFission::EmittedFragment(), G4CascadeDeexciteBase::explosion(), G4StatMF::FindTemperatureOfBreakingChannel(), G4PhotonEvaporation::GenerateGamma(), G4GEMProbability::GetCoulombBarrier(), G4EvaporationChannel::GetEmissionProbability(), G4GEMChannel::GetEmissionProbability(), G4GEMChannelVI::GetEmissionProbability(), G4PhotonEvaporation::GetEmissionProbability(), G4CompetitiveFission::GetEmissionProbability(), G4CascadeDeexciteBase::getTargetData(), G4VPreCompoundFragment::Initialize(), G4StatMFMicroCanonical::Initialize(), G4StatMFMicroManager::Initialize(), G4HETCFragment::IntegrateEmissionProbability(), G4PreCompoundIon::ProbabilityDistributionFunction(), G4PreCompoundNucleon::ProbabilityDistributionFunction(), G4HETCChargedFragment::SampleKineticEnergy(), G4HETCNeutron::SampleKineticEnergy(), G4GEMChannel::SampleKineticEnergy(), G4GammaTransition::SampleTransition(), G4ExcitationHandler::SortSecondaryFragment(), and G4EvaporationProbability::TotalProbability().

◆ GetFloatingLevelNumber()

G4int G4Fragment::GetFloatingLevelNumber ( ) const
inline

Definition at line 443 of file G4Fragment.hh.

444{
445 return xLevel;
446}

References xLevel.

Referenced by G4ITDecay::DecayIt().

◆ GetGroundStateMass()

G4double G4Fragment::GetGroundStateMass ( ) const
inline

◆ GetMomentum()

const G4LorentzVector & G4Fragment::GetMomentum ( void  ) const
inline

◆ GetNuclearPolarization()

G4NuclearPolarization * G4Fragment::GetNuclearPolarization ( ) const
inline

Definition at line 479 of file G4Fragment.hh.

480{
481 return thePolarization;
482}

References thePolarization.

Referenced by G4PhotonEvaporation::EmittedFragment().

◆ GetNumberOfCharged()

G4int G4Fragment::GetNumberOfCharged ( ) const
inline

◆ GetNumberOfChargedHoles()

G4int G4Fragment::GetNumberOfChargedHoles ( ) const
inline

Definition at line 386 of file G4Fragment.hh.

387{
389}

References numberOfChargedHoles.

Referenced by G4InuclNuclei::copy(), and G4ExitonConfiguration::fill().

◆ GetNumberOfElectrons()

G4int G4Fragment::GetNumberOfElectrons ( ) const
inline

Definition at line 413 of file G4Fragment.hh.

414{
416}

References numberOfShellElectrons.

Referenced by G4GammaTransition::SampleTransition().

◆ GetNumberOfExcitons()

G4int G4Fragment::GetNumberOfExcitons ( ) const
inline

◆ GetNumberOfHoles()

G4int G4Fragment::GetNumberOfHoles ( ) const
inline

◆ GetNumberOfLambdas()

G4int G4Fragment::GetNumberOfLambdas ( ) const
inline

Definition at line 288 of file G4Fragment.hh.

289{
290 return theL;
291}

References theL.

Referenced by G4AblaInterface::DeExcite().

◆ GetNumberOfParticles()

G4int G4Fragment::GetNumberOfParticles ( ) const
inline

◆ GetParticleDefinition()

const G4ParticleDefinition * G4Fragment::GetParticleDefinition ( void  ) const
inline

Definition at line 454 of file G4Fragment.hh.

455{
457}

References theParticleDefinition.

Referenced by G4NeutronRadCapture::ApplyYourself(), and G4ITDecay::DecayIt().

◆ GetSpin()

G4double G4Fragment::GetSpin ( void  ) const
inline

Definition at line 433 of file G4Fragment.hh.

434{
435 return spin;
436}

References spin.

◆ GetZ()

G4double G4Fragment::GetZ ( void  ) const
inline

Definition at line 334 of file G4Fragment.hh.

335{
336 return G4double(theZ);
337}

References theZ.

◆ GetZ_asInt()

G4int G4Fragment::GetZ_asInt ( ) const
inline

Definition at line 276 of file G4Fragment.hh.

277{
278 return theZ;
279}

References theZ.

Referenced by G4PreCompoundEmission::AngularDistribution(), G4NeutronRadCapture::ApplyYourself(), G4Evaporation::BreakFragment(), G4FermiBreakUpVI::BreakFragment(), G4ExcitationHandler::BreakItUp(), G4InuclEvaporation::BreakItUp(), G4WilsonAblationModel::BreakItUp(), G4StatMF::BreakItUp(), G4UnstableFragmentBreakUp::BreakUpChain(), G4PhotonEvaporation::BreakUpChain(), G4GEMProbability::CalcAlphaParam(), G4TritonEvaporationProbability::CalcAlphaParam(), G4AlphaEvaporationProbability::CalcAlphaParam(), G4DeuteronEvaporationProbability::CalcAlphaParam(), G4He3EvaporationProbability::CalcAlphaParam(), G4ProtonEvaporationProbability::CalcAlphaParam(), G4StatMFMicroCanonical::CalcFreeInternalEnergy(), G4GEMProbability::CalcProbability(), G4GNASHTransitions::CalculateProbability(), G4PreCompoundTransitions::CalculateProbability(), G4StatMFMacroCanonical::CalculateTemperature(), G4StatMFMacroCanonical::ChooseAandZ(), G4StatMFMicroCanonical::ChooseAandZ(), G4CascadeCheckBalance::collide(), G4GEMProbabilityVI::ComputeTotalProbability(), G4InuclNuclei::copy(), G4AblaInterface::DeExcite(), G4PreCompoundModel::DeExcite(), G4FissionProbability::EmissionProbability(), G4PhotonEvaporation::EmittedFragment(), G4CompetitiveFission::EmittedFragment(), G4CascadeDeexciteBase::explosion(), G4StatMF::FindTemperatureOfBreakingChannel(), G4PhotonEvaporation::GenerateGamma(), G4GEMProbability::GetCoulombBarrier(), G4EvaporationChannel::GetEmissionProbability(), G4GEMChannel::GetEmissionProbability(), G4GEMChannelVI::GetEmissionProbability(), G4PhotonEvaporation::GetEmissionProbability(), G4CompetitiveFission::GetEmissionProbability(), G4CascadeDeexciteBase::getTargetData(), G4VPreCompoundFragment::Initialize(), G4StatMFMacroCanonical::Initialize(), G4StatMFMicroCanonical::Initialize(), G4StatMFMicroManager::Initialize(), G4GNASHTransitions::PerformTransition(), G4PreCompoundTransitions::PerformTransition(), G4GEMChannel::SampleKineticEnergy(), G4GammaTransition::SampleTransition(), G4ExcitationHandler::SortSecondaryFragment(), and G4EvaporationProbability::TotalProbability().

◆ NuclearPolarization()

G4NuclearPolarization * G4Fragment::NuclearPolarization ( )
inline

Definition at line 474 of file G4Fragment.hh.

475{
476 return thePolarization;
477}

References thePolarization.

◆ NumberOfExitationWarning()

void G4Fragment::NumberOfExitationWarning ( const G4String value)
private

Definition at line 272 of file G4Fragment.cc.

273{
274 G4cout << "G4Fragment::"<< value << " ERROR "
275 << G4endl;
276 G4cout << this << G4endl;
277 G4String text = "G4Fragment::G4Fragment wrong exciton number ";
278 throw G4HadronicException(__FILE__, __LINE__, text);
279}

References G4cout, and G4endl.

Referenced by SetNumberOfCharged(), SetNumberOfExcitedParticle(), and SetNumberOfHoles().

◆ operator delete()

void G4Fragment::operator delete ( void *  aFragment)
inline

Definition at line 244 of file G4Fragment.hh.

245{
246 pFragmentAllocator()->FreeSingle((G4Fragment *) aFragment);
247}
G4DLLIMPORT G4Allocator< G4Fragment > *& pFragmentAllocator()
Definition: G4Fragment.cc:46

References pFragmentAllocator().

◆ operator new()

void * G4Fragment::operator new ( size_t  )
inline

Definition at line 238 of file G4Fragment.hh.

239{
241 return (void*) pFragmentAllocator()->MallocSingle();
242}

References pFragmentAllocator().

◆ operator!=()

G4bool G4Fragment::operator!= ( const G4Fragment right) const

Definition at line 207 of file G4Fragment.cc.

208{
209 return (this != (G4Fragment *) &right);
210}

◆ operator=()

G4Fragment & G4Fragment::operator= ( const G4Fragment right)

◆ operator==()

G4bool G4Fragment::operator== ( const G4Fragment right) const

Definition at line 202 of file G4Fragment.cc.

203{
204 return (this == (G4Fragment *) &right);
205}

◆ SetA()

void G4Fragment::SetA ( G4double  value)
inline

Definition at line 350 of file G4Fragment.hh.

351{
352 theA = G4lrint(value);
354}
int G4lrint(double ad)
Definition: templates.hh:134

References CalculateGroundStateMass(), G4lrint(), and theA.

◆ SetAngularMomentum()

void G4Fragment::SetAngularMomentum ( const G4ThreeVector v)

Definition at line 281 of file G4Fragment.cc.

282{
283 spin = v.mag();
284}
double mag() const

References CLHEP::Hep3Vector::mag(), and spin.

Referenced by G4INCLXXInterface::ApplyYourself().

◆ SetCreationTime()

void G4Fragment::SetCreationTime ( G4double  time)
inline

◆ SetCreatorModelID()

void G4Fragment::SetCreatorModelID ( G4int  value)
inline

◆ SetExcEnergyAndMomentum()

void G4Fragment::SetExcEnergyAndMomentum ( G4double  eexc,
const G4LorentzVector v 
)
inline

◆ SetFloatingLevelNumber()

void G4Fragment::SetFloatingLevelNumber ( G4int  value)
inline

Definition at line 448 of file G4Fragment.hh.

449{
450 xLevel = value;
451}

References xLevel.

Referenced by G4PhotonEvaporation::GenerateGamma().

◆ SetMomentum()

void G4Fragment::SetMomentum ( const G4LorentzVector value)
inline

◆ SetNuclearPolarization()

void G4Fragment::SetNuclearPolarization ( G4NuclearPolarization p)
inline

Definition at line 484 of file G4Fragment.hh.

485{
486 thePolarization = p;
487}

References thePolarization.

Referenced by G4PhotonEvaporation::BreakUpChain(), and G4PhotonEvaporation::EmittedFragment().

◆ SetNumberOfCharged()

void G4Fragment::SetNumberOfCharged ( G4int  value)
inline

◆ SetNumberOfElectrons()

void G4Fragment::SetNumberOfElectrons ( G4int  value)
inline

Definition at line 418 of file G4Fragment.hh.

419{
421}

References numberOfShellElectrons.

Referenced by G4GammaTransition::SampleTransition().

◆ SetNumberOfExcitedParticle()

void G4Fragment::SetNumberOfExcitedParticle ( G4int  valueTot,
G4int  valueP 
)
inline

◆ SetNumberOfHoles()

void G4Fragment::SetNumberOfHoles ( G4int  valueTot,
G4int  valueP = 0 
)
inline

◆ SetNumberOfLambdas()

void G4Fragment::SetNumberOfLambdas ( G4int  numberOfLambdas)
inline

Definition at line 293 of file G4Fragment.hh.

294{
295 theL = std::max( numberOfLambdas, 0 ); // Cannot be negative
297}

References CalculateGroundStateMass(), G4INCL::Math::max(), and theL.

◆ SetNumberOfParticles()

void G4Fragment::SetNumberOfParticles ( G4int  value)
inline

◆ SetParticleDefinition()

void G4Fragment::SetParticleDefinition ( const G4ParticleDefinition p)
inline

Definition at line 459 of file G4Fragment.hh.

460{
462}

References theParticleDefinition.

◆ SetSpin()

void G4Fragment::SetSpin ( G4double  value)
inline

Definition at line 438 of file G4Fragment.hh.

439{
440 spin = value;
441}

References spin.

Referenced by G4FermiBreakUpVI::BreakFragment(), and G4PhotonEvaporation::GenerateGamma().

◆ SetZ()

void G4Fragment::SetZ ( G4double  value)
inline

Definition at line 344 of file G4Fragment.hh.

345{
346 theZ = G4lrint(value);
348}

References CalculateGroundStateMass(), G4lrint(), and theZ.

◆ SetZandA_asInt()

void G4Fragment::SetZandA_asInt ( G4int  Znew,
G4int  Anew 
)
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
const G4Fragment theFragment 
)
friend

Definition at line 212 of file G4Fragment.cc.

213{
214 std::ios::fmtflags old_floatfield = out.flags();
215 out.setf(std::ios::floatfield);
216
217 out << "Fragment: A = " << std::setw(3) << theFragment.theA
218 << ", Z = " << std::setw(3) << theFragment.theZ
219 << ", numberOfLambdas = " << std::setw(3) << theFragment.theL ;
220 out.setf(std::ios::scientific,std::ios::floatfield);
221
222 // Store user's precision setting and reset to (3) here: back-compatibility
223 std::streamsize floatPrec = out.precision();
224
225 out << std::setprecision(3)
226 << ", U = " << theFragment.GetExcitationEnergy()/CLHEP::MeV
227 << " MeV ";
228 if(theFragment.GetCreatorModelID() >= 0) {
229 out << " creatorModelID= " << theFragment.GetCreatorModelID();
230 }
231 if(theFragment.GetCreationTime() > 0.0) {
232 out << " Time= " << theFragment.GetCreationTime()/CLHEP::ns << " ns";
233 }
234 out << G4endl
235 << " P = ("
236 << theFragment.GetMomentum().x()/CLHEP::MeV << ","
237 << theFragment.GetMomentum().y()/CLHEP::MeV << ","
238 << theFragment.GetMomentum().z()/CLHEP::MeV
239 << ") MeV E = "
240 << theFragment.GetMomentum().t()/CLHEP::MeV << " MeV"
241 << G4endl;
242
243 out << " #spin= " << theFragment.GetSpin()
244 << " #floatLevelNo= " << theFragment.GetFloatingLevelNumber() << " ";
245
246 if (theFragment.GetNumberOfExcitons() != 0) {
247 out << " "
248 << "#Particles= " << theFragment.GetNumberOfParticles()
249 << ", #Charged= " << theFragment.GetNumberOfCharged()
250 << ", #Holes= " << theFragment.GetNumberOfHoles()
251 << ", #ChargedHoles= " << theFragment.GetNumberOfChargedHoles();
252 }
253 out << G4endl;
254 if(theFragment.GetNuclearPolarization()) {
255 out << *(theFragment.GetNuclearPolarization());
256 }
257 //out << G4endl;
258 out.setf(old_floatfield,std::ios::floatfield);
259 out.precision(floatPrec);
260
261 return out;
262}
G4int GetNumberOfParticles() const
Definition: G4Fragment.hh:361
G4int GetCreatorModelID() const
Definition: G4Fragment.hh:423
G4int GetNumberOfHoles() const
Definition: G4Fragment.hh:381
G4NuclearPolarization * GetNuclearPolarization() const
Definition: G4Fragment.hh:479
G4int GetNumberOfChargedHoles() const
Definition: G4Fragment.hh:386
G4double GetExcitationEnergy() const
Definition: G4Fragment.hh:299
const G4LorentzVector & GetMomentum() const
Definition: G4Fragment.hh:323
G4double GetCreationTime() const
Definition: G4Fragment.hh:464
G4double GetSpin() const
Definition: G4Fragment.hh:433
G4int GetFloatingLevelNumber() const
Definition: G4Fragment.hh:443
G4int GetNumberOfExcitons() const
Definition: G4Fragment.hh:356
G4int GetNumberOfCharged() const
Definition: G4Fragment.hh:366
static constexpr double MeV
static constexpr double ns

Field Documentation

◆ creatorModel

G4int G4Fragment::creatorModel
private

Definition at line 210 of file G4Fragment.hh.

Referenced by GetCreatorModelID(), operator=(), and SetCreatorModelID().

◆ minFragExcitation

const G4double G4Fragment::minFragExcitation = 10.*CLHEP::eV
staticprivate

Definition at line 227 of file G4Fragment.hh.

Referenced by CalculateExcitationEnergy().

◆ numberOfCharged

G4int G4Fragment::numberOfCharged
private

◆ numberOfChargedHoles

G4int G4Fragment::numberOfChargedHoles
private

Definition at line 216 of file G4Fragment.hh.

Referenced by GetNumberOfChargedHoles(), operator=(), and SetNumberOfHoles().

◆ numberOfHoles

G4int G4Fragment::numberOfHoles
private

Definition at line 215 of file G4Fragment.hh.

Referenced by GetNumberOfExcitons(), GetNumberOfHoles(), operator=(), and SetNumberOfHoles().

◆ numberOfParticles

G4int G4Fragment::numberOfParticles
private

◆ numberOfShellElectrons

G4int G4Fragment::numberOfShellElectrons
private

Definition at line 219 of file G4Fragment.hh.

Referenced by GetNumberOfElectrons(), operator=(), and SetNumberOfElectrons().

◆ spin

G4double G4Fragment::spin
private

Definition at line 224 of file G4Fragment.hh.

Referenced by GetAngularMomentum(), GetSpin(), operator=(), SetAngularMomentum(), and SetSpin().

◆ theA

G4int G4Fragment::theA
private

◆ theCreationTime

G4double G4Fragment::theCreationTime
private

Definition at line 225 of file G4Fragment.hh.

Referenced by GetCreationTime(), operator=(), and SetCreationTime().

◆ theExcitationEnergy

G4double G4Fragment::theExcitationEnergy
private

◆ theGroundStateMass

G4double G4Fragment::theGroundStateMass
private

◆ theL

G4int G4Fragment::theL
private

◆ theMomentum

G4LorentzVector G4Fragment::theMomentum
private

◆ theParticleDefinition

const G4ParticleDefinition* G4Fragment::theParticleDefinition
private

Definition at line 222 of file G4Fragment.hh.

Referenced by GetParticleDefinition(), operator=(), and SetParticleDefinition().

◆ thePolarization

G4NuclearPolarization* G4Fragment::thePolarization
private

◆ theZ

G4int G4Fragment::theZ
private

◆ xLevel

G4int G4Fragment::xLevel
private

Definition at line 220 of file G4Fragment.hh.

Referenced by GetFloatingLevelNumber(), operator=(), and SetFloatingLevelNumber().


The documentation for this class was generated from the following files: