Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HadronPhysicsFTF_BIC.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: HadronPhysicsFTF_BIC
31 //
32 // Author: 2007 Gunter Folger
33 //
34 // Modified:
35 //
36 //----------------------------------------------------------------------------
37 //
38 #include <iomanip>
39 
40 #include "HadronPhysicsFTF_BIC.hh"
41 
42 #include "globals.hh"
43 #include "G4ios.hh"
44 #include "G4SystemOfUnits.hh"
45 #include "G4ParticleDefinition.hh"
46 #include "G4ParticleTable.hh"
47 
48 #include "G4MesonConstructor.hh"
49 #include "G4BaryonConstructor.hh"
51 
52 // factory
54 //
56 
58  : G4VPhysicsConstructor("hInelastic FTF_BIC")
59  , theNeutrons(0)
60  , theLEPNeutron(0)
61  , theFTFBinaryNeutron(0)
62  , theBinaryNeutron(0)
63  , thePion(0)
64  , theKaon(0)
65  , theBICPion(0)
66  , theBertiniKaon(0)
67  , theFTFBinaryPion(0)
68  , theFTFBinaryKaon(0)
69  , thePro(0)
70  , theFTFBinaryPro(0)
71  , theBinaryPro(0)
72  , theHyperon(0)
73  , theAntiBaryon(0)
74  , theFTFPAntiBaryon(0)
75  , QuasiElastic(false)
76 {}
77 
79  : G4VPhysicsConstructor(name)
80  , theNeutrons(0)
81  , theLEPNeutron(0)
82  , theFTFBinaryNeutron(0)
83  , theBinaryNeutron(0)
84  , thePion(0)
85  , theKaon(0)
86  , theBICPion(0)
87  , theBertiniKaon(0)
88  , theFTFBinaryPion(0)
89  , theFTFBinaryKaon(0)
90  , thePro(0)
91  , theFTFBinaryPro(0)
92  , theBinaryPro(0)
93  , theHyperon(0)
94  , theAntiBaryon(0)
95  , theFTFPAntiBaryon(0)
96  , QuasiElastic(quasiElastic)
97 {}
98 
99 void HadronPhysicsFTF_BIC::CreateModels()
100 {
101  theNeutrons=new G4NeutronBuilder;
102 
103  theNeutrons->RegisterMe(theFTFBinaryNeutron=new G4FTFBinaryNeutronBuilder(QuasiElastic));
104  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
105  theLEPNeutron->SetMinInelasticEnergy(0.*eV);
106  theLEPNeutron->SetMaxInelasticEnergy(0.*eV);
107 
108  theNeutrons->RegisterMe(theBinaryNeutron=new G4BinaryNeutronBuilder);
109  theBinaryNeutron->SetMaxEnergy(5.0*GeV);
110 
111  thePro=new G4ProtonBuilder;
112  thePro->RegisterMe(theFTFBinaryPro=new G4FTFBinaryProtonBuilder(QuasiElastic));
113 
114  thePro->RegisterMe(theBinaryPro=new G4BinaryProtonBuilder);
115  theBinaryPro->SetMaxEnergy(5.0*GeV);
116 
117  thePion=new G4PionBuilder;
118  thePion->RegisterMe(theFTFBinaryPion=new G4FTFBinaryPionBuilder(QuasiElastic));
119  thePion->RegisterMe(theBICPion = new G4BinaryPionBuilder);
120  theBICPion->SetMaxEnergy(5*GeV); // use Binary up to 5GeV for pion
121 
122  theKaon=new G4KaonBuilder;
123  theKaon->RegisterMe(theFTFBinaryKaon=new G4FTFBinaryKaonBuilder(QuasiElastic));
124  theKaon->RegisterMe(theBertiniKaon=new G4BertiniKaonBuilder);
125  theBertiniKaon->SetMaxEnergy(5*GeV);
126 
127 
128  theHyperon=new G4HyperonFTFPBuilder;
129 
130  theAntiBaryon=new G4AntiBarionBuilder;
131  theAntiBaryon->RegisterMe(theFTFPAntiBaryon=new G4FTFPAntiBarionBuilder(QuasiElastic));
132 }
133 
135 {
136  delete theFTFBinaryNeutron;
137  delete theLEPNeutron;
138  delete theBinaryNeutron;
139  delete theNeutrons;
140 
141  delete theFTFBinaryPro;
142  delete theBinaryPro;
143  delete thePro;
144 
145  delete theFTFBinaryPion;
146  delete theBICPion;
147  delete thePion;
148 
149  delete theFTFBinaryKaon;
150  delete theBertiniKaon;
151  delete theKaon;
152 
153  delete theHyperon;
154  delete theAntiBaryon;
155  delete theFTFPAntiBaryon;
156 
157 }
158 
160 {
161  G4MesonConstructor pMesonConstructor;
162  pMesonConstructor.ConstructParticle();
163 
164  G4BaryonConstructor pBaryonConstructor;
165  pBaryonConstructor.ConstructParticle();
166 
167  G4ShortLivedConstructor pShortLivedConstructor;
168  pShortLivedConstructor.ConstructParticle();
169 }
170 
171 //#include "G4ProcessManager.hh"
172 #include "G4PhysListUtil.hh"
174 {
175  CreateModels();
176  theNeutrons->Build();
177  thePro->Build();
178  thePion->Build();
179  theKaon->Build();
180 
181  theHyperon->Build();
182  theAntiBaryon->Build();
183 }
184