Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronBuilder Class Reference

#include <G4HadronBuilder.hh>

Public Member Functions

G4ParticleDefinitionBuild (G4ParticleDefinition *black, G4ParticleDefinition *white)
 
G4ParticleDefinitionBuildLowSpin (G4ParticleDefinition *black, G4ParticleDefinition *white)
 
G4ParticleDefinitionBuildHighSpin (G4ParticleDefinition *black, G4ParticleDefinition *white)
 
 G4HadronBuilder (G4double mesonMix, G4double barionMix, std::vector< double > scalarMesonMix, std::vector< double > vectorMesonMix, G4double Eta_cProb, G4double Eta_bProb)
 

Detailed Description

Definition at line 45 of file G4HadronBuilder.hh.

Constructor & Destructor Documentation

◆ G4HadronBuilder()

G4HadronBuilder::G4HadronBuilder ( G4double  mesonMix,
G4double  barionMix,
std::vector< double >  scalarMesonMix,
std::vector< double >  vectorMesonMix,
G4double  Eta_cProb,
G4double  Eta_bProb 
)

Definition at line 45 of file G4HadronBuilder.cc.

49{
50 mesonSpinMix = mesonMix;
51 barionSpinMix = barionMix;
52 scalarMesonMixings = scalarMesonMix;
53 vectorMesonMixings = vectorMesonMix;
54
55 ProbEta_c = Eta_cProb;
56 ProbEta_b = Eta_bProb;
57}

Referenced by G4HadronBuilder().

Member Function Documentation

◆ Build()

G4ParticleDefinition * G4HadronBuilder::Build ( G4ParticleDefinition black,
G4ParticleDefinition white 
)

Definition at line 59 of file G4HadronBuilder.cc.

60{
61 if (black->GetParticleSubType()== "di_quark" || white->GetParticleSubType()== "di_quark" ) {
62 // Barion
63 Spin spin = (G4UniformRand() < barionSpinMix) ? SpinHalf : SpinThreeHalf;
64 return Barion(black,white,spin);
65 } else {
66 // Meson
67 Spin spin = (G4UniformRand() < mesonSpinMix) ? SpinZero : SpinOne;
68 return Meson(black,white,spin);
69 }
70}
#define G4UniformRand()
Definition: Randomize.hh:52
const G4String & GetParticleSubType() const

Referenced by G4VLongitudinalStringDecay::PossibleHadronMass(), and G4VLongitudinalStringDecay::QuarkSplitup().

◆ BuildHighSpin()

G4ParticleDefinition * G4HadronBuilder::BuildHighSpin ( G4ParticleDefinition black,
G4ParticleDefinition white 
)

Definition at line 86 of file G4HadronBuilder.cc.

87{
88 if ( black->GetParticleSubType()== "quark" && white->GetParticleSubType()== "quark" ) {
89 return Meson(black,white, SpinOne);
90 } else {
91 return Barion(black,white,SpinThreeHalf);
92 }
93}

◆ BuildLowSpin()

G4ParticleDefinition * G4HadronBuilder::BuildLowSpin ( G4ParticleDefinition black,
G4ParticleDefinition white 
)

Definition at line 74 of file G4HadronBuilder.cc.

75{
76 if ( black->GetParticleSubType()== "quark" && white->GetParticleSubType()== "quark" ) {
77 return Meson(black,white, SpinZero);
78 } else {
79 // will return a SpinThreeHalf Barion if all quarks the same
80 return Barion(black,white, SpinHalf);
81 }
82}

Referenced by G4VLongitudinalStringDecay::PossibleHadronMass().


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