Geant4  10.01.p03
G4HyperonFTFPBuilder.cc
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 //---------------------------------------------------------------------------
28 //
29 // ClassName: G4HyperonFTFPBuilder
30 //
31 // Author: 2012 G.Folger
32 // Implementation started from G4HyperonLHEPBuilder.
33 //
34 // Modified:
35 //----------------------------------------------------------------------------
36 //
37 #include "G4HyperonFTFPBuilder.hh"
38 
39 #include "G4SystemOfUnits.hh"
40 #include "G4ParticleDefinition.hh"
41 #include "G4ParticleTable.hh"
42 #include "G4ProcessManager.hh"
44 
45 
47  theLambdaInelastic(0),
48  theAntiLambdaInelastic(0),
49  theSigmaMinusInelastic(0),
50  theAntiSigmaMinusInelastic(0),
51  theSigmaPlusInelastic(0),
52  theAntiSigmaPlusInelastic(0),
53  theXiZeroInelastic(0),
54  theAntiXiZeroInelastic(0),
55  theXiMinusInelastic(0),
56  theAntiXiMinusInelastic(0),
57  theOmegaMinusInelastic(0),
58  theAntiOmegaMinusInelastic(0),
59  wasActivated(false)
60 {
61 
62 // Hyperon : Bertini at low energies, then FTFP
63 
64  HyperonFTFP = new G4TheoFSGenerator("FTFP");
65 
67  HyperonFTFP->SetMaxEnergy( 100.*TeV );
68 
72 
74 
77 
81 
82 // AntiHyperons: Use FTFP for full energy range, starting at 0.
83 
84  AntiHyperonFTFP = new G4TheoFSGenerator("FTFP");
89 
90 // use CHIPS cross sections
92 }
93 
94 
96 {
97  //delete HyperonFTFP;
98  delete theStringModel;
99  delete theStringDecay;
100  //delete AntiHyperonFTFP;
101  /*
102  if (wasActivated) {
103  delete theLambdaInelastic;
104  delete theAntiLambdaInelastic;
105  delete theSigmaMinusInelastic;
106  delete theAntiSigmaMinusInelastic;
107  delete theSigmaPlusInelastic;
108  delete theAntiSigmaPlusInelastic;
109  delete theXiMinusInelastic;
110  delete theAntiXiMinusInelastic;
111  delete theXiZeroInelastic;
112  delete theAntiXiZeroInelastic;
113  delete theOmegaMinusInelastic;
114  delete theAntiOmegaMinusInelastic;
115  }
116  */
117 }
118 
120 {
121  G4ProcessManager * aProcMan = 0;
122  wasActivated = true;
123 
124  // Lambda
129  aProcMan = G4Lambda::Lambda()->GetProcessManager();
131 
132  // AntiLambda
136 
139 
140  // SigmaMinus
145 
148 
149  // anti-SigmaMinus
153 
156 
157  // SigmaPlus
162 
165 
166  // anti-SigmaPlus
170 
173 
174  // XiMinus
179 
180  aProcMan = G4XiMinus::XiMinus()->GetProcessManager();
182 
183  // anti-XiMinus
187 
190 
191  // XiZero
196 
197  aProcMan = G4XiZero::XiZero()->GetProcessManager();
199 
200  // anti-XiZero
204 
207 
208  // OmegaMinus
213 
216 
217  // anti-OmegaMinus
221 
224 }
225 
226 
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
G4GeneratorPrecompoundInterface * theCascade
G4XiMinusInelasticProcess * theXiMinusInelastic
G4AntiSigmaPlusInelasticProcess * theAntiSigmaPlusInelastic
G4SigmaMinusInelasticProcess * theSigmaMinusInelastic
static G4AntiOmegaMinus * AntiOmegaMinus()
void SetFragmentationModel(G4VStringFragmentation *aModel)
G4AntiSigmaMinusInelasticProcess * theAntiSigmaMinusInelastic
static G4OmegaMinus * OmegaMinus()
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4AntiXiZeroInelasticProcess * theAntiXiZeroInelastic
G4XiZeroInelasticProcess * theXiZeroInelastic
static G4AntiSigmaPlus * AntiSigmaPlus()
G4ProcessManager * GetProcessManager() const
G4TheoFSGenerator * HyperonFTFP
G4AntiXiMinusInelasticProcess * theAntiXiMinusInelastic
void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
G4LundStringFragmentation * theLund
void RegisterMe(G4HadronicInteraction *a)
static G4AntiSigmaMinus * AntiSigmaMinus()
static G4XiZero * XiZero()
Definition: G4XiZero.cc:106
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4AntiOmegaMinusInelasticProcess * theAntiOmegaMinusInelastic
G4SigmaPlusInelasticProcess * theSigmaPlusInelastic
static G4XiMinus * XiMinus()
Definition: G4XiMinus.cc:106
static G4AntiXiMinus * AntiXiMinus()
static G4CrossSectionDataSetRegistry * Instance()
static const double GeV
Definition: G4SIunits.hh:196
static G4SigmaMinus * SigmaMinus()
G4OmegaMinusInelasticProcess * theOmegaMinusInelastic
G4TheoFSGenerator * AntiHyperonFTFP
static G4AntiLambda * AntiLambda()
G4AntiLambdaInelasticProcess * theAntiLambdaInelastic
void SetMaxEnergy(const G4double anEnergy)
G4LambdaInelasticProcess * theLambdaInelastic
static G4AntiXiZero * AntiXiZero()
G4ExcitedStringDecay * theStringDecay
void SetTransport(G4VIntraNuclearTransportModel *const value)
static const double TeV
Definition: G4SIunits.hh:197
G4CascadeInterface * theBertini
static G4SigmaPlus * SigmaPlus()
Definition: G4SigmaPlus.cc:108
static G4Lambda * Lambda()
Definition: G4Lambda.cc:108
G4VCrossSectionDataSet * theCHIPSInelastic