[825] | 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 | // |
---|
[1315] | 26 | // $Id: G4HadronInelasticQBBC.cc,v 1.28 2010/06/04 13:48:51 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ |
---|
[825] | 28 | // |
---|
| 29 | //--------------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // ClassName: G4HadronInelasticQBBC |
---|
| 32 | // |
---|
[1205] | 33 | // Author: 2 October 2009 V. Ivanchenko |
---|
[825] | 34 | // |
---|
| 35 | // Modified: |
---|
| 36 | // |
---|
| 37 | //---------------------------------------------------------------------------- |
---|
| 38 | // |
---|
| 39 | |
---|
| 40 | #include "G4HadronInelasticQBBC.hh" |
---|
| 41 | |
---|
| 42 | #include "G4HadronInelasticProcess.hh" |
---|
[1205] | 43 | #include "G4HadronicInteraction.hh" |
---|
[825] | 44 | |
---|
| 45 | #include "G4ParticleDefinition.hh" |
---|
| 46 | #include "G4ProcessManager.hh" |
---|
| 47 | |
---|
| 48 | #include "G4BGGNucleonInelasticXS.hh" |
---|
| 49 | #include "G4BGGPionInelasticXS.hh" |
---|
[1315] | 50 | |
---|
[1205] | 51 | #include "G4NeutronInelasticXS.hh" |
---|
| 52 | #include "G4NeutronCaptureXS.hh" |
---|
[825] | 53 | |
---|
[1273] | 54 | #include "G4QInelastic.hh" |
---|
| 55 | #include "G4HadronicProcessStore.hh" |
---|
| 56 | |
---|
[1205] | 57 | #include "G4ProtonInelasticCrossSection.hh" |
---|
| 58 | #include "G4NeutronInelasticCrossSection.hh" |
---|
| 59 | #include "G4PiNuclearCrossSection.hh" |
---|
| 60 | |
---|
| 61 | #include "G4QGSBuilder.hh" |
---|
| 62 | #include "G4FTFBuilder.hh" |
---|
| 63 | |
---|
[825] | 64 | #include "G4QStringChipsParticleLevelInterface.hh" |
---|
[1205] | 65 | #include "G4CascadeInterface.hh" |
---|
[825] | 66 | #include "G4BinaryCascade.hh" |
---|
| 67 | #include "G4LCapture.hh" |
---|
[1205] | 68 | #include "G4NeutronRadCapture.hh" |
---|
[825] | 69 | |
---|
[1273] | 70 | #include "G4PreCompoundModel.hh" |
---|
| 71 | #include "G4ExcitationHandler.hh" |
---|
| 72 | #include "G4Evaporation.hh" |
---|
| 73 | |
---|
[1205] | 74 | enum QBBCType |
---|
| 75 | { |
---|
[1315] | 76 | fQBBC = 0, // default QBBC |
---|
| 77 | fQBBC_XGG, // neutron x-sections from BGG |
---|
| 78 | fQBBC_XGGSN // n, p, pi+- x-sections from QGSP_BERT |
---|
[1205] | 79 | }; |
---|
[825] | 80 | |
---|
[1315] | 81 | G4HadronInelasticQBBC::G4HadronInelasticQBBC(G4int ver) |
---|
| 82 | : G4VHadronPhysics("hInelastic"),verbose(ver),wasActivated(false) |
---|
| 83 | { |
---|
| 84 | htype = "QBBC"; |
---|
| 85 | theHandler = 0; |
---|
| 86 | theEvaporation = 0; |
---|
| 87 | } |
---|
| 88 | |
---|
[1205] | 89 | G4HadronInelasticQBBC::G4HadronInelasticQBBC(const G4String& name, G4int ver, |
---|
| 90 | G4bool, G4bool,G4bool, G4bool, G4bool) |
---|
| 91 | : G4VHadronPhysics("hInelastic"),verbose(ver),wasActivated(false) |
---|
[825] | 92 | { |
---|
[1205] | 93 | htype = name; |
---|
[1273] | 94 | theHandler = 0; |
---|
| 95 | theEvaporation = 0; |
---|
[825] | 96 | } |
---|
| 97 | |
---|
| 98 | G4HadronInelasticQBBC::~G4HadronInelasticQBBC() |
---|
[1273] | 99 | { |
---|
| 100 | delete theHandler; |
---|
| 101 | delete theEvaporation; |
---|
| 102 | } |
---|
[825] | 103 | |
---|
| 104 | void G4HadronInelasticQBBC::ConstructProcess() |
---|
| 105 | { |
---|
| 106 | if(wasActivated) return; |
---|
| 107 | wasActivated = true; |
---|
| 108 | |
---|
[1205] | 109 | // select type |
---|
| 110 | QBBCType fType = fQBBC; |
---|
| 111 | if("QBBC_XGG" == htype) { fType = fQBBC_XGG; } |
---|
| 112 | else if("QBBC_XGGSN" == htype) { fType = fQBBC_XGGSN; } |
---|
| 113 | |
---|
[988] | 114 | if(verbose > 1) { |
---|
[1205] | 115 | G4cout << "### HadronInelasticQBBC Construct Process with type <" |
---|
| 116 | << htype << ">" << G4endl; |
---|
[988] | 117 | } |
---|
[825] | 118 | |
---|
[1315] | 119 | // PreCompound and Evaporation models are instantiated here |
---|
[1273] | 120 | theEvaporation = new G4Evaporation(); |
---|
| 121 | theEvaporation->SetCombinedChannel(); |
---|
| 122 | theHandler = new G4ExcitationHandler(); |
---|
| 123 | theHandler->SetEvaporation(theEvaporation); |
---|
| 124 | theHandler->SetMinEForMultiFrag(3.0*GeV); |
---|
| 125 | theHandler->SetMaxAandZForFermiBreakUp(17,9); |
---|
| 126 | G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(theHandler); |
---|
| 127 | |
---|
[1205] | 128 | // configure models |
---|
| 129 | G4HadronicInteraction* theQGSP = |
---|
[1273] | 130 | BuildModel(new G4QGSBuilder("QGSP",thePreCompound,true,false),12.5*GeV,100.*TeV); |
---|
[1205] | 131 | G4HadronicInteraction* theFTFP = |
---|
[1273] | 132 | BuildModel(new G4FTFBuilder("FTFP",thePreCompound),4.0*GeV,25.*GeV); |
---|
[1205] | 133 | G4HadronicInteraction* theFTFP1 = |
---|
[1273] | 134 | BuildModel(new G4FTFBuilder("FTFP",thePreCompound),4.0*GeV,100.*TeV); |
---|
| 135 | |
---|
[1205] | 136 | G4HadronicInteraction* theBERT = |
---|
[1273] | 137 | NewModel(new G4CascadeInterface(),1.0*GeV,5.0*GeV); |
---|
| 138 | G4HadronicInteraction* theBERT1 = |
---|
| 139 | NewModel(new G4CascadeInterface(),0.0*GeV,5.0*GeV); |
---|
[825] | 140 | |
---|
[1273] | 141 | G4BinaryCascade* bic = new G4BinaryCascade(); |
---|
| 142 | bic->SetDeExcitation(thePreCompound); |
---|
| 143 | G4HadronicInteraction* theBIC = NewModel(bic,0.0,1.5*GeV); |
---|
| 144 | |
---|
| 145 | G4QInelastic* theCHIPS = new G4QInelastic(); |
---|
| 146 | G4HadronicProcessStore* store = G4HadronicProcessStore::Instance(); |
---|
| 147 | store->RegisterExtraProcess(theCHIPS); |
---|
| 148 | |
---|
[1205] | 149 | // loop over particles |
---|
[825] | 150 | theParticleIterator->reset(); |
---|
| 151 | while( (*theParticleIterator)() ) { |
---|
| 152 | G4ParticleDefinition* particle = theParticleIterator->value(); |
---|
| 153 | G4String pname = particle->GetParticleName(); |
---|
[1273] | 154 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
[1315] | 155 | if(verbose > 1) { |
---|
| 156 | G4cout << "### HadronInelasticQBBC: " << pname << G4endl; |
---|
| 157 | } |
---|
[1273] | 158 | |
---|
| 159 | // |
---|
| 160 | // model and X-section configuration per particle type |
---|
| 161 | // |
---|
| 162 | if(pname == "proton") { |
---|
[1205] | 163 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
[1315] | 164 | if(fType == fQBBC_XGGSN) { |
---|
[1273] | 165 | hp->AddDataSet(new G4ProtonInelasticCrossSection()); |
---|
| 166 | } else { |
---|
| 167 | hp->AddDataSet(new G4BGGNucleonInelasticXS(particle)); |
---|
| 168 | } |
---|
| 169 | hp->RegisterMe(theQGSP); |
---|
| 170 | hp->RegisterMe(theFTFP); |
---|
| 171 | hp->RegisterMe(theBERT); |
---|
| 172 | hp->RegisterMe(theBIC); |
---|
[825] | 173 | |
---|
[1273] | 174 | } else if(pname == "neutron") { |
---|
| 175 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
| 176 | if(fType == fQBBC) { |
---|
[1315] | 177 | hp->AddDataSet(new G4NeutronInelasticXS()); |
---|
[1273] | 178 | } else if(fType == fQBBC_XGG) { |
---|
| 179 | hp->AddDataSet(new G4BGGNucleonInelasticXS(particle)); |
---|
| 180 | } else { |
---|
[1315] | 181 | hp->AddDataSet(new G4NeutronInelasticCrossSection()); |
---|
[1273] | 182 | } |
---|
[825] | 183 | |
---|
[1273] | 184 | hp->RegisterMe(theQGSP); |
---|
| 185 | hp->RegisterMe(theFTFP); |
---|
[1205] | 186 | |
---|
[1273] | 187 | G4HadronicProcess* capture = FindCaptureProcess(); |
---|
[825] | 188 | |
---|
[1273] | 189 | hp->RegisterMe(theBERT); |
---|
| 190 | hp->RegisterMe(theBIC); |
---|
| 191 | capture->RegisterMe(new G4NeutronRadCapture()); |
---|
| 192 | //capture->RegisterMe(new G4LCapture()); |
---|
[1315] | 193 | if(fType == fQBBC) { |
---|
[1273] | 194 | capture->AddDataSet(new G4NeutronCaptureXS()); |
---|
| 195 | } |
---|
[825] | 196 | |
---|
[1273] | 197 | } else if(pname == "pi-" || pname == "pi+") { |
---|
| 198 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
[1315] | 199 | if(fType == fQBBC_XGGSN) { |
---|
[1273] | 200 | hp->AddDataSet(new G4PiNuclearCrossSection()); |
---|
[1205] | 201 | } else { |
---|
[1273] | 202 | hp->AddDataSet(new G4BGGPionInelasticXS(particle)); |
---|
[825] | 203 | } |
---|
[1273] | 204 | hp->RegisterMe(theQGSP); |
---|
| 205 | hp->RegisterMe(theFTFP); |
---|
| 206 | hp->RegisterMe(theBERT1); |
---|
[825] | 207 | |
---|
[1273] | 208 | } else if(pname == "kaon-" || |
---|
| 209 | pname == "kaon+" || |
---|
| 210 | pname == "kaon0S" || |
---|
| 211 | pname == "kaon0L" || |
---|
| 212 | pname == "lambda" || |
---|
| 213 | pname == "sigma-" || |
---|
| 214 | pname == "sigma+" || |
---|
| 215 | pname == "sigma0" || |
---|
| 216 | pname == "xi-" || |
---|
| 217 | pname == "xi0") { |
---|
| 218 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
| 219 | hp->RegisterMe(theFTFP1); |
---|
| 220 | hp->RegisterMe(theBERT1); |
---|
| 221 | |
---|
| 222 | } else if(pname == "anti_lambda" || |
---|
| 223 | pname == "anti_neutron" || |
---|
| 224 | pname == "anti_omega-" || |
---|
| 225 | pname == "anti_proton" || |
---|
| 226 | pname == "anti_sigma-" || |
---|
| 227 | pname == "anti_sigma+" || |
---|
| 228 | pname == "anti_xi-" || |
---|
| 229 | pname == "anti_xi0" || |
---|
| 230 | pname == "omega-") { |
---|
| 231 | //G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
| 232 | //hp->RegisterMe(theFTFP1); |
---|
| 233 | //hp->RegisterMe(theCHIPS); |
---|
| 234 | pmanager->AddDiscreteProcess(theCHIPS); |
---|
| 235 | store->RegisterParticleForExtraProcess(theCHIPS,particle); |
---|
| 236 | } |
---|
[825] | 237 | } |
---|
| 238 | } |
---|