Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HadronPhysicsQGSP_BERT_NOLEP.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 // $Id$
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: HadronPhysicsQGSP_BERT_NOLEP
31 //
32 // Author: 2008 G.Folger
33 // created from HadronPhysicsQGSP_BERT
34 // Modified:
35 // 15.10.2005 G.Folger: first version
36 // 31.10.2012 A.Ribon: Use G4MiscBuilder
37 //
38 //----------------------------------------------------------------------------
39 //
40 #include <iomanip>
41 
43 
44 #include "globals.hh"
45 #include "G4ios.hh"
46 #include "G4SystemOfUnits.hh"
47 #include "G4ParticleDefinition.hh"
48 #include "G4ParticleTable.hh"
49 
50 #include "G4MesonConstructor.hh"
51 #include "G4BaryonConstructor.hh"
53 
54 // factory
56 //
58 
60  : G4VPhysicsConstructor("hInelastic QGSP_BERT_NOLEP")
61  , theNeutrons(0)
62  , theLEPNeutron(0)
63  , theQGSPNeutron(0)
64  , theBertiniNeutron(0)
65  , thePiK(0)
66  , theQGSPPiK(0)
67  , theBertiniPiK(0)
68  , thePro(0)
69  , theQGSPPro(0)
70  , theBertiniPro(0)
71  , theMisc(0)
72  , QuasiElastic(true)
73  , ProjectileDiffraction(false)
74 {
75 }
76 
78  : G4VPhysicsConstructor(name)
79  , theNeutrons(0)
80  , theLEPNeutron(0)
81  , theQGSPNeutron(0)
82  , theBertiniNeutron(0)
83  , thePiK(0)
84  , theQGSPPiK(0)
85  , theBertiniPiK(0)
86  , thePro(0)
87  , theQGSPPro(0)
88  , theBertiniPro(0)
89  , theMisc(0)
90  , QuasiElastic(quasiElastic)
91  , ProjectileDiffraction(false)
92 {
93 }
94 
95 void HadronPhysicsQGSP_BERT_NOLEP::CreateModels()
96 {
97  theNeutrons=new G4NeutronBuilder;
98  theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction));
99  theQGSPNeutron->SetMinEnergy(8.5*GeV);
100  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
101 // do not use LEP for inelastic, but leave capture, etc.
102  theLEPNeutron->SetMinInelasticEnergy(0.*eV);
103  theLEPNeutron->SetMaxInelasticEnergy(0.*eV);
104 
105  theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
106  theBertiniNeutron->SetMinEnergy(0.0*GeV);
107  theBertiniNeutron->SetMaxEnergy(9.9*GeV);
108 
109  thePro=new G4ProtonBuilder;
110  thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic, ProjectileDiffraction));
111  theQGSPPro->SetMinEnergy(8.5*GeV);
112 
113  thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
114  theBertiniPro->SetMaxEnergy(9.9*GeV);
115 
116  thePiK=new G4PiKBuilder;
117  thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
118  theQGSPPiK->SetMinEnergy(8.5*GeV);
119 
120  thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
121  theBertiniPiK->SetMaxEnergy(9.9*GeV);
122 
123  theMisc=new G4MiscBuilder;
124 }
125 
127 {
128  delete theMisc;
129  delete theQGSPNeutron;
130  delete theLEPNeutron;
131  delete theBertiniNeutron;
132  delete theQGSPPro;
133  delete thePro;
134  delete theBertiniPro;
135  delete theQGSPPiK;
136  delete theBertiniPiK;
137  delete thePiK;
138 }
139 
141 {
142  G4MesonConstructor pMesonConstructor;
143  pMesonConstructor.ConstructParticle();
144 
145  G4BaryonConstructor pBaryonConstructor;
146  pBaryonConstructor.ConstructParticle();
147 
148  G4ShortLivedConstructor pShortLivedConstructor;
149  pShortLivedConstructor.ConstructParticle();
150 }
151 
152 #include "G4ProcessManager.hh"
154 {
155  CreateModels();
156  theNeutrons->Build();
157  thePro->Build();
158  thePiK->Build();
159  theMisc->Build();
160 }
161