[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 | // |
---|
[1340] | 26 | // $Id: G4IonBinaryCascadePhysics.cc,v 1.4 2010/07/30 14:20:08 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: phys-lists-V09-03-34 $ |
---|
[825] | 28 | // |
---|
| 29 | //--------------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // ClassName: G4IonBinaryCascadePhysics |
---|
| 32 | // |
---|
| 33 | // Author: V.Ivanchenko 09.11.2005 |
---|
| 34 | // |
---|
| 35 | // Modified: |
---|
| 36 | // 23.06.06 V.Ivanchenko set emaxLHEP=1 TeV |
---|
| 37 | // 24.06.06 V.Ivanchenko fix typo |
---|
| 38 | // |
---|
| 39 | //---------------------------------------------------------------------------- |
---|
| 40 | // |
---|
| 41 | |
---|
| 42 | #include "G4IonBinaryCascadePhysics.hh" |
---|
| 43 | |
---|
| 44 | #include "G4DeuteronInelasticProcess.hh" |
---|
| 45 | #include "G4TritonInelasticProcess.hh" |
---|
| 46 | #include "G4AlphaInelasticProcess.hh" |
---|
| 47 | #include "G4HadronInelasticProcess.hh" |
---|
| 48 | |
---|
| 49 | #include "G4BinaryLightIonReaction.hh" |
---|
| 50 | #include "G4TripathiCrossSection.hh" |
---|
| 51 | #include "G4TripathiLightCrossSection.hh" |
---|
| 52 | #include "G4IonsShenCrossSection.hh" |
---|
[1340] | 53 | #include "G4IonProtonCrossSection.hh" |
---|
[825] | 54 | |
---|
| 55 | #include "G4ParticleDefinition.hh" |
---|
| 56 | #include "G4ParticleTable.hh" |
---|
| 57 | #include "G4ProcessManager.hh" |
---|
| 58 | |
---|
| 59 | // Nuclei |
---|
| 60 | #include "G4IonConstructor.hh" |
---|
| 61 | |
---|
[1315] | 62 | G4IonBinaryCascadePhysics::G4IonBinaryCascadePhysics(G4int ver) |
---|
| 63 | : G4VPhysicsConstructor("IonBinaryCascade"), verbose(ver), wasActivated(false) |
---|
| 64 | { |
---|
| 65 | emax = 20.*GeV; |
---|
| 66 | emaxLHEP = 1.*TeV; |
---|
| 67 | eminBIC = 0.*MeV; |
---|
| 68 | if(verbose > 1) G4cout << "### G4IonBinaryCascadePhysics" << G4endl; |
---|
| 69 | } |
---|
| 70 | |
---|
[825] | 71 | G4IonBinaryCascadePhysics::G4IonBinaryCascadePhysics(const G4String& name, |
---|
[1315] | 72 | G4int ver) |
---|
| 73 | : G4VPhysicsConstructor(name), verbose(ver), wasActivated(false) |
---|
[825] | 74 | { |
---|
| 75 | emax = 20.*GeV; |
---|
| 76 | emaxLHEP = 1.*TeV; |
---|
| 77 | eminBIC = 0.*MeV; |
---|
| 78 | if(verbose > 1) G4cout << "### G4IonBinaryCascadePhysics" << G4endl; |
---|
| 79 | } |
---|
| 80 | |
---|
| 81 | G4IonBinaryCascadePhysics::~G4IonBinaryCascadePhysics() |
---|
| 82 | { |
---|
| 83 | if(wasActivated) { |
---|
| 84 | delete fTripathi; |
---|
| 85 | delete fTripathiLight; |
---|
| 86 | delete fShen; |
---|
[1340] | 87 | delete fIonH; |
---|
[825] | 88 | delete fLEDModel; |
---|
| 89 | delete fLETModel; |
---|
| 90 | delete fLEAModel; |
---|
| 91 | G4int i; |
---|
| 92 | G4int n = p_list.size(); |
---|
| 93 | for(i=0; i<n; i++) {delete p_list[i];} |
---|
| 94 | n = model_list.size(); |
---|
| 95 | for(i=0; i<n; i++) {delete model_list[i];} |
---|
| 96 | } |
---|
| 97 | } |
---|
| 98 | |
---|
| 99 | void G4IonBinaryCascadePhysics::ConstructProcess() |
---|
| 100 | { |
---|
[1340] | 101 | if(wasActivated) { return; } |
---|
[825] | 102 | wasActivated = true; |
---|
| 103 | |
---|
| 104 | G4BinaryLightIonReaction* fBC= new G4BinaryLightIonReaction(); |
---|
| 105 | model_list.push_back(fBC); |
---|
| 106 | fShen = new G4IonsShenCrossSection; |
---|
| 107 | fTripathi = new G4TripathiCrossSection; |
---|
| 108 | fTripathiLight = new G4TripathiLightCrossSection; |
---|
[1340] | 109 | fIonH = new G4IonProtonCrossSection; |
---|
[825] | 110 | |
---|
| 111 | fLEDModel = new G4LEDeuteronInelastic(); |
---|
| 112 | fLETModel = new G4LETritonInelastic(); |
---|
| 113 | fLEAModel = new G4LEAlphaInelastic(); |
---|
| 114 | |
---|
| 115 | AddProcess("dInelastic", G4Deuteron::Deuteron(), fBC, fLEDModel); |
---|
| 116 | AddProcess("tInelastic",G4Triton::Triton(), fBC, fLETModel); |
---|
| 117 | AddProcess("He3Inelastic",G4He3::He3(), fBC, 0); |
---|
| 118 | AddProcess("alphaInelastic", G4Alpha::Alpha(), fBC, fLEAModel); |
---|
| 119 | AddProcess("ionInelastic",G4GenericIon::GenericIon(), fBC, 0); |
---|
| 120 | |
---|
| 121 | } |
---|
| 122 | |
---|
| 123 | void G4IonBinaryCascadePhysics::AddProcess(const G4String& name, |
---|
| 124 | G4ParticleDefinition* p, |
---|
| 125 | G4HadronicInteraction* hmodel, |
---|
| 126 | G4HadronicInteraction* lmodel) |
---|
| 127 | { |
---|
| 128 | G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, p); |
---|
| 129 | p_list.push_back(hadi); |
---|
| 130 | G4ProcessManager* pManager = p->GetProcessManager(); |
---|
| 131 | pManager->AddDiscreteProcess(hadi); |
---|
[988] | 132 | hadi->AddDataSet(fShen); |
---|
[825] | 133 | hadi->AddDataSet(fTripathi); |
---|
| 134 | hadi->AddDataSet(fTripathiLight); |
---|
[1340] | 135 | if(p == G4GenericIon::GenericIon()) { hadi->AddDataSet(fIonH); } |
---|
[825] | 136 | hmodel->SetMinEnergy(eminBIC); |
---|
| 137 | hmodel->SetMaxEnergy(emax); |
---|
| 138 | hadi->RegisterMe(hmodel); |
---|
| 139 | if(lmodel) { |
---|
| 140 | lmodel->SetMinEnergy(emax - MeV); |
---|
| 141 | lmodel->SetMaxEnergy(emaxLHEP); |
---|
| 142 | hadi->RegisterMe(lmodel); |
---|
| 143 | } |
---|
| 144 | if(verbose > 1) { |
---|
| 145 | G4cout << "Register " << hadi->GetProcessName() |
---|
| 146 | << " for " << p->GetParticleName() |
---|
| 147 | << " Binary Cascade for E(MeV)= " << eminBIC << " - " << emax; |
---|
[988] | 148 | if(lmodel) { |
---|
| 149 | G4cout << " LHEP for E(MeV)= " << emax-MeV << " - " << emaxLHEP; |
---|
| 150 | } |
---|
[825] | 151 | G4cout << G4endl; |
---|
| 152 | } |
---|
| 153 | } |
---|
| 154 | |
---|
| 155 | void G4IonBinaryCascadePhysics::ConstructParticle() |
---|
| 156 | { |
---|
| 157 | // Construct light ions |
---|
| 158 | G4IonConstructor pConstructor; |
---|
| 159 | pConstructor.ConstructParticle(); |
---|
| 160 | } |
---|