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);
70  theAntiProtonInelastic.RegisterMe(theLEAntiProtonModel);
71  theAntiProtonInelastic.RegisterMe(theHEAntiProtonModel);
72  // aProcMan->AddDiscreteProcess(&theAntiProtonInelastic);
73  edm::LogInfo("SimG4CoreGFlash") << " Adding GflashHadronWrapperProcess (G4wrapperProcess) for G4AntiProtonInelasticProcess" ;
74  theWrappedAntiProtonInelastic->RegisterProcess(&theAntiProtonInelastic);
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);
82  theAntiNeutronInelastic.RegisterMe(theLEAntiNeutronModel);
83  theAntiNeutronInelastic.RegisterMe(theHEAntiNeutronModel);
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);
91  theLambdaInelastic.RegisterMe(theLELambdaModel);
92  theLambdaInelastic.RegisterMe(theHELambdaModel);
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);
100  theAntiLambdaInelastic.RegisterMe(theLEAntiLambdaModel);
101  theAntiLambdaInelastic.RegisterMe(theHEAntiLambdaModel);
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);
109  theSigmaMinusInelastic.RegisterMe(theLESigmaMinusModel);
110  theSigmaMinusInelastic.RegisterMe(theHESigmaMinusModel);
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);
118  theAntiSigmaMinusInelastic.RegisterMe(theLEAntiSigmaMinusModel);
119  theAntiSigmaMinusInelastic.RegisterMe(theHEAntiSigmaMinusModel);
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);
127  theSigmaPlusInelastic.RegisterMe(theLESigmaPlusModel);
128  theSigmaPlusInelastic.RegisterMe(theHESigmaPlusModel);
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);
136  theAntiSigmaPlusInelastic.RegisterMe(theLEAntiSigmaPlusModel);
137  theAntiSigmaPlusInelastic.RegisterMe(theHEAntiSigmaPlusModel);
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);
145  theXiMinusInelastic.RegisterMe(theLEXiMinusModel);
146  theXiMinusInelastic.RegisterMe(theHEXiMinusModel);
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);
154  theAntiXiMinusInelastic.RegisterMe(theLEAntiXiMinusModel);
155  theAntiXiMinusInelastic.RegisterMe(theHEAntiXiMinusModel);
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);
163  theXiZeroInelastic.RegisterMe(theLEXiZeroModel);
164  theXiZeroInelastic.RegisterMe(theHEXiZeroModel);
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);
172  theAntiXiZeroInelastic.RegisterMe(theLEAntiXiZeroModel);
173  theAntiXiZeroInelastic.RegisterMe(theHEAntiXiZeroModel);
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);
181  theOmegaMinusInelastic.RegisterMe(theLEOmegaMinusModel);
182  theOmegaMinusInelastic.RegisterMe(theHEOmegaMinusModel);
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);
190  theAntiOmegaMinusInelastic.RegisterMe(theLEAntiOmegaMinusModel);
191  theAntiOmegaMinusInelastic.RegisterMe(theHEAntiOmegaMinusModel);
192  aProcMan->AddDiscreteProcess(&theAntiOmegaMinusInelastic);
193  */
194 }
195 
196 // 2002 by J.P. Wellisch
GflashHadronWrapperProcess * theWrappedAntiProtonInelastic
volatile std::atomic< bool > shutdown_flag false