Geant4-11
Static Public Member Functions | Static Private Member Functions
G4HadronicBuilder Class Reference

#include <G4HadronicBuilder.hh>

Static Public Member Functions

static void BuildAntiLightIonsFTFP ()
 
static void BuildBCHadronsFTFP_BERT ()
 
static void BuildBCHadronsFTFQGSP_BERT ()
 
static void BuildBCHadronsQGSP_FTFP_BERT (G4bool quasiElastic)
 
static void BuildDecayTableForBCHadrons ()
 
static void BuildElastic (const std::vector< G4int > &particleList)
 
static void BuildHyperonsFTFP_BERT ()
 
static void BuildHyperonsFTFQGSP_BERT ()
 
static void BuildHyperonsQGSP_FTFP_BERT (G4bool quasiElastic)
 
static void BuildKaonsFTFP_BERT ()
 
static void BuildKaonsFTFQGSP_BERT ()
 
static void BuildKaonsQGSP_FTFP_BERT (G4bool quasiElastic)
 

Static Private Member Functions

static void BuildFTFP_BERT (const std::vector< G4int > &particleList, G4bool bert, const G4String &xsName)
 
static void BuildFTFQGSP_BERT (const std::vector< G4int > &particleList, G4bool bert, const G4String &xsName)
 
static void BuildQGSP_FTFP_BERT (const std::vector< G4int > &particleList, G4bool bert, G4bool quasiElastic, const G4String &xsName)
 

Detailed Description

Definition at line 40 of file G4HadronicBuilder.hh.

Member Function Documentation

◆ BuildAntiLightIonsFTFP()

void G4HadronicBuilder::BuildAntiLightIonsFTFP ( )
static

Definition at line 250 of file G4HadronicBuilder.cc.

250 {
251 BuildFTFP_BERT(G4HadParticles::GetLightAntiIons(), false, "AntiAGlauber");
252}
static const std::vector< G4int > & GetLightAntiIons()
static void BuildFTFP_BERT(const std::vector< G4int > &particleList, G4bool bert, const G4String &xsName)

References BuildFTFP_BERT(), and G4HadParticles::GetLightAntiIons().

Referenced by G4HadronInelasticQBBC::ConstructProcess(), G4HadronPhysicsFTFQGSP_BERT::ConstructProcess(), G4HadronPhysicsFTFP_BERT::Others(), G4HadronPhysicsQGSP_BERT::Others(), G4HadronPhysicsQGSP_BIC::Others(), and G4HadronPhysicsINCLXX::Others().

◆ BuildBCHadronsFTFP_BERT()

void G4HadronicBuilder::BuildBCHadronsFTFP_BERT ( )
static

Definition at line 259 of file G4HadronicBuilder.cc.

259 {
260 if( G4HadronicParameters::Instance()->EnableBCParticles() ) {
261 // Bertini is not applicable for charm and bottom hadrons, therefore FTFP is used
262 // down to zero kinetic energy (but at very low energies, a dummy model is used
263 // that returns the projectile heavy hadron in the final state).
264 BuildFTFP_BERT(G4HadParticles::GetBCHadrons(), false, "Glauber-Gribov");
266 }
267}
static const std::vector< G4int > & GetBCHadrons()
static void BuildDecayTableForBCHadrons()
static G4HadronicParameters * Instance()

References BuildDecayTableForBCHadrons(), BuildFTFP_BERT(), G4HadParticles::GetBCHadrons(), and G4HadronicParameters::Instance().

Referenced by G4HadronInelasticQBBC::ConstructProcess(), G4HadronPhysicsFTFP_BERT::Others(), and G4HadronPhysicsINCLXX::Others().

◆ BuildBCHadronsFTFQGSP_BERT()

void G4HadronicBuilder::BuildBCHadronsFTFQGSP_BERT ( )
static

Definition at line 269 of file G4HadronicBuilder.cc.

269 {
270 if( G4HadronicParameters::Instance()->EnableBCParticles() ) {
271 // Bertini is not applicable for charm and bottom hadrons, therefore FTFP is used
272 // down to zero kinetic energy (but at very low energies, a dummy model is used
273 // that returns the projectile heavy hadron in the final state).
274 BuildFTFQGSP_BERT(G4HadParticles::GetBCHadrons(), false, "Glauber-Gribov");
276 }
277}
static void BuildFTFQGSP_BERT(const std::vector< G4int > &particleList, G4bool bert, const G4String &xsName)

References BuildDecayTableForBCHadrons(), BuildFTFQGSP_BERT(), G4HadParticles::GetBCHadrons(), and G4HadronicParameters::Instance().

Referenced by G4HadronPhysicsFTFQGSP_BERT::ConstructProcess().

◆ BuildBCHadronsQGSP_FTFP_BERT()

void G4HadronicBuilder::BuildBCHadronsQGSP_FTFP_BERT ( G4bool  quasiElastic)
static

Definition at line 279 of file G4HadronicBuilder.cc.

279 {
280 if( G4HadronicParameters::Instance()->EnableBCParticles() ) {
281 // Bertini is not applicable for charm and bottom hadrons, therefore FTFP is used
282 // down to zero kinetic energy (but at very low energies, a dummy model is used
283 // that returns the projectile heavy hadron in the final state).
284 // QGSP is used at high energies in all cases.
285 BuildQGSP_FTFP_BERT(G4HadParticles::GetBCHadrons(), false, qElastic, "Glauber-Gribov");
287 }
288}
static void BuildQGSP_FTFP_BERT(const std::vector< G4int > &particleList, G4bool bert, G4bool quasiElastic, const G4String &xsName)

References BuildDecayTableForBCHadrons(), BuildQGSP_FTFP_BERT(), G4HadParticles::GetBCHadrons(), and G4HadronicParameters::Instance().

Referenced by G4HadronPhysicsQGSP_BERT::Others(), G4HadronPhysicsQGSP_BIC::Others(), and G4HadronPhysicsINCLXX::Others().

◆ BuildDecayTableForBCHadrons()

void G4HadronicBuilder::BuildDecayTableForBCHadrons ( )
static

Definition at line 290 of file G4HadronicBuilder.cc.

290 {
291 // Geant4 does not define the decay of most of charmed and bottom hadrons.
292 // The reason is that most of these heavy hadrons have many different
293 // decay channels, with a complex dynamics, quite different from the flat
294 // phase space kinematical treatment used in Geant4 for most of hadronic decays.
295 // High-energy experiments usually use dedicated Monte Carlo Event Generators
296 // for the decays of charmed and bottom hadrons; therefore, these heavy
297 // hadrons, which are passed to Geant4 as primary tracks, have pre-assigned
298 // decays. Moreover, no charmed or bottom secondary hadrons were created
299 // in Geant4 hadronic interactions before Geant4 10.7.
300 // With the extension of Geant4 hadronic interactions to charmed and bottom
301 // hadrons, in version Geant4 10.7, we do need to define decays in Geant4
302 // for these heavy hadrons, for two reasons:
303 // 1. For testing purposes, unless we pre-assign decays of heavy hadrons
304 // (as the HEP experiments normally do by using MC Event Generators);
305 // 2. To avoid crashes (due to missing decay channels) whenever charmed or
306 // bottom secondary hadrons are produced by Geant4 hadronic interactions,
307 // even with ordinary (i.e. not heavy) hadron projectiles, because in
308 // this case we cannot (easily!) pre-assign decays to them.
309 // Given that 1. is just a convenience for testing, and 2. happens rather
310 // rarely in practice - because very few primary energetic (i.e. boosted)
311 // heavy hadrons fly enough to reach the beam pipe or the tracker and
312 // having an inelastic interaction there, and the very low probability
313 // to create a heavy hadrons from the string fragmentation in ordinary
314 // (i.e. not heavy) hadronic interactions - there is no need in practice
315 // to define accurately the decays of heavy hadrons in Geant4.
316 // So, for our practical purposes, it is enough to define very simple,
317 // "dummy" decays of charmed and bottom hadrons.
318 // Here we use a single, fully hadronic channel, with 2 or 3 or 4
319 // daughters, for each of these heavy hadrons, assigning to this single
320 // decay channel a 100% branching ratio, although in reality such a
321 // channel is one between hundreds of possible ones (and therefore its
322 // real branching ratio is typical of a few per-cent); moreover, we treat
323 // the decay without any dynamics, i.e. with a flat phase space kinematical
324 // treatment.
325 // Note that some of the charmed and bottom hadrons such as SigmaC++,
326 // SigmaC+, SigmaC0, SigmaB+, SigmaB0 and SigmaB- have one dominant
327 // decay channel (to LambdaC/B + Pion) which is already defined in Geant4.
328 // This is not the case for EtaC, JPsi and Upsilon, whose decays need to
329 // be defined here (although they decay so quickly that their hadronic
330 // interactions can be neglected, as we do for Pi0 and Sigma0).
331 // Note that our definition of the decay tables for these heavy hadrons
332 // do not interfere with the pre-assign decays of primary charmed and
333 // bottom tracks made by the HEP experiments. In fact, pre-assign decays
334 // have priority over (i.e. override) decay tables.
335 static G4bool isFirstCall = true;
336 if ( ! isFirstCall ) return;
337 isFirstCall = false;
339 for ( auto & pdg : G4HadParticles::GetBCHadrons() ) {
340 auto part = particleTable->FindParticle( pdg );
341 if ( part == nullptr ) {
342 G4cout << "G4HadronicBuilder::BuildDecayTableForBCHadrons : ERROR ! particlePDG="
343 << pdg << " is not defined !" << G4endl;
344 continue;
345 }
346 if ( part->GetDecayTable() ) {
347 G4cout << "G4HadronicBuilder::BuildDecayTableForBCHadrons : WARNING ! particlePDG="
348 << pdg << " has already a decay table defined !" << G4endl;
349 continue;
350 }
351 G4DecayTable* decayTable = new G4DecayTable;
352 const G4int numberDecayChannels = 1;
353 G4VDecayChannel** mode = new G4VDecayChannel*[ numberDecayChannels ];
354 for ( G4int i = 0; i < numberDecayChannels; ++i ) mode[i] = nullptr;
355 switch ( pdg ) {
356 // Charmed mesons
357 case 411 : // D+
358 mode[0] = new G4PhaseSpaceDecayChannel( "D+", 1.0, 3, "kaon-", "pi+", "pi+" );
359 break;
360 case -411 : // D-
361 mode[0] = new G4PhaseSpaceDecayChannel( "D-", 1.0, 3, "kaon+", "pi-", "pi-" );
362 break;
363 case 421 : // D0
364 mode[0] = new G4PhaseSpaceDecayChannel( "D0", 1.0, 3, "kaon-", "pi+", "pi0" );
365 break;
366 case -421 : // anti_D0
367 mode[0] = new G4PhaseSpaceDecayChannel( "anti_D0", 1.0, 3, "kaon+", "pi-", "pi0" );
368 break;
369 case 431 : // Ds+
370 mode[0] = new G4PhaseSpaceDecayChannel( "Ds+", 1.0, 3, "kaon+", "kaon-", "pi+" );
371 break;
372 case -431 : // Ds-
373 mode[0] = new G4PhaseSpaceDecayChannel( "Ds-", 1.0, 3, "kaon-", "kaon+", "pi-" );
374 break;
375 // Bottom mesons
376 case 521 : // B+
377 mode[0] = new G4PhaseSpaceDecayChannel( "B+", 1.0, 3, "anti_D0", "pi+", "pi0" );
378 break;
379 case -521 : // B-
380 mode[0] = new G4PhaseSpaceDecayChannel( "B-", 1.0, 3, "D0", "pi-", "pi0" );
381 break;
382 case 511 : // B0
383 mode[0] = new G4PhaseSpaceDecayChannel( "B0", 1.0, 3, "D-", "pi+", "pi0" );
384 break;
385 case -511 : // anti_B0
386 mode[0] = new G4PhaseSpaceDecayChannel( "anti_B0", 1.0, 3, "D+", "pi-", "pi0" );
387 break;
388 case 531 : // Bs0
389 mode[0] = new G4PhaseSpaceDecayChannel( "Bs0", 1.0, 3, "Ds-", "pi+", "pi0" );
390 break;
391 case -531 : // anti_Bs0
392 mode[0] = new G4PhaseSpaceDecayChannel( "anti_Bs0", 1.0, 3, "Ds+", "pi-", "pi0" );
393 break;
394 case 541 : // Bc+
395 mode[0] = new G4PhaseSpaceDecayChannel( "Bc+", 1.0, 2, "J/psi", "pi+" );
396 break;
397 case -541 : // Bc-
398 mode[0] = new G4PhaseSpaceDecayChannel( "Bc-", 1.0, 2, "J/psi", "pi-" );
399 break;
400 // Charmed baryons (and anti-baryons)
401 case 4122 : // lambda_c+
402 mode[0] = new G4PhaseSpaceDecayChannel( "lambda_c+", 1.0, 3, "proton", "kaon-", "pi+" );
403 break;
404 case -4122 : // anti_lambda_c+
405 mode[0] = new G4PhaseSpaceDecayChannel( "anti_lambda_c+", 1.0, 3, "anti_proton", "kaon+", "pi-" );
406 break;
407 case 4232 : // xi_c+
408 mode[0] = new G4PhaseSpaceDecayChannel( "xi_c+", 1.0, 3, "sigma+", "kaon-", "pi+" );
409 break;
410 case -4232 : // anti_xi_c+
411 mode[0] = new G4PhaseSpaceDecayChannel( "anti_xi_c+", 1.0, 3, "anti_sigma+", "kaon+", "pi-" );
412 break;
413 case 4132 : // xi_c0
414 mode[0] = new G4PhaseSpaceDecayChannel( "xi_c0", 1.0, 3, "lambda", "kaon-", "pi+" );
415 break;
416 case -4132 : // anti_xi_c0
417 mode[0] = new G4PhaseSpaceDecayChannel( "anti_xi_c0", 1.0, 3, "anti_lambda", "kaon+", "pi-" );
418 break;
419 case 4332 : // omega_c0
420 mode[0] = new G4PhaseSpaceDecayChannel( "omega_c0", 1.0, 3, "xi0", "kaon-", "pi+" );
421 break;
422 case -4332 : // anti_omega_c0
423 mode[0] = new G4PhaseSpaceDecayChannel( "anti_omega_c0", 1.0, 3, "anti_xi0", "kaon+", "pi-" );
424 break;
425 // Bottom baryons (and anti-baryons)
426 case 5122 : // lambda_b
427 mode[0] = new G4PhaseSpaceDecayChannel( "lambda_b", 1.0, 4, "lambda_c+", "pi+", "pi-", "pi-" );
428 break;
429 case -5122 : // anti_lambda_b
430 mode[0] = new G4PhaseSpaceDecayChannel( "anti_lambda_b", 1.0, 4, "anti_lambda_c+", "pi-", "pi+", "pi+" );
431 break;
432 case 5232 : // xi_b0
433 mode[0] = new G4PhaseSpaceDecayChannel( "xi_b0", 1.0, 3, "lambda_c+", "kaon-", "pi0" );
434 break;
435 case -5232 : // anti_xi_b0
436 mode[0] = new G4PhaseSpaceDecayChannel( "anti_xi_b0", 1.0, 3, "anti_lambda_c+", "kaon+", "pi0" );
437 break;
438 case 5132 : // xi_b-
439 mode[0] = new G4PhaseSpaceDecayChannel( "xi_b-", 1.0, 3, "lambda_c+", "kaon-", "pi-" );
440 break;
441 case -5132 : // anti_xi_b-
442 mode[0] = new G4PhaseSpaceDecayChannel( "anti_xi_b-", 1.0, 3, "anti_lambda_c+", "kaon+", "pi+" );
443 break;
444 case 5332 : // omega_b-
445 mode[0] = new G4PhaseSpaceDecayChannel( "omega_b-", 1.0, 3, "xi_c+", "kaon-", "pi-" );
446 break;
447 case -5332 : // anti_omega_b-
448 mode[0] = new G4PhaseSpaceDecayChannel( "anti_omega_b-", 1.0, 3, "anti_xi_c+", "kaon+", "pi+" );
449 break;
450 default :
451 G4cout << "G4HadronicBuilder::BuildDecayTableForBCHadrons : UNKNOWN particlePDG=" << pdg << G4endl;
452 } // End of the switch
453
454 for ( G4int index = 0; index < numberDecayChannels; ++index ) decayTable->Insert( mode[index] );
455 delete [] mode;
456 part->SetDecayTable( decayTable );
457 } // End of the for loop over heavy hadrons
458 // Add now the decay for etac, JPsi and Upsilon because these can be produced as
459 // secondaries in hadronic interactions, while they are not part of the heavy
460 // hadrons included in G4HadParticles::GetBCHadrons() because they live too shortly
461 // and therefore their hadronic interactions can be neglected (as we do for pi0 and sigma0).
462 if ( ! G4Etac::Definition()->GetDecayTable() ) {
463 G4DecayTable* decayTable = new G4DecayTable;
464 const G4int numberDecayChannels = 1;
465 G4VDecayChannel** mode = new G4VDecayChannel*[ numberDecayChannels ];
466 for ( G4int i = 0; i < numberDecayChannels; ++i ) mode[i] = nullptr;
467 mode[0] = new G4PhaseSpaceDecayChannel( "etac", 1.0, 3, "eta", "pi+", "pi-" );
468 for ( G4int index = 0; index < numberDecayChannels; ++index ) decayTable->Insert( mode[index] );
469 delete [] mode;
470 G4Etac::Definition()->SetDecayTable( decayTable );
471 }
472 if ( ! G4JPsi::Definition()->GetDecayTable() ) {
473 G4DecayTable* decayTable = new G4DecayTable;
474 const G4int numberDecayChannels = 1;
475 G4VDecayChannel** mode = new G4VDecayChannel*[ numberDecayChannels ];
476 for ( G4int i = 0; i < numberDecayChannels; ++i ) mode[i] = nullptr;
477 mode[0] = new G4PhaseSpaceDecayChannel( "J/psi", 1.0, 3, "pi0", "pi+", "pi-" );
478 for ( G4int index = 0; index < numberDecayChannels; ++index ) decayTable->Insert( mode[index] );
479 delete [] mode;
480 G4JPsi::Definition()->SetDecayTable( decayTable );
481 }
482 if ( ! G4Upsilon::Definition()->GetDecayTable() ) {
483 G4DecayTable* decayTable = new G4DecayTable;
484 const G4int numberDecayChannels = 1;
485 G4VDecayChannel** mode = new G4VDecayChannel*[ numberDecayChannels ];
486 for ( G4int i = 0; i < numberDecayChannels; ++i ) mode[i] = nullptr;
487 mode[0] = new G4PhaseSpaceDecayChannel( "Upsilon", 1.0, 3, "eta_prime", "pi+", "pi-" );
488 for ( G4int index = 0; index < numberDecayChannels; ++index ) decayTable->Insert( mode[index] );
489 delete [] mode;
490 G4Upsilon::Definition()->SetDecayTable( decayTable );
491 }
492}
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void Insert(G4VDecayChannel *aChannel)
Definition: G4DecayTable.cc:53
static G4Etac * Definition()
Definition: G4Etac.cc:52
static G4JPsi * Definition()
Definition: G4JPsi.cc:47
void SetDecayTable(G4DecayTable *aDecayTable)
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
static G4Upsilon * Definition()
Definition: G4Upsilon.cc:46

References G4Etac::Definition(), G4JPsi::Definition(), G4Upsilon::Definition(), G4ParticleTable::FindParticle(), G4cout, G4endl, G4HadParticles::GetBCHadrons(), G4ParticleTable::GetParticleTable(), G4DecayTable::Insert(), and G4ParticleDefinition::SetDecayTable().

Referenced by BuildBCHadronsFTFP_BERT(), BuildBCHadronsFTFQGSP_BERT(), and BuildBCHadronsQGSP_FTFP_BERT().

◆ BuildElastic()

void G4HadronicBuilder::BuildElastic ( const std::vector< G4int > &  particleList)
static

Definition at line 192 of file G4HadronicBuilder.cc.

192 {
193
196
197 auto xsel = G4HadProcesses::ElasticXS("Glauber-Gribov");
198
199 auto elModel = new G4HadronElastic();
200 elModel->SetMaxEnergy( param->GetMaxEnergy() );
201
203 for( auto & pdg : partList ) {
204
205 auto part = table->FindParticle( pdg );
206 if ( part == nullptr ) { continue; }
207
208 auto hade = new G4HadronElasticProcess();
209 hade->AddDataSet( xsel );
210 hade->RegisterMe( elModel );
211 if( param->ApplyFactorXS() ) hade->MultiplyCrossSectionBy( param->XSFactorHadronElastic() );
212 ph->RegisterProcess(hade, part);
213 }
214}
static G4CrossSectionElastic * ElasticXS(const G4String &componentName)
G4double XSFactorHadronElastic() const
G4double GetMaxEnergy() const
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()

References G4HadronicParameters::ApplyFactorXS(), G4HadProcesses::ElasticXS(), G4ParticleTable::FindParticle(), G4HadronicParameters::GetMaxEnergy(), G4ParticleTable::GetParticleTable(), G4PhysicsListHelper::GetPhysicsListHelper(), G4HadronicParameters::Instance(), G4PhysicsListHelper::RegisterProcess(), and G4HadronicParameters::XSFactorHadronElastic().

Referenced by G4HadronDElasticPhysics::ConstructProcess(), G4HadronElasticPhysics::ConstructProcess(), and G4HadronHElasticPhysics::ConstructProcess().

◆ BuildFTFP_BERT()

void G4HadronicBuilder::BuildFTFP_BERT ( const std::vector< G4int > &  particleList,
G4bool  bert,
const G4String xsName 
)
staticprivate

Definition at line 66 of file G4HadronicBuilder.cc.

67 {
68
71
72 auto theModel = new G4TheoFSGenerator("FTFP");
73 auto theStringModel = new G4FTFModel();
74 theStringModel->SetFragmentationModel(new G4ExcitedStringDecay());
75 theModel->SetHighEnergyGenerator( theStringModel );
76 theModel->SetTransport( new G4GeneratorPrecompoundInterface() );
77 theModel->SetMaxEnergy( param->GetMaxEnergy() );
78
79 G4CascadeInterface* theCascade = nullptr;
80 if(bert) {
81 theCascade = new G4CascadeInterface();
82 theCascade->SetMaxEnergy( param->GetMaxEnergyTransitionFTF_Cascade() );
83 theModel->SetMinEnergy( param->GetMinEnergyTransitionFTF_Cascade() );
84 }
85
86 auto xsinel = G4HadProcesses::InelasticXS( xsName );
87
89 for( auto & pdg : partList ) {
90
91 auto part = table->FindParticle( pdg );
92 if ( part == nullptr ) { continue; }
93
94 auto hadi = new G4HadronInelasticProcess( part->GetParticleName()+"Inelastic", part );
95 hadi->AddDataSet( xsinel );
96 hadi->RegisterMe( theModel );
97 if( theCascade != nullptr ) hadi->RegisterMe( theCascade );
98 if( param->ApplyFactorXS() ) hadi->MultiplyCrossSectionBy( param->XSFactorHadronInelastic() );
99 ph->RegisterProcess(hadi, part);
100 }
101}
static G4CrossSectionInelastic * InelasticXS(const G4String &componentName)
void SetMaxEnergy(const G4double anEnergy)
G4double GetMinEnergyTransitionFTF_Cascade() const
G4double GetMaxEnergyTransitionFTF_Cascade() const
G4double XSFactorHadronInelastic() const

References G4HadronicParameters::ApplyFactorXS(), G4ParticleTable::FindParticle(), G4HadronicParameters::GetMaxEnergy(), G4HadronicParameters::GetMaxEnergyTransitionFTF_Cascade(), G4HadronicParameters::GetMinEnergyTransitionFTF_Cascade(), G4ParticleTable::GetParticleTable(), G4PhysicsListHelper::GetPhysicsListHelper(), G4HadProcesses::InelasticXS(), G4HadronicParameters::Instance(), G4PhysicsListHelper::RegisterProcess(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicParameters::XSFactorHadronInelastic().

Referenced by BuildAntiLightIonsFTFP(), BuildBCHadronsFTFP_BERT(), BuildHyperonsFTFP_BERT(), BuildKaonsFTFP_BERT(), and BuildKaonsFTFQGSP_BERT().

◆ BuildFTFQGSP_BERT()

void G4HadronicBuilder::BuildFTFQGSP_BERT ( const std::vector< G4int > &  particleList,
G4bool  bert,
const G4String xsName 
)
staticprivate

Definition at line 103 of file G4HadronicBuilder.cc.

104 {
105
108
109 auto theModel = new G4TheoFSGenerator("FTFQGSP");
110 auto theStringModel = new G4FTFModel();
111 theStringModel->SetFragmentationModel(new G4ExcitedStringDecay( new G4QGSMFragmentation() ) );
112 theModel->SetHighEnergyGenerator( theStringModel );
113 theModel->SetTransport( new G4GeneratorPrecompoundInterface() );
114 theModel->SetMaxEnergy( param->GetMaxEnergy() );
115
116 G4CascadeInterface* theCascade = nullptr;
117 if(bert) {
118 theCascade = new G4CascadeInterface();
119 theCascade->SetMaxEnergy( param->GetMaxEnergyTransitionFTF_Cascade() );
120 theModel->SetMinEnergy( param->GetMinEnergyTransitionFTF_Cascade() );
121 }
122
123 auto xsinel = G4HadProcesses::InelasticXS( xsName );
124
126 for( auto & pdg : partList ) {
127
128 auto part = table->FindParticle( pdg );
129 if ( part == nullptr ) { continue; }
130
131 auto hadi = new G4HadronInelasticProcess( part->GetParticleName()+"Inelastic", part );
132 hadi->AddDataSet( xsinel );
133 hadi->RegisterMe( theModel );
134 if( theCascade != nullptr ) hadi->RegisterMe( theCascade );
135 if( param->ApplyFactorXS() ) hadi->MultiplyCrossSectionBy( param->XSFactorHadronInelastic() );
136 ph->RegisterProcess(hadi, part);
137 }
138}

References G4HadronicParameters::ApplyFactorXS(), G4ParticleTable::FindParticle(), G4HadronicParameters::GetMaxEnergy(), G4HadronicParameters::GetMaxEnergyTransitionFTF_Cascade(), G4HadronicParameters::GetMinEnergyTransitionFTF_Cascade(), G4ParticleTable::GetParticleTable(), G4PhysicsListHelper::GetPhysicsListHelper(), G4HadProcesses::InelasticXS(), G4HadronicParameters::Instance(), G4PhysicsListHelper::RegisterProcess(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicParameters::XSFactorHadronInelastic().

Referenced by BuildBCHadronsFTFQGSP_BERT(), and BuildHyperonsFTFQGSP_BERT().

◆ BuildHyperonsFTFP_BERT()

void G4HadronicBuilder::BuildHyperonsFTFP_BERT ( )
static

Definition at line 216 of file G4HadronicBuilder.cc.

216 {
217 // For hyperons, Bertini is used at low energies;
218 // for anti-hyperons, FTFP can be used down to zero kinetic energy.
219 BuildFTFP_BERT(G4HadParticles::GetHyperons(), true, "Glauber-Gribov");
220 BuildFTFP_BERT(G4HadParticles::GetAntiHyperons(), false, "Glauber-Gribov");
221}
static const std::vector< G4int > & GetAntiHyperons()
static const std::vector< G4int > & GetHyperons()

References BuildFTFP_BERT(), G4HadParticles::GetAntiHyperons(), and G4HadParticles::GetHyperons().

Referenced by G4HadronInelasticQBBC::ConstructProcess(), G4HadronPhysicsFTFP_BERT::Others(), and G4HadronPhysicsINCLXX::Others().

◆ BuildHyperonsFTFQGSP_BERT()

void G4HadronicBuilder::BuildHyperonsFTFQGSP_BERT ( )
static

Definition at line 223 of file G4HadronicBuilder.cc.

223 {
224 // For hyperons, Bertini is used at low energies;
225 // for anti-hyperons, FTFP can be used down to zero kinetic energy.
226 BuildFTFQGSP_BERT(G4HadParticles::GetHyperons(), true, "Glauber-Gribov");
227 BuildFTFQGSP_BERT(G4HadParticles::GetAntiHyperons(), false, "Glauber-Gribov");
228}

References BuildFTFQGSP_BERT(), G4HadParticles::GetAntiHyperons(), and G4HadParticles::GetHyperons().

Referenced by G4HadronPhysicsFTFQGSP_BERT::ConstructProcess().

◆ BuildHyperonsQGSP_FTFP_BERT()

void G4HadronicBuilder::BuildHyperonsQGSP_FTFP_BERT ( G4bool  quasiElastic)
static

Definition at line 230 of file G4HadronicBuilder.cc.

230 {
231 // For hyperons, Bertini is used at low energies;
232 // for anti-hyperons, FTFP can be used down to zero kinetic energy.
233 // QGSP is used at high energies in all cases.
234 BuildQGSP_FTFP_BERT(G4HadParticles::GetHyperons(), true, qElastic, "Glauber-Gribov");
235 BuildQGSP_FTFP_BERT(G4HadParticles::GetAntiHyperons(), false, qElastic, "Glauber-Gribov");
236}

References BuildQGSP_FTFP_BERT(), G4HadParticles::GetAntiHyperons(), and G4HadParticles::GetHyperons().

Referenced by G4HadronPhysicsQGSP_BERT::Others(), G4HadronPhysicsQGSP_BIC::Others(), and G4HadronPhysicsINCLXX::Others().

◆ BuildKaonsFTFP_BERT()

void G4HadronicBuilder::BuildKaonsFTFP_BERT ( )
static

Definition at line 238 of file G4HadronicBuilder.cc.

238 {
239 BuildFTFP_BERT(G4HadParticles::GetKaons(), true, "Glauber-Gribov");
240}
static const std::vector< G4int > & GetKaons()

References BuildFTFP_BERT(), and G4HadParticles::GetKaons().

Referenced by G4HadronInelasticQBBC::ConstructProcess().

◆ BuildKaonsFTFQGSP_BERT()

void G4HadronicBuilder::BuildKaonsFTFQGSP_BERT ( )
static

Definition at line 242 of file G4HadronicBuilder.cc.

242 {
243 BuildFTFP_BERT(G4HadParticles::GetKaons(), true, "Glauber-Gribov");
244}

References BuildFTFP_BERT(), and G4HadParticles::GetKaons().

Referenced by G4HadronPhysicsFTFQGSP_BERT::ConstructProcess().

◆ BuildKaonsQGSP_FTFP_BERT()

void G4HadronicBuilder::BuildKaonsQGSP_FTFP_BERT ( G4bool  quasiElastic)
static

Definition at line 246 of file G4HadronicBuilder.cc.

246 {
247 BuildQGSP_FTFP_BERT(G4HadParticles::GetKaons(), true, qElastic, "Glauber-Gribov");
248}

References BuildQGSP_FTFP_BERT(), and G4HadParticles::GetKaons().

◆ BuildQGSP_FTFP_BERT()

void G4HadronicBuilder::BuildQGSP_FTFP_BERT ( const std::vector< G4int > &  particleList,
G4bool  bert,
G4bool  quasiElastic,
const G4String xsName 
)
staticprivate

Definition at line 140 of file G4HadronicBuilder.cc.

142 {
143
146
147 auto theTransport = new G4GeneratorPrecompoundInterface();
148
149 auto theHEModel = new G4TheoFSGenerator("QGSP");
152 theHEModel->SetTransport( theTransport );
153 theHEModel->SetHighEnergyGenerator( theQGSModel );
154 if (quasiElastic) {
155 theHEModel->SetQuasiElasticChannel(new G4QuasiElasticChannel());
156 }
157 theHEModel->SetMinEnergy( param->GetMinEnergyTransitionQGS_FTF() );
158 theHEModel->SetMaxEnergy( param->GetMaxEnergy() );
159
160 auto theLEModel = new G4TheoFSGenerator("FTFP");
161 auto theFTFModel = new G4FTFModel();
162 theFTFModel->SetFragmentationModel(new G4ExcitedStringDecay());
163 theLEModel->SetHighEnergyGenerator( theFTFModel );
164 theLEModel->SetTransport( theTransport );
165 theLEModel->SetMaxEnergy( param->GetMaxEnergyTransitionQGS_FTF() );
166
167 G4CascadeInterface* theCascade = nullptr;
168 if(bert) {
169 theCascade = new G4CascadeInterface();
170 theCascade->SetMaxEnergy( param->GetMaxEnergyTransitionFTF_Cascade() );
171 theLEModel->SetMinEnergy( param->GetMinEnergyTransitionFTF_Cascade() );
172 }
173
174 auto xsinel = G4HadProcesses::InelasticXS( xsName );
175
177 for( auto & pdg : partList ) {
178
179 auto part = table->FindParticle( pdg );
180 if ( part == nullptr ) { continue; }
181
182 auto hadi = new G4HadronInelasticProcess( part->GetParticleName()+"Inelastic", part );
183 hadi->AddDataSet( xsinel );
184 hadi->RegisterMe( theHEModel );
185 hadi->RegisterMe( theLEModel );
186 if(theCascade != nullptr) hadi->RegisterMe( theCascade );
187 if( param->ApplyFactorXS() ) hadi->MultiplyCrossSectionBy( param->XSFactorHadronInelastic() );
188 ph->RegisterProcess(hadi, part);
189 }
190}
G4double GetMinEnergyTransitionQGS_FTF() const
G4double GetMaxEnergyTransitionQGS_FTF() const
void SetFragmentationModel(G4VStringFragmentation *aModel)

References G4HadronicParameters::ApplyFactorXS(), G4ParticleTable::FindParticle(), G4HadronicParameters::GetMaxEnergy(), G4HadronicParameters::GetMaxEnergyTransitionFTF_Cascade(), G4HadronicParameters::GetMaxEnergyTransitionQGS_FTF(), G4HadronicParameters::GetMinEnergyTransitionFTF_Cascade(), G4HadronicParameters::GetMinEnergyTransitionQGS_FTF(), G4ParticleTable::GetParticleTable(), G4PhysicsListHelper::GetPhysicsListHelper(), G4HadProcesses::InelasticXS(), G4HadronicParameters::Instance(), G4PhysicsListHelper::RegisterProcess(), G4VPartonStringModel::SetFragmentationModel(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicParameters::XSFactorHadronInelastic().

Referenced by BuildBCHadronsQGSP_FTFP_BERT(), BuildHyperonsQGSP_FTFP_BERT(), and BuildKaonsQGSP_FTFP_BERT().


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