Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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.

46 {
47  mesonSpinMix=mesonMix;
48  barionSpinMix=barionMix;
49  scalarMesonMixings=scalarMesonMix;
50  vectorMesonMixings=vectorMesonMix;
51 }

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

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

Definition at line 53 of file G4HadronBuilder.cc.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 85 of file G4HadronBuilder.cc.

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

Here is the call graph for this function:

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

Definition at line 73 of file G4HadronBuilder.cc.

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

Here is the call graph for this function:

Here is the caller graph for this function:


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