#include <G4HadFinalState.hh>
Definition at line 45 of file G4HadFinalState.hh.
G4HadFinalState::G4HadFinalState | ( | ) |
Definition at line 35 of file G4HadFinalState.cc.
00036 : theDirection(0,0,1), theEnergy(-1), theStat(isAlive), 00037 theW(1.), theEDep(0.) {}
void G4HadFinalState::AddSecondaries | ( | const G4HadFinalState * | addHFS | ) | [inline] |
Definition at line 79 of file G4HadFinalState.hh.
References AddSecondaries(), and theSecs.
00079 { 00080 if (addHFS) AddSecondaries(addHFS->theSecs); 00081 }
void G4HadFinalState::AddSecondaries | ( | const G4HadFinalState & | addHFS | ) | [inline] |
Definition at line 75 of file G4HadFinalState.hh.
References AddSecondaries(), and theSecs.
00075 { 00076 AddSecondaries(addHFS.theSecs); 00077 }
void G4HadFinalState::AddSecondaries | ( | const std::vector< G4HadSecondary > & | addSecs | ) |
Definition at line 76 of file G4HadFinalState.cc.
Referenced by AddSecondaries(), G4ElectroNuclearReaction::ApplyYourself(), G4HadronStoppingProcess::AtRestDoIt(), and G4HadLeadBias::Bias().
void G4HadFinalState::AddSecondary | ( | const G4HadSecondary & | aHS | ) | [inline] |
void G4HadFinalState::AddSecondary | ( | G4DynamicParticle * | aP | ) |
Definition at line 70 of file G4HadFinalState.cc.
Referenced by G4NeutronHPFinalState::adjust_final_state(), G4WilsonAbrasionModel::ApplyYourself(), G4TheoFSGenerator::ApplyYourself(), G4QMDReaction::ApplyYourself(), G4PreCompoundModel::ApplyYourself(), G4ParaFissionModel::ApplyYourself(), G4NeutronRadCapture::ApplyYourself(), G4NeutronHPFissionFS::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4NeutronHPChannelList::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4LowEIonFragmentation::ApplyYourself(), G4LFission::ApplyYourself(), G4LETritonInelastic::ApplyYourself(), G4LEpp::ApplyYourself(), G4LEnp::ApplyYourself(), G4LENDModel::ApplyYourself(), G4LENDInelastic::ApplyYourself(), G4LENDFission::ApplyYourself(), G4LENDElastic::ApplyYourself(), G4LENDCapture::ApplyYourself(), G4LElastic::ApplyYourself(), G4LEDeuteronInelastic::ApplyYourself(), G4LEAlphaInelastic::ApplyYourself(), G4LCapture::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), G4HESigmaZeroInelastic::ApplyYourself(), G4HEAntiSigmaZeroInelastic::ApplyYourself(), G4HadronElastic::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4ChiralInvariantPhaseSpace::ApplyYourself(), G4ChargeExchange::ApplyYourself(), G4BinaryLightIonReaction::ApplyYourself(), G4BinaryCascade::ApplyYourself(), G4NeutronHPInelasticBaseFS::BaseApply(), G4NeutronHPInelasticCompFS::CompositeApply(), G4CascadeInterface::copyOutputToHadronicResult(), G4HEInelastic::FillParticleChange(), G4RPGInelastic::SetUpChange(), and G4InelasticInteraction::SetUpChange().
00070 { 00071 // NOTE: In-situ constructor will be optimized away (no copying) 00072 if (aP) theSecs.push_back(G4HadSecondary(aP)); 00073 }
void G4HadFinalState::Clear | ( | ) |
Definition at line 89 of file G4HadFinalState.cc.
References ClearSecondaries(), and isAlive.
Referenced by G4WilsonAbrasionModel::ApplyYourself(), G4TheoFSGenerator::ApplyYourself(), G4RPGProtonInelastic::ApplyYourself(), G4RPGNeutronInelastic::ApplyYourself(), G4QMDReaction::ApplyYourself(), G4PreCompoundModel::ApplyYourself(), G4ParaFissionModel::ApplyYourself(), G4NeutronRadCapture::ApplyYourself(), G4NeutronHPFissionFS::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4NeutronHPChannelList::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4MuonVDNuclearModel::ApplyYourself(), G4MuonMinusBoundDecay::ApplyYourself(), G4MuMinusCapturePrecompound::ApplyYourself(), G4LowEIonFragmentation::ApplyYourself(), G4LFission::ApplyYourself(), G4LETritonInelastic::ApplyYourself(), G4LEProtonInelastic::ApplyYourself(), G4LEpp::ApplyYourself(), G4LEnp::ApplyYourself(), G4LENeutronInelastic::ApplyYourself(), G4LENDInelastic::ApplyYourself(), G4LENDFission::ApplyYourself(), G4LENDElastic::ApplyYourself(), G4LENDCapture::ApplyYourself(), G4LElastic::ApplyYourself(), G4LEDeuteronInelastic::ApplyYourself(), G4LEAlphaInelastic::ApplyYourself(), G4LCapture::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), G4HadronElastic::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4EMDissociation::ApplyYourself(), G4EmCaptureCascade::ApplyYourself(), G4ElectroVDNuclearModel::ApplyYourself(), G4ElectroNuclearReaction::ApplyYourself(), G4ChiralInvariantPhaseSpace::ApplyYourself(), G4ChargeExchange::ApplyYourself(), G4CascadeInterface::ApplyYourself(), G4BinaryLightIonReaction::ApplyYourself(), G4BinaryCascade::ApplyYourself(), G4HadronStoppingProcess::AtRestDoIt(), G4NeutronHPInelasticBaseFS::BaseApply(), G4NeutronHPInelasticCompFS::CompositeApply(), G4HEInelastic::FillParticleChange(), G4HadronicProcess::FillResult(), G4CascadeInterface::NoInteraction(), G4WHadronElasticProcess::PostStepDoIt(), G4HadronElasticProcess::PostStepDoIt(), G4CascadeInterface::Propagate(), G4RPGInelastic::SetUpChange(), G4InelasticInteraction::SetUpChange(), G4LCapture::~G4LCapture(), G4LEnp::~G4LEnp(), G4LFission::~G4LFission(), and G4MuMinusCapturePrecompound::~G4MuMinusCapturePrecompound().
00090 { 00091 theDirection.set(0,0,1); 00092 theEnergy = -1; 00093 theStat = isAlive; 00094 theW = 1.; 00095 theEDep = 0.; 00096 ClearSecondaries(); 00097 }
void G4HadFinalState::ClearSecondaries | ( | ) |
G4double G4HadFinalState::GetEnergyChange | ( | ) | const |
Definition at line 52 of file G4HadFinalState.cc.
Referenced by G4HadLeadBias::Bias(), G4HadronicProcess::CheckResult(), G4HadronicProcess::FillResult(), G4WHadronElasticProcess::PostStepDoIt(), and G4HadronElasticProcess::PostStepDoIt().
G4double G4HadFinalState::GetLocalEnergyDeposit | ( | ) | const |
Definition at line 131 of file G4HadFinalState.cc.
Referenced by G4HadronStoppingProcess::AtRestDoIt(), G4HadronicProcess::CheckResult(), G4HadronicProcess::FillResult(), G4WHadronElasticProcess::PostStepDoIt(), and G4HadronElasticProcess::PostStepDoIt().
const G4ThreeVector & G4HadFinalState::GetMomentumChange | ( | ) | const |
Definition at line 68 of file G4HadFinalState.cc.
Referenced by G4HadronicProcess::FillResult(), G4WHadronElasticProcess::PostStepDoIt(), and G4HadronElasticProcess::PostStepDoIt().
G4int G4HadFinalState::GetNumberOfSecondaries | ( | ) | const |
Definition at line 40 of file G4HadFinalState.cc.
Referenced by G4NeutronHPFinalState::adjust_final_state(), G4WilsonAbrasionModel::ApplyYourself(), G4NeutronHPFissionFS::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4MuMinusCapturePrecompound::ApplyYourself(), G4BinaryLightIonReaction::ApplyYourself(), G4HadronStoppingProcess::AtRestDoIt(), G4HadLeadBias::Bias(), G4HadronicProcess::CheckResult(), G4InelasticInteraction::ExtractResidualNucleus(), G4HadronicProcess::FillResult(), G4WHadronElasticProcess::PostStepDoIt(), and G4HadronElasticProcess::PostStepDoIt().
const G4HadSecondary * G4HadFinalState::GetSecondary | ( | size_t | i | ) | const |
Definition at line 119 of file G4HadFinalState.cc.
00120 { 00121 if(i>theSecs.size()) 00122 { 00123 throw G4HadronicException(__FILE__, __LINE__, 00124 "Trying direct access to secondary beyond end of list"); 00125 } 00126 return &theSecs[i]; 00127 }
G4HadSecondary * G4HadFinalState::GetSecondary | ( | size_t | i | ) |
Definition at line 109 of file G4HadFinalState.cc.
Referenced by G4NeutronHPFinalState::adjust_final_state(), G4WilsonAbrasionModel::ApplyYourself(), G4NeutronHPFissionFS::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4MuMinusCapturePrecompound::ApplyYourself(), G4LFission::ApplyYourself(), G4HadronStoppingProcess::AtRestDoIt(), G4HadLeadBias::Bias(), G4HadronicProcess::CheckResult(), G4InelasticInteraction::ExtractResidualNucleus(), G4HadronicProcess::FillResult(), G4WHadronElasticProcess::PostStepDoIt(), and G4HadronElasticProcess::PostStepDoIt().
00110 { 00111 if(i>theSecs.size()) 00112 { 00113 throw G4HadronicException(__FILE__, __LINE__, 00114 "Trying direct access to secondary beyond end of list"); 00115 } 00116 return &theSecs[i]; 00117 }
G4HadFinalStateStatus G4HadFinalState::GetStatusChange | ( | ) | const |
Definition at line 83 of file G4HadFinalState.cc.
Referenced by G4HadronStoppingProcess::AtRestDoIt(), G4HadLeadBias::Bias(), G4HadronicProcess::CheckResult(), and G4HadronicProcess::FillResult().
const G4LorentzRotation & G4HadFinalState::GetTrafoToLab | ( | ) | const |
G4double G4HadFinalState::GetWeightChange | ( | ) | const |
void G4HadFinalState::SecondariesAreStale | ( | ) |
void G4HadFinalState::SetEnergyChange | ( | G4double | anEnergy | ) |
Definition at line 42 of file G4HadFinalState.cc.
References G4endl.
Referenced by G4WilsonAbrasionModel::ApplyYourself(), G4TheoFSGenerator::ApplyYourself(), G4RPGXiZeroInelastic::ApplyYourself(), G4RPGXiMinusInelastic::ApplyYourself(), G4RPGSigmaPlusInelastic::ApplyYourself(), G4RPGSigmaMinusInelastic::ApplyYourself(), G4RPGProtonInelastic::ApplyYourself(), G4RPGPiPlusInelastic::ApplyYourself(), G4RPGPiMinusInelastic::ApplyYourself(), G4RPGOmegaMinusInelastic::ApplyYourself(), G4RPGKPlusInelastic::ApplyYourself(), G4RPGKMinusInelastic::ApplyYourself(), G4RPGAntiXiMinusInelastic::ApplyYourself(), G4RPGAntiSigmaPlusInelastic::ApplyYourself(), G4RPGAntiSigmaMinusInelastic::ApplyYourself(), G4RPGAntiProtonInelastic::ApplyYourself(), G4RPGAntiOmegaMinusInelastic::ApplyYourself(), G4ParaFissionModel::ApplyYourself(), G4NeutronHPThermalScattering::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4NeutronHPChannelList::ApplyYourself(), G4MuonVDNuclearModel::ApplyYourself(), G4LowEIonFragmentation::ApplyYourself(), G4LEXiZeroInelastic::ApplyYourself(), G4LEXiMinusInelastic::ApplyYourself(), G4LETritonInelastic::ApplyYourself(), G4LESigmaPlusInelastic::ApplyYourself(), G4LESigmaMinusInelastic::ApplyYourself(), G4LEProtonInelastic::ApplyYourself(), G4LEpp::ApplyYourself(), G4LEPionPlusInelastic::ApplyYourself(), G4LEPionMinusInelastic::ApplyYourself(), G4LEOmegaMinusInelastic::ApplyYourself(), G4LEnp::ApplyYourself(), G4LENDModel::ApplyYourself(), G4LENDElastic::ApplyYourself(), G4LElastic::ApplyYourself(), G4LEKaonPlusInelastic::ApplyYourself(), G4LEKaonMinusInelastic::ApplyYourself(), G4LEDeuteronInelastic::ApplyYourself(), G4LEAntiXiMinusInelastic::ApplyYourself(), G4LEAntiSigmaPlusInelastic::ApplyYourself(), G4LEAntiSigmaMinusInelastic::ApplyYourself(), G4LEAntiProtonInelastic::ApplyYourself(), G4LEAntiOmegaMinusInelastic::ApplyYourself(), G4LEAlphaInelastic::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), G4HadronElastic::ApplyYourself(), G4ElectroVDNuclearModel::ApplyYourself(), G4ElectroNuclearReaction::ApplyYourself(), G4ChiralInvariantPhaseSpace::ApplyYourself(), G4ChargeExchange::ApplyYourself(), G4BinaryLightIonReaction::ApplyYourself(), G4BinaryCascade::ApplyYourself(), G4CascadeInterface::copyOutputToHadronicResult(), G4CascadeInterface::NoInteraction(), G4RPGInelastic::SetUpChange(), and G4InelasticInteraction::SetUpChange().
00043 { 00044 theEnergy=anEnergy; 00045 if(theEnergy<0) 00046 { 00047 std::cout << "Final state energy was: E = "<<theEnergy<<G4endl; 00048 throw G4HadronicException(__FILE__, __LINE__, "G4HadFinalState: fatal - negative energy"); 00049 } 00050 }
void G4HadFinalState::SetLocalEnergyDeposit | ( | G4double | aE | ) |
Definition at line 129 of file G4HadFinalState.cc.
Referenced by G4NeutronHPFissionFS::ApplyYourself(), G4HadronElastic::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4EmCaptureCascade::ApplyYourself(), and G4ChargeExchange::ApplyYourself().
Definition at line 58 of file G4HadFinalState.cc.
References G4cout, and G4endl.
00059 { 00060 theDirection.set(x,y,z); 00061 if(std::fabs(theDirection.mag()-1)>0.001) 00062 { 00063 G4cout <<"We have negative theDirection.mag() = "<<theDirection.mag()<<G4endl; 00064 throw G4HadronicException(__FILE__, __LINE__, "G4HadFinalState: fatal - negative direction.mag()."); 00065 } 00066 }
void G4HadFinalState::SetMomentumChange | ( | const G4ThreeVector & | aV | ) |
Definition at line 54 of file G4HadFinalState.cc.
Referenced by G4WilsonAbrasionModel::ApplyYourself(), G4TheoFSGenerator::ApplyYourself(), G4RPGXiZeroInelastic::ApplyYourself(), G4RPGXiMinusInelastic::ApplyYourself(), G4RPGSigmaPlusInelastic::ApplyYourself(), G4RPGSigmaMinusInelastic::ApplyYourself(), G4RPGProtonInelastic::ApplyYourself(), G4RPGPiPlusInelastic::ApplyYourself(), G4RPGPiMinusInelastic::ApplyYourself(), G4RPGOmegaMinusInelastic::ApplyYourself(), G4RPGKPlusInelastic::ApplyYourself(), G4RPGKMinusInelastic::ApplyYourself(), G4RPGAntiXiMinusInelastic::ApplyYourself(), G4RPGAntiSigmaPlusInelastic::ApplyYourself(), G4RPGAntiSigmaMinusInelastic::ApplyYourself(), G4RPGAntiProtonInelastic::ApplyYourself(), G4RPGAntiOmegaMinusInelastic::ApplyYourself(), G4NeutronHPThermalScattering::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4NeutronHPChannelList::ApplyYourself(), G4MuonVDNuclearModel::ApplyYourself(), G4LEXiZeroInelastic::ApplyYourself(), G4LEXiMinusInelastic::ApplyYourself(), G4LETritonInelastic::ApplyYourself(), G4LESigmaPlusInelastic::ApplyYourself(), G4LESigmaMinusInelastic::ApplyYourself(), G4LEProtonInelastic::ApplyYourself(), G4LEpp::ApplyYourself(), G4LEPionPlusInelastic::ApplyYourself(), G4LEPionMinusInelastic::ApplyYourself(), G4LEOmegaMinusInelastic::ApplyYourself(), G4LEnp::ApplyYourself(), G4LENDModel::ApplyYourself(), G4LENDElastic::ApplyYourself(), G4LElastic::ApplyYourself(), G4LEKaonPlusInelastic::ApplyYourself(), G4LEKaonMinusInelastic::ApplyYourself(), G4LEDeuteronInelastic::ApplyYourself(), G4LEAntiXiMinusInelastic::ApplyYourself(), G4LEAntiSigmaPlusInelastic::ApplyYourself(), G4LEAntiSigmaMinusInelastic::ApplyYourself(), G4LEAntiProtonInelastic::ApplyYourself(), G4LEAntiOmegaMinusInelastic::ApplyYourself(), G4LEAlphaInelastic::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), G4HadronElastic::ApplyYourself(), G4ElectroVDNuclearModel::ApplyYourself(), G4ElectroNuclearReaction::ApplyYourself(), G4ChiralInvariantPhaseSpace::ApplyYourself(), G4ChargeExchange::ApplyYourself(), G4BinaryLightIonReaction::ApplyYourself(), G4BinaryCascade::ApplyYourself(), G4RPGInelastic::SetUpChange(), and G4InelasticInteraction::SetUpChange().
void G4HadFinalState::SetStatusChange | ( | G4HadFinalStateStatus | aS | ) |
Definition at line 81 of file G4HadFinalState.cc.
Referenced by G4WilsonAbrasionModel::ApplyYourself(), G4TheoFSGenerator::ApplyYourself(), G4RPGXiZeroInelastic::ApplyYourself(), G4RPGXiMinusInelastic::ApplyYourself(), G4RPGSigmaPlusInelastic::ApplyYourself(), G4RPGSigmaMinusInelastic::ApplyYourself(), G4RPGProtonInelastic::ApplyYourself(), G4RPGPiPlusInelastic::ApplyYourself(), G4RPGPiMinusInelastic::ApplyYourself(), G4RPGOmegaMinusInelastic::ApplyYourself(), G4RPGKPlusInelastic::ApplyYourself(), G4RPGKMinusInelastic::ApplyYourself(), G4RPGAntiXiMinusInelastic::ApplyYourself(), G4RPGAntiSigmaPlusInelastic::ApplyYourself(), G4RPGAntiSigmaMinusInelastic::ApplyYourself(), G4RPGAntiProtonInelastic::ApplyYourself(), G4RPGAntiOmegaMinusInelastic::ApplyYourself(), G4QMDReaction::ApplyYourself(), G4PreCompoundModel::ApplyYourself(), G4ParaFissionModel::ApplyYourself(), G4NeutronRadCapture::ApplyYourself(), G4NeutronHPorLElastic::ApplyYourself(), G4NeutronHPFissionFS::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4NeutronHPElastic::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4MuonVDNuclearModel::ApplyYourself(), G4MuonMinusBoundDecay::ApplyYourself(), G4MuMinusCapturePrecompound::ApplyYourself(), G4LowEIonFragmentation::ApplyYourself(), G4LFission::ApplyYourself(), G4LEXiZeroInelastic::ApplyYourself(), G4LEXiMinusInelastic::ApplyYourself(), G4LETritonInelastic::ApplyYourself(), G4LESigmaPlusInelastic::ApplyYourself(), G4LESigmaMinusInelastic::ApplyYourself(), G4LEProtonInelastic::ApplyYourself(), G4LEPionPlusInelastic::ApplyYourself(), G4LEPionMinusInelastic::ApplyYourself(), G4LEOmegaMinusInelastic::ApplyYourself(), G4LENDInelastic::ApplyYourself(), G4LENDFission::ApplyYourself(), G4LENDCapture::ApplyYourself(), G4LElastic::ApplyYourself(), G4LEKaonPlusInelastic::ApplyYourself(), G4LEKaonMinusInelastic::ApplyYourself(), G4LEDeuteronInelastic::ApplyYourself(), G4LEAntiXiMinusInelastic::ApplyYourself(), G4LEAntiSigmaPlusInelastic::ApplyYourself(), G4LEAntiSigmaMinusInelastic::ApplyYourself(), G4LEAntiProtonInelastic::ApplyYourself(), G4LEAntiOmegaMinusInelastic::ApplyYourself(), G4LEAlphaInelastic::ApplyYourself(), G4LCapture::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), G4HEXiZeroInelastic::ApplyYourself(), G4HEXiMinusInelastic::ApplyYourself(), G4HESigmaPlusInelastic::ApplyYourself(), G4HESigmaMinusInelastic::ApplyYourself(), G4HEProtonInelastic::ApplyYourself(), G4HEPionPlusInelastic::ApplyYourself(), G4HEPionMinusInelastic::ApplyYourself(), G4HEOmegaMinusInelastic::ApplyYourself(), G4HENeutronInelastic::ApplyYourself(), G4HELambdaInelastic::ApplyYourself(), G4HEKaonZeroShortInelastic::ApplyYourself(), G4HEKaonZeroLongInelastic::ApplyYourself(), G4HEKaonZeroInelastic::ApplyYourself(), G4HEKaonPlusInelastic::ApplyYourself(), G4HEKaonMinusInelastic::ApplyYourself(), G4HEAntiXiZeroInelastic::ApplyYourself(), G4HEAntiXiMinusInelastic::ApplyYourself(), G4HEAntiSigmaPlusInelastic::ApplyYourself(), G4HEAntiSigmaMinusInelastic::ApplyYourself(), G4HEAntiProtonInelastic::ApplyYourself(), G4HEAntiOmegaMinusInelastic::ApplyYourself(), G4HEAntiNeutronInelastic::ApplyYourself(), G4HEAntiLambdaInelastic::ApplyYourself(), G4HEAntiKaonZeroInelastic::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4EmCaptureCascade::ApplyYourself(), G4ElectroVDNuclearModel::ApplyYourself(), G4ElectroNuclearReaction::ApplyYourself(), G4ChiralInvariantPhaseSpace::ApplyYourself(), G4ChargeExchange::ApplyYourself(), G4BinaryLightIonReaction::ApplyYourself(), G4BinaryCascade::ApplyYourself(), G4NeutronHPInelasticBaseFS::BaseApply(), G4NeutronHPInelasticCompFS::CompositeApply(), G4CascadeInterface::copyOutputToHadronicResult(), G4CascadeInterface::NoInteraction(), G4RPGInelastic::SetUpChange(), and G4InelasticInteraction::SetUpChange().
void G4HadFinalState::SetTrafoToLab | ( | const G4LorentzRotation & | aT | ) |
void G4HadFinalState::SetWeightChange | ( | G4double | aW | ) |