[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 | // |
---|
[1273] | 26 | // $Id: G4HadronInelasticQBBC.cc,v 1.26 2010/05/19 18:14:16 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: phys-lists-V09-03-03 $ |
---|
[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" |
---|
[1205] | 50 | //#include "G4UInelasticCrossSection.hh" |
---|
| 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 | { |
---|
| 76 | fQBBC = 0, |
---|
| 77 | fQBBC_XGG, |
---|
| 78 | fQBBC_XGGSN |
---|
| 79 | }; |
---|
[825] | 80 | |
---|
[1205] | 81 | G4HadronInelasticQBBC::G4HadronInelasticQBBC(const G4String& name, G4int ver, |
---|
| 82 | G4bool, G4bool,G4bool, G4bool, G4bool) |
---|
| 83 | : G4VHadronPhysics("hInelastic"),verbose(ver),wasActivated(false) |
---|
[825] | 84 | { |
---|
[1205] | 85 | htype = name; |
---|
[1273] | 86 | theHandler = 0; |
---|
| 87 | theEvaporation = 0; |
---|
[825] | 88 | } |
---|
| 89 | |
---|
| 90 | G4HadronInelasticQBBC::~G4HadronInelasticQBBC() |
---|
[1273] | 91 | { |
---|
| 92 | delete theHandler; |
---|
| 93 | delete theEvaporation; |
---|
| 94 | } |
---|
[825] | 95 | |
---|
| 96 | void G4HadronInelasticQBBC::ConstructProcess() |
---|
| 97 | { |
---|
| 98 | if(wasActivated) return; |
---|
| 99 | wasActivated = true; |
---|
| 100 | |
---|
[1205] | 101 | // select type |
---|
| 102 | QBBCType fType = fQBBC; |
---|
| 103 | if("QBBC_XGG" == htype) { fType = fQBBC_XGG; } |
---|
| 104 | else if("QBBC_XGGSN" == htype) { fType = fQBBC_XGGSN; } |
---|
| 105 | |
---|
[988] | 106 | if(verbose > 1) { |
---|
[1205] | 107 | G4cout << "### HadronInelasticQBBC Construct Process with type <" |
---|
| 108 | << htype << ">" << G4endl; |
---|
[988] | 109 | } |
---|
[825] | 110 | |
---|
[1273] | 111 | // PreCompound and Evaporation models |
---|
| 112 | theEvaporation = new G4Evaporation(); |
---|
| 113 | theEvaporation->SetCombinedChannel(); |
---|
| 114 | theHandler = new G4ExcitationHandler(); |
---|
| 115 | theHandler->SetEvaporation(theEvaporation); |
---|
| 116 | theHandler->SetMinEForMultiFrag(3.0*GeV); |
---|
| 117 | theHandler->SetMaxAandZForFermiBreakUp(17,9); |
---|
| 118 | G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(theHandler); |
---|
| 119 | |
---|
[1205] | 120 | // configure models |
---|
| 121 | G4HadronicInteraction* theQGSP = |
---|
[1273] | 122 | BuildModel(new G4QGSBuilder("QGSP",thePreCompound,true,false),12.5*GeV,100.*TeV); |
---|
[1205] | 123 | G4HadronicInteraction* theFTFP = |
---|
[1273] | 124 | BuildModel(new G4FTFBuilder("FTFP",thePreCompound),4.0*GeV,25.*GeV); |
---|
[1205] | 125 | G4HadronicInteraction* theFTFP1 = |
---|
[1273] | 126 | BuildModel(new G4FTFBuilder("FTFP",thePreCompound),4.0*GeV,100.*TeV); |
---|
| 127 | |
---|
[1205] | 128 | G4HadronicInteraction* theBERT = |
---|
[1273] | 129 | NewModel(new G4CascadeInterface(),1.0*GeV,5.0*GeV); |
---|
| 130 | G4HadronicInteraction* theBERT1 = |
---|
| 131 | NewModel(new G4CascadeInterface(),0.0*GeV,5.0*GeV); |
---|
[825] | 132 | |
---|
[1273] | 133 | G4BinaryCascade* bic = new G4BinaryCascade(); |
---|
| 134 | bic->SetDeExcitation(thePreCompound); |
---|
| 135 | G4HadronicInteraction* theBIC = NewModel(bic,0.0,1.5*GeV); |
---|
| 136 | |
---|
| 137 | // G4HadronicInteraction* theCHIPS = |
---|
| 138 | // NewModel(new G4QStringChipsParticleLevelInterface(),0.0,7.5*GeV); |
---|
| 139 | |
---|
| 140 | G4QInelastic* theCHIPS = new G4QInelastic(); |
---|
| 141 | G4HadronicProcessStore* store = G4HadronicProcessStore::Instance(); |
---|
| 142 | store->RegisterExtraProcess(theCHIPS); |
---|
| 143 | |
---|
[1205] | 144 | // loop over particles |
---|
[825] | 145 | theParticleIterator->reset(); |
---|
| 146 | while( (*theParticleIterator)() ) { |
---|
| 147 | G4ParticleDefinition* particle = theParticleIterator->value(); |
---|
| 148 | G4String pname = particle->GetParticleName(); |
---|
[1273] | 149 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
[1205] | 150 | if(verbose > 1) { G4cout << "### HadronInelasticQBBC: " << pname << G4endl; } |
---|
[1273] | 151 | |
---|
| 152 | // |
---|
| 153 | // model and X-section configuration per particle type |
---|
| 154 | // |
---|
| 155 | if(pname == "proton") { |
---|
[1205] | 156 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
[1273] | 157 | if(fType == fQBBC) { |
---|
| 158 | hp->AddDataSet(new G4ProtonInelasticCrossSection()); |
---|
| 159 | } else { |
---|
| 160 | hp->AddDataSet(new G4BGGNucleonInelasticXS(particle)); |
---|
| 161 | } |
---|
| 162 | hp->RegisterMe(theQGSP); |
---|
| 163 | hp->RegisterMe(theFTFP); |
---|
| 164 | hp->RegisterMe(theBERT); |
---|
| 165 | hp->RegisterMe(theBIC); |
---|
[825] | 166 | |
---|
[1273] | 167 | } else if(pname == "neutron") { |
---|
| 168 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
| 169 | if(fType == fQBBC) { |
---|
| 170 | hp->AddDataSet(new G4NeutronInelasticCrossSection()); |
---|
| 171 | } else if(fType == fQBBC_XGG) { |
---|
| 172 | hp->AddDataSet(new G4BGGNucleonInelasticXS(particle)); |
---|
| 173 | } else { |
---|
| 174 | hp->AddDataSet(new G4NeutronInelasticXS()); |
---|
| 175 | } |
---|
[825] | 176 | |
---|
[1273] | 177 | hp->RegisterMe(theQGSP); |
---|
| 178 | hp->RegisterMe(theFTFP); |
---|
[1205] | 179 | |
---|
[1273] | 180 | G4HadronicProcess* capture = FindCaptureProcess(); |
---|
[825] | 181 | |
---|
[1273] | 182 | hp->RegisterMe(theBERT); |
---|
| 183 | hp->RegisterMe(theBIC); |
---|
| 184 | capture->RegisterMe(new G4NeutronRadCapture()); |
---|
| 185 | //capture->RegisterMe(new G4LCapture()); |
---|
| 186 | if(fType == fQBBC_XGGSN) { |
---|
| 187 | capture->AddDataSet(new G4NeutronCaptureXS()); |
---|
| 188 | } |
---|
[825] | 189 | |
---|
[1273] | 190 | } else if(pname == "pi-" || pname == "pi+") { |
---|
| 191 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
| 192 | if(fType == fQBBC) { |
---|
| 193 | hp->AddDataSet(new G4PiNuclearCrossSection()); |
---|
[1205] | 194 | } else { |
---|
[1273] | 195 | hp->AddDataSet(new G4BGGPionInelasticXS(particle)); |
---|
[825] | 196 | } |
---|
[1273] | 197 | hp->RegisterMe(theQGSP); |
---|
| 198 | hp->RegisterMe(theFTFP); |
---|
| 199 | hp->RegisterMe(theBERT1); |
---|
[825] | 200 | |
---|
[1273] | 201 | } else if(pname == "kaon-" || |
---|
| 202 | pname == "kaon+" || |
---|
| 203 | pname == "kaon0S" || |
---|
| 204 | pname == "kaon0L" || |
---|
| 205 | pname == "lambda" || |
---|
| 206 | pname == "sigma-" || |
---|
| 207 | pname == "sigma+" || |
---|
| 208 | pname == "sigma0" || |
---|
| 209 | pname == "xi-" || |
---|
| 210 | pname == "xi0") { |
---|
| 211 | G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
| 212 | hp->RegisterMe(theFTFP1); |
---|
| 213 | hp->RegisterMe(theBERT1); |
---|
| 214 | |
---|
| 215 | } else if(pname == "anti_lambda" || |
---|
| 216 | pname == "anti_neutron" || |
---|
| 217 | pname == "anti_omega-" || |
---|
| 218 | pname == "anti_proton" || |
---|
| 219 | pname == "anti_sigma-" || |
---|
| 220 | pname == "anti_sigma+" || |
---|
| 221 | pname == "anti_xi-" || |
---|
| 222 | pname == "anti_xi0" || |
---|
| 223 | pname == "omega-") { |
---|
| 224 | //G4HadronicProcess* hp = FindInelasticProcess(particle); |
---|
| 225 | //hp->RegisterMe(theFTFP1); |
---|
| 226 | //hp->RegisterMe(theCHIPS); |
---|
| 227 | pmanager->AddDiscreteProcess(theCHIPS); |
---|
| 228 | store->RegisterParticleForExtraProcess(theCHIPS,particle); |
---|
| 229 | } |
---|
[825] | 230 | } |
---|
| 231 | } |
---|