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: HadronPhysicsQGSP_INCL_ABLA.cc,v 1.2 2010/06/03 10:42:44 gunter Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-04-beta-01 $ |
---|
28 | // |
---|
29 | //--------------------------------------------------------------------------- |
---|
30 | // |
---|
31 | // ClassName: HadronPhysicsQGSP_INCLABLA |
---|
32 | // |
---|
33 | // Author: 2002 J.P. Wellisch |
---|
34 | // |
---|
35 | // Modified: |
---|
36 | // 23.11.2005 G.Folger: migration to non static particles |
---|
37 | // 08.06.2006 V.Ivanchenko: remove stopping |
---|
38 | // 20.06.2006 G.Folger: InclAbla applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy |
---|
39 | // 25.04.2007 G.Folger: Add code for quasielastic |
---|
40 | // 10.12.2007 G.Folger: Add projectilediffrative option for proton/neutron, off by default |
---|
41 | // |
---|
42 | //---------------------------------------------------------------------------- |
---|
43 | // |
---|
44 | #include "HadronPhysicsQGSP_INCL_ABLA.hh" |
---|
45 | |
---|
46 | #include "globals.hh" |
---|
47 | #include "G4ios.hh" |
---|
48 | #include <iomanip> |
---|
49 | #include "G4ParticleDefinition.hh" |
---|
50 | #include "G4ParticleTable.hh" |
---|
51 | |
---|
52 | #include "G4MesonConstructor.hh" |
---|
53 | #include "G4BaryonConstructor.hh" |
---|
54 | #include "G4ShortLivedConstructor.hh" |
---|
55 | |
---|
56 | HadronPhysicsQGSP_INCL_ABLA::HadronPhysicsQGSP_INCL_ABLA(G4int) |
---|
57 | : G4VPhysicsConstructor("hInelastic QGSP_INCL_ABLA") |
---|
58 | , QuasiElastic(true) |
---|
59 | { |
---|
60 | ProjectileDiffraction=false; |
---|
61 | } |
---|
62 | |
---|
63 | HadronPhysicsQGSP_INCL_ABLA::HadronPhysicsQGSP_INCL_ABLA(const G4String& name, G4bool quasiElastic) |
---|
64 | : G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic) |
---|
65 | { |
---|
66 | ProjectileDiffraction=false; |
---|
67 | } |
---|
68 | |
---|
69 | void HadronPhysicsQGSP_INCL_ABLA::CreateModels() |
---|
70 | { |
---|
71 | theNeutrons=new G4NeutronBuilder; |
---|
72 | theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction)); |
---|
73 | theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder); |
---|
74 | theLEPNeutron->SetMinInelasticEnergy(9.5*GeV); |
---|
75 | theLEPNeutron->SetMaxInelasticEnergy(25*GeV); |
---|
76 | |
---|
77 | theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder); |
---|
78 | theBertiniNeutron->SetMinEnergy(2.9*GeV); |
---|
79 | theBertiniNeutron->SetMaxEnergy(9.9*GeV); |
---|
80 | |
---|
81 | theNeutrons->RegisterMe(theInclAblaNeutron=new G4InclAblaNeutronBuilder); |
---|
82 | theInclAblaNeutron->SetMinEnergy(0.0*GeV); |
---|
83 | theInclAblaNeutron->SetMaxEnergy(3.0*GeV); |
---|
84 | |
---|
85 | thePro=new G4ProtonBuilder; |
---|
86 | thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic, ProjectileDiffraction)); |
---|
87 | thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder); |
---|
88 | theLEPPro->SetMinEnergy(9.5*GeV); |
---|
89 | theLEPPro->SetMaxEnergy(25*GeV); |
---|
90 | |
---|
91 | thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder); |
---|
92 | theBertiniPro->SetMinEnergy(2.9*GeV); |
---|
93 | theBertiniPro->SetMaxEnergy(9.9*GeV); |
---|
94 | |
---|
95 | thePro->RegisterMe(theInclAblaPro=new G4InclAblaProtonBuilder); |
---|
96 | theInclAblaPro->SetMinEnergy(0.0*GeV); |
---|
97 | theInclAblaPro->SetMaxEnergy(3.0*GeV); |
---|
98 | |
---|
99 | thePiK=new G4PiKBuilder; |
---|
100 | thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic)); |
---|
101 | thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder); |
---|
102 | theLEPPiK->SetMaxEnergy(25*GeV); |
---|
103 | theLEPPiK->SetMinEnergy(9.5*GeV); |
---|
104 | |
---|
105 | thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder); |
---|
106 | theBertiniPiK->SetMinEnergy(2.9*GeV); |
---|
107 | theBertiniPiK->SetMaxEnergy(9.9*GeV); |
---|
108 | |
---|
109 | thePiK->RegisterMe(theInclAblaPiK=new G4InclAblaPiKBuilder); |
---|
110 | theInclAblaPiK->SetMinEnergy(0.0*GeV); |
---|
111 | theInclAblaPiK->SetMaxEnergy(3.0*GeV); |
---|
112 | |
---|
113 | theMiscLHEP=new G4MiscLHEPBuilder; |
---|
114 | } |
---|
115 | |
---|
116 | HadronPhysicsQGSP_INCL_ABLA::~HadronPhysicsQGSP_INCL_ABLA() |
---|
117 | { |
---|
118 | delete theMiscLHEP; |
---|
119 | delete theQGSPNeutron; |
---|
120 | delete theLEPNeutron; |
---|
121 | delete theBertiniNeutron; |
---|
122 | delete theInclAblaNeutron; |
---|
123 | delete theQGSPPro; |
---|
124 | delete theLEPPro; |
---|
125 | delete thePro; |
---|
126 | delete theBertiniPro; |
---|
127 | delete theInclAblaPro; |
---|
128 | delete theQGSPPiK; |
---|
129 | delete theLEPPiK; |
---|
130 | delete theInclAblaPiK; |
---|
131 | delete theBertiniPiK; |
---|
132 | delete thePiK; |
---|
133 | } |
---|
134 | |
---|
135 | void HadronPhysicsQGSP_INCL_ABLA::ConstructParticle() |
---|
136 | { |
---|
137 | G4MesonConstructor pMesonConstructor; |
---|
138 | pMesonConstructor.ConstructParticle(); |
---|
139 | |
---|
140 | G4BaryonConstructor pBaryonConstructor; |
---|
141 | pBaryonConstructor.ConstructParticle(); |
---|
142 | |
---|
143 | G4ShortLivedConstructor pShortLivedConstructor; |
---|
144 | pShortLivedConstructor.ConstructParticle(); |
---|
145 | } |
---|
146 | |
---|
147 | #include "G4ProcessManager.hh" |
---|
148 | void HadronPhysicsQGSP_INCL_ABLA::ConstructProcess() |
---|
149 | { |
---|
150 | CreateModels(); |
---|
151 | theNeutrons->Build(); |
---|
152 | thePro->Build(); |
---|
153 | thePiK->Build(); |
---|
154 | theMiscLHEP->Build(); |
---|
155 | } |
---|
156 | |
---|