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)


Detailed Description

Definition at line 46 of file G4HadronBuilder.hh.


Constructor & Destructor Documentation

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

Definition at line 43 of file G4HadronBuilder.cc.

References G4HadronBuilder().

Referenced by G4HadronBuilder().

00046 {
00047         mesonSpinMix=mesonMix;       
00048         barionSpinMix=barionMix;
00049         scalarMesonMixings=scalarMesonMix;
00050         vectorMesonMixings=vectorMesonMix;
00051 }


Member Function Documentation

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

Definition at line 53 of file G4HadronBuilder.cc.

References G4UniformRand, and G4ParticleDefinition::GetParticleSubType().

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

00054 {
00055 
00056         if (black->GetParticleSubType()== "di_quark" || white->GetParticleSubType()== "di_quark" ) {
00057 
00058 //    Barion
00059            Spin spin = (G4UniformRand() < barionSpinMix) ? SpinHalf : SpinThreeHalf;
00060            return Barion(black,white,spin);
00061 
00062         } else {        
00063 
00064 //    Meson
00065            Spin spin = (G4UniformRand() < mesonSpinMix) ? SpinZero : SpinOne;
00066            return Meson(black,white,spin);
00067 
00068         }
00069 }

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

Definition at line 85 of file G4HadronBuilder.cc.

References G4ParticleDefinition::GetParticleSubType().

00086 {
00087         if ( black->GetParticleSubType()== "quark" && white->GetParticleSubType()== "quark" ) {
00088                 return Meson(black,white, SpinOne);
00089         } else {
00090                 return Barion(black,white,SpinThreeHalf);
00091         }
00092 }

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

Definition at line 73 of file G4HadronBuilder.cc.

References G4ParticleDefinition::GetParticleSubType().

Referenced by G4VLongitudinalStringDecay::FragmentationMass().

00074 {
00075         if ( black->GetParticleSubType()== "quark" && white->GetParticleSubType()== "quark" ) {
00076                 return Meson(black,white, SpinZero);
00077         } else {
00078 //                    will return a SpinThreeHalf Barion if all quarks the same
00079                 return Barion(black,white, SpinHalf); 
00080         }       
00081 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:07 2013 for Geant4 by  doxygen 1.4.7