| 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: G4HadronInelasticQBBC.cc,v 1.15 2008/11/21 18:42:36 vnivanch Exp $
|
|---|
| 27 | // GEANT4 tag $Name: geant4-09-02-cand-01 $
|
|---|
| 28 | //
|
|---|
| 29 | //---------------------------------------------------------------------------
|
|---|
| 30 | //
|
|---|
| 31 | // ClassName: G4HadronInelasticQBBC
|
|---|
| 32 | //
|
|---|
| 33 | // Author: 11 April 2006 V. Ivanchenko
|
|---|
| 34 | //
|
|---|
| 35 | // Modified:
|
|---|
| 36 | // 05.07.2006 V.Ivanchenko fix problem of initialisation of HP
|
|---|
| 37 | // 15.04.2007 V.Ivanchenko include quasi-elastic and change FTF low energy
|
|---|
| 38 | //
|
|---|
| 39 | //----------------------------------------------------------------------------
|
|---|
| 40 | //
|
|---|
| 41 |
|
|---|
| 42 | #include "G4HadronInelasticQBBC.hh"
|
|---|
| 43 |
|
|---|
| 44 | #include "G4HadronInelasticProcess.hh"
|
|---|
| 45 |
|
|---|
| 46 | #include "G4ParticleDefinition.hh"
|
|---|
| 47 | #include "G4ProcessManager.hh"
|
|---|
| 48 |
|
|---|
| 49 | #include "G4MesonConstructor.hh"
|
|---|
| 50 | #include "G4BaryonConstructor.hh"
|
|---|
| 51 |
|
|---|
| 52 | #include "G4PiNuclearCrossSection.hh"
|
|---|
| 53 | #include "G4BGGNucleonInelasticXS.hh"
|
|---|
| 54 | #include "G4BGGPionInelasticXS.hh"
|
|---|
| 55 |
|
|---|
| 56 | #include "G4TheoFSGenerator.hh"
|
|---|
| 57 | #include "G4QStringChipsParticleLevelInterface.hh"
|
|---|
| 58 | #include "G4StringChipsInterface.hh"
|
|---|
| 59 | #include "G4GeneratorPrecompoundInterface.hh"
|
|---|
| 60 | #include "G4QGSMFragmentation.hh"
|
|---|
| 61 | #include "G4LundStringFragmentation.hh"
|
|---|
| 62 | #include "G4ExcitedStringDecay.hh"
|
|---|
| 63 |
|
|---|
| 64 | #include "G4BinaryCascade.hh"
|
|---|
| 65 | #include "G4HadronFissionProcess.hh"
|
|---|
| 66 | #include "G4HadronCaptureProcess.hh"
|
|---|
| 67 | #include "G4LFission.hh"
|
|---|
| 68 | #include "G4LCapture.hh"
|
|---|
| 69 |
|
|---|
| 70 | #include "G4NeutronHPInelastic.hh"
|
|---|
| 71 | #include "G4NeutronHPFission.hh"
|
|---|
| 72 | #include "G4NeutronHPCapture.hh"
|
|---|
| 73 |
|
|---|
| 74 | #include "G4UInelasticCrossSection.hh"
|
|---|
| 75 |
|
|---|
| 76 | G4HadronInelasticQBBC::G4HadronInelasticQBBC(const G4String& name,
|
|---|
| 77 | G4int ver, G4bool ftf, G4bool bert, G4bool chips, G4bool hp, G4bool glauber)
|
|---|
| 78 | : G4VPhysicsConstructor(name), verbose(ver), ftfFlag(ftf), bertFlag(bert),
|
|---|
| 79 | chipsFlag(chips), hpFlag(hp), glFlag(glauber), wasActivated(false)
|
|---|
| 80 | {
|
|---|
| 81 | if(verbose > 1) G4cout << "### HadronInelasticQBBC bertFlag= " << bertFlag <<G4endl;
|
|---|
| 82 | theHPXSecI = 0;
|
|---|
| 83 | theHPXSecC = 0;
|
|---|
| 84 | theHPXSecF = 0;
|
|---|
| 85 | theCascade = 0;
|
|---|
| 86 | preCompound = 0;
|
|---|
| 87 | theCHIPSCascade = 0;
|
|---|
| 88 | theQuasiElastic = 0;
|
|---|
| 89 | theQGStringDecay = 0;
|
|---|
| 90 | theQGStringModel = 0;
|
|---|
| 91 | theFTFBStringDecay = 0;
|
|---|
| 92 | theFTFBStringModel = 0;
|
|---|
| 93 | theFTFCStringDecay = 0;
|
|---|
| 94 | theFTFCStringModel = 0;
|
|---|
| 95 | }
|
|---|
| 96 |
|
|---|
| 97 | G4HadronInelasticQBBC::~G4HadronInelasticQBBC()
|
|---|
| 98 | {
|
|---|
| 99 | delete theCascade;
|
|---|
| 100 | delete preCompound;
|
|---|
| 101 | delete theCHIPSCascade;
|
|---|
| 102 | delete theQuasiElastic;
|
|---|
| 103 | delete theQGStringDecay;
|
|---|
| 104 | delete theQGStringModel;
|
|---|
| 105 | delete theFTFBStringDecay;
|
|---|
| 106 | delete theFTFCStringDecay;
|
|---|
| 107 | delete theFTFBStringModel;
|
|---|
| 108 | delete theFTFCStringModel;
|
|---|
| 109 | delete theHPXSecI;
|
|---|
| 110 | delete theHPXSecC;
|
|---|
| 111 | delete theHPXSecF;
|
|---|
| 112 | }
|
|---|
| 113 |
|
|---|
| 114 | void G4HadronInelasticQBBC::ConstructParticle()
|
|---|
| 115 | {
|
|---|
| 116 | G4MesonConstructor pMesonConstructor;
|
|---|
| 117 | pMesonConstructor.ConstructParticle();
|
|---|
| 118 |
|
|---|
| 119 | G4BaryonConstructor pBaryonConstructor;
|
|---|
| 120 | pBaryonConstructor.ConstructParticle();
|
|---|
| 121 | }
|
|---|
| 122 |
|
|---|
| 123 | void G4HadronInelasticQBBC::ConstructProcess()
|
|---|
| 124 | {
|
|---|
| 125 | if(wasActivated) return;
|
|---|
| 126 | wasActivated = true;
|
|---|
| 127 |
|
|---|
| 128 | if(verbose > 1)
|
|---|
| 129 | G4cout << "### HadronInelasticQBBC Construct Process"
|
|---|
| 130 | << " ftfFlag= " << ftfFlag << " bertFlag= " << bertFlag
|
|---|
| 131 | << G4endl;
|
|---|
| 132 |
|
|---|
| 133 | G4double minEstring = 9.5*GeV;
|
|---|
| 134 | G4double maxEcascade = 7.5*GeV;
|
|---|
| 135 | G4double minFTF = 4.5*GeV;
|
|---|
| 136 | G4double maxFTF = 25.*GeV;
|
|---|
| 137 |
|
|---|
| 138 | //Binary
|
|---|
| 139 | G4HadronicInteraction* theBIC = new G4BinaryCascade();
|
|---|
| 140 | theBIC->SetMinEnergy(0.0);
|
|---|
| 141 | theBIC->SetMaxEnergy(maxEcascade);
|
|---|
| 142 |
|
|---|
| 143 | //Bertini
|
|---|
| 144 | G4HadronicInteraction* theBERT = new G4CascadeInterface();
|
|---|
| 145 | theBERT->SetMinEnergy(0.0);
|
|---|
| 146 | theBERT->SetMaxEnergy(maxEcascade);
|
|---|
| 147 |
|
|---|
| 148 | //CHIPS
|
|---|
| 149 | G4HadronicInteraction* theCHIPS = new G4StringChipsInterface();
|
|---|
| 150 | theCHIPS->SetMinEnergy(0.0);
|
|---|
| 151 | theCHIPS->SetMaxEnergy(maxEcascade);
|
|---|
| 152 |
|
|---|
| 153 | //QGS
|
|---|
| 154 | theCascade = new G4BinaryCascade();
|
|---|
| 155 | preCompound = new G4GeneratorPrecompoundInterface();
|
|---|
| 156 |
|
|---|
| 157 | theCHIPSCascade = new G4QStringChipsParticleLevelInterface;
|
|---|
| 158 | G4TheoFSGenerator* theQGSModel = new G4TheoFSGenerator("QGSP");
|
|---|
| 159 | theQGStringModel = new G4QGSModel< G4QGSParticipants >;
|
|---|
| 160 | theQGStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation());
|
|---|
| 161 | theQGStringModel->SetFragmentationModel(theQGStringDecay);
|
|---|
| 162 | theQGSModel->SetTransport(preCompound);
|
|---|
| 163 |
|
|---|
| 164 | theQuasiElastic = new G4QuasiElasticChannel();
|
|---|
| 165 | theQGSModel->SetQuasiElasticChannel(theQuasiElastic);
|
|---|
| 166 | theQGSModel->SetHighEnergyGenerator(theQGStringModel);
|
|---|
| 167 | theQGSModel->SetMinEnergy(minEstring);
|
|---|
| 168 | theQGSModel->SetMaxEnergy(100*TeV);
|
|---|
| 169 |
|
|---|
| 170 | //FTFB
|
|---|
| 171 | G4TheoFSGenerator* theFTFBModel = new G4TheoFSGenerator("FTFP");
|
|---|
| 172 | theFTFBStringModel = new G4FTFModel();
|
|---|
| 173 | theFTFBStringDecay = new G4ExcitedStringDecay(new G4LundStringFragmentation());
|
|---|
| 174 | theFTFBStringModel->SetFragmentationModel(theFTFBStringDecay);
|
|---|
| 175 |
|
|---|
| 176 | // theFTFBModel->SetTransport(theCascade);
|
|---|
| 177 | theFTFBModel->SetTransport(preCompound);
|
|---|
| 178 | theFTFBModel->SetHighEnergyGenerator(theFTFBStringModel);
|
|---|
| 179 | theFTFBModel->SetMinEnergy(minFTF);
|
|---|
| 180 | theFTFBModel->SetMaxEnergy(100*TeV);
|
|---|
| 181 |
|
|---|
| 182 | //FTFP
|
|---|
| 183 | G4TheoFSGenerator* theFTFCModel = new G4TheoFSGenerator("FTFP");
|
|---|
| 184 | theFTFCStringModel = new G4FTFModel();
|
|---|
| 185 | theFTFCStringDecay = new G4ExcitedStringDecay(new G4LundStringFragmentation());
|
|---|
| 186 | theFTFCStringModel->SetFragmentationModel(theFTFCStringDecay);
|
|---|
| 187 |
|
|---|
| 188 | theFTFCModel->SetTransport(preCompound);
|
|---|
| 189 | theFTFCModel->SetHighEnergyGenerator(theFTFCStringModel);
|
|---|
| 190 | theFTFCModel->SetMinEnergy(minFTF);
|
|---|
| 191 | theFTFCModel->SetMaxEnergy(maxFTF);
|
|---|
| 192 |
|
|---|
| 193 | theParticleIterator->reset();
|
|---|
| 194 | while( (*theParticleIterator)() ) {
|
|---|
| 195 | G4ParticleDefinition* particle = theParticleIterator->value();
|
|---|
| 196 | G4String pname = particle->GetParticleName();
|
|---|
| 197 | if(verbose > 1) G4cout << "### HadronInelasticQBBC: " << pname << G4endl;
|
|---|
| 198 | if(pname == "anti_lambda" ||
|
|---|
| 199 | pname == "anti_neutron" ||
|
|---|
| 200 | pname == "anti_omega-" ||
|
|---|
| 201 | pname == "anti_proton" ||
|
|---|
| 202 | pname == "anti_sigma-" ||
|
|---|
| 203 | pname == "anti_sigma+" ||
|
|---|
| 204 | pname == "anti_xi-" ||
|
|---|
| 205 | pname == "anti_xi0" ||
|
|---|
| 206 | pname == "kaon-" ||
|
|---|
| 207 | pname == "kaon+" ||
|
|---|
| 208 | pname == "kaon0S" ||
|
|---|
| 209 | pname == "kaon0L" ||
|
|---|
| 210 | pname == "lambda" ||
|
|---|
| 211 | pname == "neutron" ||
|
|---|
| 212 | pname == "omega-" ||
|
|---|
| 213 | pname == "pi-" ||
|
|---|
| 214 | pname == "pi+" ||
|
|---|
| 215 | pname == "proton" ||
|
|---|
| 216 | pname == "sigma-" ||
|
|---|
| 217 | pname == "sigma+" ||
|
|---|
| 218 | pname == "xi-" ||
|
|---|
| 219 | pname == "xi0") {
|
|---|
| 220 |
|
|---|
| 221 | G4ProcessManager* pmanager = particle->GetProcessManager();
|
|---|
| 222 | G4HadronInelasticProcess* hp =
|
|---|
| 223 | new G4HadronInelasticProcess("hInelastic", particle);
|
|---|
| 224 | pmanager->AddDiscreteProcess(hp);
|
|---|
| 225 |
|
|---|
| 226 | if(pname == "proton") {
|
|---|
| 227 | hp->AddDataSet(&theXSecP);
|
|---|
| 228 |
|
|---|
| 229 | hp->RegisterMe(theQGSModel);
|
|---|
| 230 | hp->RegisterMe(theFTFCModel);
|
|---|
| 231 | //if(ftfFlag) hp->RegisterMe(theFTFCModel);
|
|---|
| 232 | //else hp->RegisterMe(theQGSModel);
|
|---|
| 233 |
|
|---|
| 234 | if(bertFlag) hp->RegisterMe(theBERT);
|
|---|
| 235 | else hp->RegisterMe(theBIC);
|
|---|
| 236 |
|
|---|
| 237 | if(glFlag)
|
|---|
| 238 | hp->AddDataSet(new G4BGGNucleonInelasticXS(particle));
|
|---|
| 239 |
|
|---|
| 240 | } else if(pname == "neutron") {
|
|---|
| 241 | hp->AddDataSet(&theXSecN);
|
|---|
| 242 | hp->RegisterMe(theQGSModel);
|
|---|
| 243 | hp->RegisterMe(theFTFCModel);
|
|---|
| 244 | //if(ftfFlag) hp->RegisterMe(theFTFCModel);
|
|---|
| 245 | //else hp->RegisterMe(theQGSModel);
|
|---|
| 246 |
|
|---|
| 247 | G4HadronCaptureProcess* theNeutronCapture =
|
|---|
| 248 | new G4HadronCaptureProcess("nCapture");
|
|---|
| 249 | G4HadronFissionProcess* theNeutronFission =
|
|---|
| 250 | new G4HadronFissionProcess("nFission");
|
|---|
| 251 | pmanager->AddDiscreteProcess(theNeutronCapture);
|
|---|
| 252 | pmanager->AddDiscreteProcess(theNeutronFission);
|
|---|
| 253 |
|
|---|
| 254 | G4double emin = 0.0;
|
|---|
| 255 | if(hpFlag) {
|
|---|
| 256 | emin = 19.5*MeV;
|
|---|
| 257 | theHPXSecI = new G4NeutronHPInelasticData;
|
|---|
| 258 | theHPXSecC = new G4NeutronHPCaptureData;
|
|---|
| 259 | theHPXSecF = new G4NeutronHPFissionData;
|
|---|
| 260 | hp->AddDataSet(theHPXSecI);
|
|---|
| 261 | theNeutronCapture->AddDataSet(theHPXSecC);
|
|---|
| 262 | theNeutronFission->AddDataSet(theHPXSecF);
|
|---|
| 263 | hp->RegisterMe(new G4NeutronHPInelastic());
|
|---|
| 264 | theNeutronCapture->RegisterMe(new G4NeutronHPCapture());
|
|---|
| 265 | theNeutronFission->RegisterMe(new G4NeutronHPFission());
|
|---|
| 266 | }
|
|---|
| 267 |
|
|---|
| 268 | G4HadronicInteraction* theB;
|
|---|
| 269 | if(bertFlag) theB = new G4CascadeInterface();
|
|---|
| 270 | else theB = new G4BinaryCascade();
|
|---|
| 271 | theB->SetMinEnergy(emin);
|
|---|
| 272 | theB->SetMaxEnergy(maxEcascade);
|
|---|
| 273 | hp->RegisterMe(theB);
|
|---|
| 274 |
|
|---|
| 275 | if(glFlag)
|
|---|
| 276 | hp->AddDataSet(new G4BGGNucleonInelasticXS(particle));
|
|---|
| 277 |
|
|---|
| 278 | G4HadronicInteraction* theC = new G4LCapture();
|
|---|
| 279 | theC->SetMinEnergy(emin);
|
|---|
| 280 | theNeutronCapture->RegisterMe(theC);
|
|---|
| 281 |
|
|---|
| 282 | G4HadronicInteraction* theF = new G4LFission();
|
|---|
| 283 | theF->SetMinEnergy(emin);
|
|---|
| 284 | theNeutronFission->RegisterMe(theF);
|
|---|
| 285 |
|
|---|
| 286 | } else if(pname == "pi-" || pname == "pi+") {
|
|---|
| 287 | hp->AddDataSet(&thePiCross);
|
|---|
| 288 | hp->RegisterMe(theQGSModel);
|
|---|
| 289 | hp->RegisterMe(theFTFCModel);
|
|---|
| 290 | //if(ftfFlag) hp->RegisterMe(theFTFCModel);
|
|---|
| 291 | //else hp->RegisterMe(theQGSModel);
|
|---|
| 292 |
|
|---|
| 293 | hp->RegisterMe(theBERT);
|
|---|
| 294 | //if(bertFlag) hp->RegisterMe(theBERT);
|
|---|
| 295 | //else hp->RegisterMe(theBIC);
|
|---|
| 296 |
|
|---|
| 297 | if(glFlag)
|
|---|
| 298 | hp->AddDataSet(new G4BGGPionInelasticXS(particle));
|
|---|
| 299 |
|
|---|
| 300 | } else if(pname == "kaon-" ||
|
|---|
| 301 | pname == "kaon+" ||
|
|---|
| 302 | pname == "kaon0S" ||
|
|---|
| 303 | pname == "kaon0L") {
|
|---|
| 304 | hp->RegisterMe(theFTFBModel);
|
|---|
| 305 | hp->RegisterMe(theBERT);
|
|---|
| 306 | //hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
|---|
| 307 |
|
|---|
| 308 | } else if(pname == "lambda" ||
|
|---|
| 309 | pname == "sigma-" ||
|
|---|
| 310 | pname == "sigma+" ||
|
|---|
| 311 | pname == "xi-" ||
|
|---|
| 312 | pname == "xi0") {
|
|---|
| 313 |
|
|---|
| 314 | hp->RegisterMe(theFTFBModel);
|
|---|
| 315 | hp->RegisterMe(theBERT);
|
|---|
| 316 | //hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
|---|
| 317 |
|
|---|
| 318 | } else if(pname == "anti_proton" || pname == "anti_neutron") {
|
|---|
| 319 | hp->RegisterMe(theFTFBModel);
|
|---|
| 320 | hp->RegisterMe(theCHIPS);
|
|---|
| 321 | //hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
|---|
| 322 |
|
|---|
| 323 | } else {
|
|---|
| 324 | hp->RegisterMe(theFTFBModel);
|
|---|
| 325 | hp->RegisterMe(theCHIPS);
|
|---|
| 326 | //hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
|---|
| 327 | }
|
|---|
| 328 |
|
|---|
| 329 | if(verbose > 1)
|
|---|
| 330 | G4cout << "### HadronInelasticQBBC: " << hp->GetProcessName()
|
|---|
| 331 | << " added for " << pname << G4endl;
|
|---|
| 332 | }
|
|---|
| 333 | }
|
|---|
| 334 | }
|
|---|