source: trunk/source/physics_lists/builders/src/G4MiscLHEPBuilder.cc@ 989

Last change on this file since 989 was 988, checked in by garnier, 17 years ago

fichiers manquants

File size: 8.9 KB
Line 
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// GEANT4 tag $Name: geant4-09-02-ref-02 $
27//
28//---------------------------------------------------------------------------
29//
30// ClassName: G4MiscLHEPBuilder
31//
32// Author: 2002 J.P. Wellisch
33//
34// Modified:
35// 16.11.2005 G.Folger: don't keep processes as data members, but new these
36// 13.06.2006 G.Folger: (re)move elastic scatterring
37//
38//----------------------------------------------------------------------------
39//
40#include "G4MiscLHEPBuilder.hh"
41
42#include "G4ParticleDefinition.hh"
43#include "G4ParticleTable.hh"
44#include "G4ProcessManager.hh"
45
46G4MiscLHEPBuilder::G4MiscLHEPBuilder(): wasActivated(false) {}
47G4MiscLHEPBuilder::~G4MiscLHEPBuilder()
48{
49}
50
51void G4MiscLHEPBuilder::Build()
52{
53 G4ProcessManager * aProcMan = 0;
54 wasActivated = true;
55
56 // anti-Proton
57 theAntiProtonInelastic = new G4AntiProtonInelasticProcess();
58 aProcMan = G4AntiProton::AntiProton()->GetProcessManager();
59 theLEAntiProtonModel = new G4LEAntiProtonInelastic();
60 theHEAntiProtonModel = new G4HEAntiProtonInelastic();
61 theHEAntiProtonModel->SetMaxEnergy(100*TeV);
62 theAntiProtonInelastic->RegisterMe(theLEAntiProtonModel);
63 theAntiProtonInelastic->RegisterMe(theHEAntiProtonModel);
64 aProcMan->AddDiscreteProcess(theAntiProtonInelastic);
65
66 // AntiNeutron
67 theAntiNeutronInelastic = new G4AntiNeutronInelasticProcess();
68 aProcMan = G4AntiNeutron::AntiNeutron()->GetProcessManager();
69 theLEAntiNeutronModel = new G4LEAntiNeutronInelastic();
70 theHEAntiNeutronModel = new G4HEAntiNeutronInelastic();
71 theHEAntiNeutronModel->SetMaxEnergy(100*TeV);
72 theAntiNeutronInelastic->RegisterMe(theLEAntiNeutronModel);
73 theAntiNeutronInelastic->RegisterMe(theHEAntiNeutronModel);
74 aProcMan->AddDiscreteProcess(theAntiNeutronInelastic);
75
76 // Lambda
77 theLambdaInelastic = new G4LambdaInelasticProcess();
78 aProcMan = G4Lambda::Lambda()->GetProcessManager();
79 theLELambdaModel = new G4LELambdaInelastic();
80 theHELambdaModel = new G4HELambdaInelastic();
81 theHELambdaModel->SetMaxEnergy(100*TeV);
82 theLambdaInelastic->RegisterMe(theLELambdaModel);
83 theLambdaInelastic->RegisterMe(theHELambdaModel);
84 aProcMan->AddDiscreteProcess(theLambdaInelastic);
85
86 // AntiLambda
87 theAntiLambdaInelastic = new G4AntiLambdaInelasticProcess();
88 aProcMan = G4AntiLambda::AntiLambda()->GetProcessManager();
89 theLEAntiLambdaModel = new G4LEAntiLambdaInelastic();
90 theHEAntiLambdaModel = new G4HEAntiLambdaInelastic();
91 theHEAntiLambdaModel->SetMaxEnergy(100*TeV);
92 theAntiLambdaInelastic->RegisterMe(theLEAntiLambdaModel);
93 theAntiLambdaInelastic->RegisterMe(theHEAntiLambdaModel);
94 aProcMan->AddDiscreteProcess(theAntiLambdaInelastic);
95
96 // SigmaMinus
97 theSigmaMinusInelastic = new G4SigmaMinusInelasticProcess();
98 aProcMan = G4SigmaMinus::SigmaMinus()->GetProcessManager();
99 theLESigmaMinusModel = new G4LESigmaMinusInelastic();
100 theHESigmaMinusModel = new G4HESigmaMinusInelastic();
101 theHESigmaMinusModel->SetMaxEnergy(100*TeV);
102 theSigmaMinusInelastic->RegisterMe(theLESigmaMinusModel);
103 theSigmaMinusInelastic->RegisterMe(theHESigmaMinusModel);
104 aProcMan->AddDiscreteProcess(theSigmaMinusInelastic);
105
106 // anti-SigmaMinus
107 theAntiSigmaMinusInelastic = new G4AntiSigmaMinusInelasticProcess();
108 aProcMan = G4AntiSigmaMinus::AntiSigmaMinus()->GetProcessManager();
109 theLEAntiSigmaMinusModel = new G4LEAntiSigmaMinusInelastic();
110 theHEAntiSigmaMinusModel = new G4HEAntiSigmaMinusInelastic();
111 theHEAntiSigmaMinusModel->SetMaxEnergy(100*TeV);
112 theAntiSigmaMinusInelastic->RegisterMe(theLEAntiSigmaMinusModel);
113 theAntiSigmaMinusInelastic->RegisterMe(theHEAntiSigmaMinusModel);
114 aProcMan->AddDiscreteProcess(theAntiSigmaMinusInelastic);
115
116 // SigmaPlus
117 theSigmaPlusInelastic = new G4SigmaPlusInelasticProcess();
118 aProcMan = G4SigmaPlus::SigmaPlus()->GetProcessManager();
119 theLESigmaPlusModel = new G4LESigmaPlusInelastic();
120 theHESigmaPlusModel = new G4HESigmaPlusInelastic();
121 theHESigmaPlusModel->SetMaxEnergy(100*TeV);
122 theSigmaPlusInelastic->RegisterMe(theLESigmaPlusModel);
123 theSigmaPlusInelastic->RegisterMe(theHESigmaPlusModel);
124 aProcMan->AddDiscreteProcess(theSigmaPlusInelastic);
125
126 // anti-SigmaPlus
127 theAntiSigmaPlusInelastic = new G4AntiSigmaPlusInelasticProcess();
128 aProcMan = G4AntiSigmaPlus::AntiSigmaPlus()->GetProcessManager();
129 theLEAntiSigmaPlusModel = new G4LEAntiSigmaPlusInelastic();
130 theHEAntiSigmaPlusModel = new G4HEAntiSigmaPlusInelastic();
131 theHEAntiSigmaPlusModel->SetMaxEnergy(100*TeV);
132 theAntiSigmaPlusInelastic->RegisterMe(theLEAntiSigmaPlusModel);
133 theAntiSigmaPlusInelastic->RegisterMe(theHEAntiSigmaPlusModel);
134 aProcMan->AddDiscreteProcess(theAntiSigmaPlusInelastic);
135
136 // XiMinus
137 theXiMinusInelastic = new G4XiMinusInelasticProcess();
138 aProcMan = G4XiMinus::XiMinus()->GetProcessManager();
139 theLEXiMinusModel = new G4LEXiMinusInelastic();
140 theHEXiMinusModel = new G4HEXiMinusInelastic();
141 theHEXiMinusModel->SetMaxEnergy(100*TeV);
142 theXiMinusInelastic->RegisterMe(theLEXiMinusModel);
143 theXiMinusInelastic->RegisterMe(theHEXiMinusModel);
144 aProcMan->AddDiscreteProcess(theXiMinusInelastic);
145
146 // anti-XiMinus
147 theAntiXiMinusInelastic = new G4AntiXiMinusInelasticProcess();
148 aProcMan = G4AntiXiMinus::AntiXiMinus()->GetProcessManager();
149 theLEAntiXiMinusModel = new G4LEAntiXiMinusInelastic();
150 theHEAntiXiMinusModel = new G4HEAntiXiMinusInelastic();
151 theHEAntiXiMinusModel->SetMaxEnergy(100*TeV);
152 theAntiXiMinusInelastic->RegisterMe(theLEAntiXiMinusModel);
153 theAntiXiMinusInelastic->RegisterMe(theHEAntiXiMinusModel);
154 aProcMan->AddDiscreteProcess(theAntiXiMinusInelastic);
155
156 // XiZero
157 theXiZeroInelastic = new G4XiZeroInelasticProcess();
158 aProcMan = G4XiZero::XiZero()->GetProcessManager();
159 theLEXiZeroModel = new G4LEXiZeroInelastic();
160 theHEXiZeroModel = new G4HEXiZeroInelastic();
161 theHEXiZeroModel->SetMaxEnergy(100*TeV);
162 theXiZeroInelastic->RegisterMe(theLEXiZeroModel);
163 theXiZeroInelastic->RegisterMe(theHEXiZeroModel);
164 aProcMan->AddDiscreteProcess(theXiZeroInelastic);
165
166 // anti-XiZero
167 theAntiXiZeroInelastic = new G4AntiXiZeroInelasticProcess();
168 aProcMan = G4AntiXiZero::AntiXiZero()->GetProcessManager();
169 theLEAntiXiZeroModel = new G4LEAntiXiZeroInelastic();
170 theHEAntiXiZeroModel = new G4HEAntiXiZeroInelastic();
171 theHEAntiXiZeroModel->SetMaxEnergy(100*TeV);
172 theAntiXiZeroInelastic->RegisterMe(theLEAntiXiZeroModel);
173 theAntiXiZeroInelastic->RegisterMe(theHEAntiXiZeroModel);
174 aProcMan->AddDiscreteProcess(theAntiXiZeroInelastic);
175
176 // OmegaMinus
177 theOmegaMinusInelastic = new G4OmegaMinusInelasticProcess();
178 aProcMan = G4OmegaMinus::OmegaMinus()->GetProcessManager();
179 theLEOmegaMinusModel = new G4LEOmegaMinusInelastic();
180 theHEOmegaMinusModel = new G4HEOmegaMinusInelastic();
181 theHEOmegaMinusModel->SetMaxEnergy(100*TeV);
182 theOmegaMinusInelastic->RegisterMe(theLEOmegaMinusModel);
183 theOmegaMinusInelastic->RegisterMe(theHEOmegaMinusModel);
184 aProcMan->AddDiscreteProcess(theOmegaMinusInelastic);
185
186 // anti-OmegaMinus
187 theAntiOmegaMinusInelastic = new G4AntiOmegaMinusInelasticProcess();
188 aProcMan = G4AntiOmegaMinus::AntiOmegaMinus()->GetProcessManager();
189 theLEAntiOmegaMinusModel = new G4LEAntiOmegaMinusInelastic();
190 theHEAntiOmegaMinusModel = new G4HEAntiOmegaMinusInelastic();
191 theHEAntiOmegaMinusModel->SetMaxEnergy(100*TeV);
192 theAntiOmegaMinusInelastic->RegisterMe(theLEAntiOmegaMinusModel);
193 theAntiOmegaMinusInelastic->RegisterMe(theHEAntiOmegaMinusModel);
194 aProcMan->AddDiscreteProcess(theAntiOmegaMinusInelastic);
195}
196
197// 2002 by J.P. Wellisch
Note: See TracBrowser for help on using the repository browser.