CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
G4MiscLHEPBuilder_WP.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 // GEANT4 tag $Name: V04-05-01 $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4MiscLHEPBuilder_WP
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 //
42 
43 #include "G4ParticleDefinition.hh"
44 #include "G4ParticleTable.hh"
45 #include "G4ProcessManager.hh"
46 
48 
49 using namespace CLHEP;
50 
52 {
53  theWrappedAntiProtonInelastic=new GflashHadronWrapperProcess("G4AntiProtonInelasticProcess");
54 }
56 {
57  // delete theWrappedAntiProtonInelastic;
58 }
59 
61 {
62  G4ProcessManager * aProcMan = 0;
63  wasActivated = true;
64 
65  // anti-Proton
66  aProcMan = G4AntiProton::AntiProton()->GetProcessManager();
67  theLEAntiProtonModel = new G4LEAntiProtonInelastic();
68  theHEAntiProtonModel = new G4HEAntiProtonInelastic();
69  theHEAntiProtonModel->SetMaxEnergy(100*TeV);
72  // aProcMan->AddDiscreteProcess(&theAntiProtonInelastic);
73  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4AntiProtonInelasticProcess" ;
75  aProcMan->AddDiscreteProcess(theWrappedAntiProtonInelastic);
76 
77  // AntiNeutron
78  aProcMan = G4AntiNeutron::AntiNeutron()->GetProcessManager();
79  theLEAntiNeutronModel = new G4LEAntiNeutronInelastic();
80  theHEAntiNeutronModel = new G4HEAntiNeutronInelastic();
81  theHEAntiNeutronModel->SetMaxEnergy(100*TeV);
84  aProcMan->AddDiscreteProcess(&theAntiNeutronInelastic);
85 
86  // Lambda
87  aProcMan = G4Lambda::Lambda()->GetProcessManager();
88  theLELambdaModel = new G4LELambdaInelastic();
89  theHELambdaModel = new G4HELambdaInelastic();
90  theHELambdaModel->SetMaxEnergy(100*TeV);
93  aProcMan->AddDiscreteProcess(&theLambdaInelastic);
94 
95  // AntiLambda
96  aProcMan = G4AntiLambda::AntiLambda()->GetProcessManager();
97  theLEAntiLambdaModel = new G4LEAntiLambdaInelastic();
98  theHEAntiLambdaModel = new G4HEAntiLambdaInelastic();
99  theHEAntiLambdaModel->SetMaxEnergy(100*TeV);
102  aProcMan->AddDiscreteProcess(&theAntiLambdaInelastic);
103 
104  // SigmaMinus
105  aProcMan = G4SigmaMinus::SigmaMinus()->GetProcessManager();
106  theLESigmaMinusModel = new G4LESigmaMinusInelastic();
107  theHESigmaMinusModel = new G4HESigmaMinusInelastic();
108  theHESigmaMinusModel->SetMaxEnergy(100*TeV);
111  aProcMan->AddDiscreteProcess(&theSigmaMinusInelastic);
112 
113  // anti-SigmaMinus
114  aProcMan = G4AntiSigmaMinus::AntiSigmaMinus()->GetProcessManager();
115  theLEAntiSigmaMinusModel = new G4LEAntiSigmaMinusInelastic();
116  theHEAntiSigmaMinusModel = new G4HEAntiSigmaMinusInelastic();
117  theHEAntiSigmaMinusModel->SetMaxEnergy(100*TeV);
120  aProcMan->AddDiscreteProcess(&theAntiSigmaMinusInelastic);
121 
122  // SigmaPlus
123  aProcMan = G4SigmaPlus::SigmaPlus()->GetProcessManager();
124  theLESigmaPlusModel = new G4LESigmaPlusInelastic();
125  theHESigmaPlusModel = new G4HESigmaPlusInelastic();
126  theHESigmaPlusModel->SetMaxEnergy(100*TeV);
129  aProcMan->AddDiscreteProcess(&theSigmaPlusInelastic);
130 
131  // anti-SigmaPlus
132  aProcMan = G4AntiSigmaPlus::AntiSigmaPlus()->GetProcessManager();
133  theLEAntiSigmaPlusModel = new G4LEAntiSigmaPlusInelastic();
134  theHEAntiSigmaPlusModel = new G4HEAntiSigmaPlusInelastic();
135  theHEAntiSigmaPlusModel->SetMaxEnergy(100*TeV);
138  aProcMan->AddDiscreteProcess(&theAntiSigmaPlusInelastic);
139 
140  // XiMinus
141  aProcMan = G4XiMinus::XiMinus()->GetProcessManager();
142  theLEXiMinusModel = new G4LEXiMinusInelastic();
143  theHEXiMinusModel = new G4HEXiMinusInelastic();
144  theHEXiMinusModel->SetMaxEnergy(100*TeV);
147  aProcMan->AddDiscreteProcess(&theXiMinusInelastic);
148 
149  // anti-XiMinus
150  aProcMan = G4AntiXiMinus::AntiXiMinus()->GetProcessManager();
151  theLEAntiXiMinusModel = new G4LEAntiXiMinusInelastic();
152  theHEAntiXiMinusModel = new G4HEAntiXiMinusInelastic();
153  theHEAntiXiMinusModel->SetMaxEnergy(100*TeV);
156  aProcMan->AddDiscreteProcess(&theAntiXiMinusInelastic);
157 
158  // XiZero
159  aProcMan = G4XiZero::XiZero()->GetProcessManager();
160  theLEXiZeroModel = new G4LEXiZeroInelastic();
161  theHEXiZeroModel = new G4HEXiZeroInelastic();
162  theHEXiZeroModel->SetMaxEnergy(100*TeV);
165  aProcMan->AddDiscreteProcess(&theXiZeroInelastic);
166 
167  // anti-XiZero
168  aProcMan = G4AntiXiZero::AntiXiZero()->GetProcessManager();
169  theLEAntiXiZeroModel = new G4LEAntiXiZeroInelastic();
170  theHEAntiXiZeroModel = new G4HEAntiXiZeroInelastic();
171  theHEAntiXiZeroModel->SetMaxEnergy(100*TeV);
174  aProcMan->AddDiscreteProcess(&theAntiXiZeroInelastic);
175 
176  // OmegaMinus
177  aProcMan = G4OmegaMinus::OmegaMinus()->GetProcessManager();
178  theLEOmegaMinusModel = new G4LEOmegaMinusInelastic();
179  theHEOmegaMinusModel = new G4HEOmegaMinusInelastic();
180  theHEOmegaMinusModel->SetMaxEnergy(100*TeV);
183  aProcMan->AddDiscreteProcess(&theOmegaMinusInelastic);
184 
185  // anti-OmegaMinus
186  aProcMan = G4AntiOmegaMinus::AntiOmegaMinus()->GetProcessManager();
187  theLEAntiOmegaMinusModel = new G4LEAntiOmegaMinusInelastic();
188  theHEAntiOmegaMinusModel = new G4HEAntiOmegaMinusInelastic();
189  theHEAntiOmegaMinusModel->SetMaxEnergy(100*TeV);
192  aProcMan->AddDiscreteProcess(&theAntiOmegaMinusInelastic);
193 }
194 
195 // 2002 by J.P. Wellisch
G4LEAntiXiZeroInelastic * theLEAntiXiZeroModel
G4OmegaMinusInelasticProcess theOmegaMinusInelastic
G4AntiProtonInelasticProcess theAntiProtonInelastic
G4HEAntiSigmaMinusInelastic * theHEAntiSigmaMinusModel
G4LEOmegaMinusInelastic * theLEOmegaMinusModel
G4LEXiZeroInelastic * theLEXiZeroModel
G4SigmaPlusInelasticProcess theSigmaPlusInelastic
G4HEAntiNeutronInelastic * theHEAntiNeutronModel
GflashHadronWrapperProcess * theWrappedAntiProtonInelastic
G4LEAntiNeutronInelastic * theLEAntiNeutronModel
G4HEXiMinusInelastic * theHEXiMinusModel
G4XiZeroInelasticProcess theXiZeroInelastic
G4LELambdaInelastic * theLELambdaModel
G4LambdaInelasticProcess theLambdaInelastic
G4LESigmaPlusInelastic * theLESigmaPlusModel
G4AntiSigmaPlusInelasticProcess theAntiSigmaPlusInelastic
G4HEAntiLambdaInelastic * theHEAntiLambdaModel
G4HEXiZeroInelastic * theHEXiZeroModel
G4LEAntiSigmaPlusInelastic * theLEAntiSigmaPlusModel
G4LESigmaMinusInelastic * theLESigmaMinusModel
G4HEAntiOmegaMinusInelastic * theHEAntiOmegaMinusModel
G4SigmaMinusInelasticProcess theSigmaMinusInelastic
G4AntiXiZeroInelasticProcess theAntiXiZeroInelastic
G4HEAntiXiZeroInelastic * theHEAntiXiZeroModel
G4HEAntiProtonInelastic * theHEAntiProtonModel
G4HELambdaInelastic * theHELambdaModel
G4HEAntiSigmaPlusInelastic * theHEAntiSigmaPlusModel
G4AntiXiMinusInelasticProcess theAntiXiMinusInelastic
G4AntiOmegaMinusInelasticProcess theAntiOmegaMinusInelastic
G4HESigmaPlusInelastic * theHESigmaPlusModel
G4AntiSigmaMinusInelasticProcess theAntiSigmaMinusInelastic
G4AntiNeutronInelasticProcess theAntiNeutronInelastic
G4XiMinusInelasticProcess theXiMinusInelastic
volatile std::atomic< bool > shutdown_flag false
G4HESigmaMinusInelastic * theHESigmaMinusModel
G4HEAntiXiMinusInelastic * theHEAntiXiMinusModel
G4LEAntiXiMinusInelastic * theLEAntiXiMinusModel
G4LEAntiProtonInelastic * theLEAntiProtonModel
G4LEAntiOmegaMinusInelastic * theLEAntiOmegaMinusModel
G4AntiLambdaInelasticProcess theAntiLambdaInelastic
G4LEXiMinusInelastic * theLEXiMinusModel
G4HEOmegaMinusInelastic * theHEOmegaMinusModel
G4LEAntiSigmaMinusInelastic * theLEAntiSigmaMinusModel
G4LEAntiLambdaInelastic * theLEAntiLambdaModel