44 , theTransport(nullptr), theHighEnergyGenerator(nullptr)
45 , theQuasielastic(nullptr)
46 , theCosmicCoalescence(nullptr)
53 delete theParticleChange;
59 <<
" string model and a stage to de-excite the excited nuclear fragment.\n<p>"
60 <<
"The string model simulates the interaction of\n"
61 <<
"an incident hadron with a nucleus, forming \n"
62 <<
"excited strings, decays these strings into hadrons,\n"
63 <<
"and leaves an excited nucleus. \n"
64 <<
"<p>The string model:\n";
73 theParticleChange->
Clear();
85 const G4double energyThresholdForCharmAndBottomHadrons = 100.0*CLHEP::MeV;
86 if ( thePrimary.
GetKineticEnergy() < energyThresholdForCharmAndBottomHadrons &&
94 return theParticleChange;
101 if ( theQuasielastic )
110 for(
auto & ptr : *result)
114 ptr->Get4Momentum().e(),
115 ptr->Get4Momentum().vect());
128 return theParticleChange;
134 theHighEnergyGenerator->
Scatter(theNucleus, aPart);
137 #ifdef DEBUG_initial_result
140 for(
auto & ptr : *theInitialResult)
144 E_out += ptr->Get4Momentum().e();
152 G4int resZ(0),resA(0);
154 for(
auto & nuc : thy)
156 if(nuc.AreYouHit()) {
160 delta_m += CLHEP::proton_mass_c2;
162 delta_m += CLHEP::neutron_mass_c2;
171 G4double E_excit=init_mass + init_E - final_mass - E_out;
172 G4cout <<
" Corrected delta mass " << init_mass - final_mass - delta_m <<
G4endl;
173 G4cout <<
"initial E, mass = " << init_E <<
", " << init_mass <<
G4endl;
174 G4cout <<
" final E, mass = " << E_out <<
", " << final_mass <<
" excitation_E " << E_excit <<
G4endl;
181 if(theProjectileNucleus ==
nullptr)
185 for(
auto & nuc : they)
187 if(nuc.AreYouHit()) ++hitCount;
193 theTransport->
Propagate(theInitialResult,
195 if ( !theTransportResult ) {
196 G4cout <<
"G4TheoFSGenerator: null ptr from transport propagate " <<
G4endl;
202 theTransportResult = theDecay.
Propagate(theInitialResult,
204 if ( theTransportResult ==
nullptr ) {
205 G4cout <<
"G4TheoFSGenerator: null ptr from decay propagate " <<
G4endl;
215 theProjectileNucleus);
216 if ( !theTransportResult ) {
217 G4cout <<
"G4TheoFSGenerator: null ptr from transport propagate " <<
G4endl;
227 if(
nullptr == theCosmicCoalescence) {
230 if(
nullptr == theCosmicCoalescence) {
239 for(
auto & ptr : *theTransportResult)
243 ptr->GetTotalEnergy(),
246 G4double time = std::max(ptr->GetFormationTime(), 0.0);
247 aNew.
SetTime(timePrimary + time);
254 delete theTransportResult;
257 return theParticleChange;
262 if ( theHighEnergyGenerator ) {
std::vector< G4ReactionProduct * > G4ReactionProductVector
G4GLOB_DLL std::ostream G4cout
void GenerateDeuterons(G4ReactionProductVector *result)
void SetP0Coalescence(const G4HadProjectile &thePrimary, G4String)
G4ReactionProductVector * Propagate(G4KineticTrackVector *theSecondaries, G4V3DNucleus *)
G4LorentzVector Get4Momentum() const
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
void SetEnergyChange(G4double anEnergy)
void SetMomentumChange(const G4ThreeVector &aV)
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetGlobalTime() const
void SetTime(G4double aT)
void SetCreatorModelType(G4int idx)
G4HadronicInteraction * FindModel(const G4String &name)
static G4HadronicInteractionRegistry * Instance()
virtual std::pair< G4double, G4double > GetEnergyMomentumCheckLevels() const
const G4String & GetModelName() const
static G4HadronicParameters * Instance()
G4double GetIonMass(G4int Z, G4int A, G4int L=0, G4int lvl=0) const
G4int GetQuarkContent(G4int flavor) const
G4int GetAntiQuarkContent(G4int flavor) const
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
static G4Proton * Proton()
G4KineticTrackVector * Scatter(G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary)
G4double GetFraction(G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary)
G4TheoFSGenerator(const G4String &name="TheoFSGenerator")
std::pair< G4double, G4double > GetEnergyMomentumCheckLevels() const override
G4HadFinalState * ApplyYourself(const G4HadProjectile &thePrimary, G4Nucleus &theNucleus) override
void ModelDescription(std::ostream &outFile) const override
~G4TheoFSGenerator() override
virtual const std::vector< G4Nucleon > & GetNucleons()=0
virtual G4int GetMassNumber()=0
void ModelDescription(std::ostream &) const override
virtual G4V3DNucleus * GetProjectileNucleus() const
virtual G4V3DNucleus * GetWoundedNucleus() const =0
virtual G4KineticTrackVector * Scatter(const G4Nucleus &theNucleus, const G4DynamicParticle &thePrimary)=0
virtual G4ReactionProductVector * PropagateNuclNucl(G4KineticTrackVector *theSecondaries, G4V3DNucleus *theNucleus, G4V3DNucleus *theProjectileNucleus)
void SetPrimaryProjectile(const G4HadProjectile &aPrimary)
virtual void PropagateModelDescription(std::ostream &outFile) const
virtual G4ReactionProductVector * Propagate(G4KineticTrackVector *theSecondaries, G4V3DNucleus *theNucleus)=0