[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 | // |
---|
[988] | 26 | // $Id: G4IonBinaryCascadePhysics.cc,v 1.2 2009/02/16 10:15:35 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
[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" |
---|
| 53 | |
---|
| 54 | #include "G4ParticleDefinition.hh" |
---|
| 55 | #include "G4ParticleTable.hh" |
---|
| 56 | #include "G4ProcessManager.hh" |
---|
| 57 | |
---|
| 58 | // Nuclei |
---|
| 59 | #include "G4IonConstructor.hh" |
---|
| 60 | |
---|
| 61 | G4IonBinaryCascadePhysics::G4IonBinaryCascadePhysics(const G4String& name, |
---|
| 62 | G4int verb) |
---|
| 63 | : G4VPhysicsConstructor(name), verbose(verb), wasActivated(false) |
---|
| 64 | { |
---|
| 65 | emax = 20.*GeV; |
---|
| 66 | emaxLHEP = 1.*TeV; |
---|
| 67 | eminBIC = 0.*MeV; |
---|
| 68 | if(verbose > 1) G4cout << "### G4IonBinaryCascadePhysics" << G4endl; |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | G4IonBinaryCascadePhysics::~G4IonBinaryCascadePhysics() |
---|
| 72 | { |
---|
| 73 | if(wasActivated) { |
---|
| 74 | delete fTripathi; |
---|
| 75 | delete fTripathiLight; |
---|
| 76 | delete fShen; |
---|
| 77 | delete fLEDModel; |
---|
| 78 | delete fLETModel; |
---|
| 79 | delete fLEAModel; |
---|
| 80 | G4int i; |
---|
| 81 | G4int n = p_list.size(); |
---|
| 82 | for(i=0; i<n; i++) {delete p_list[i];} |
---|
| 83 | n = model_list.size(); |
---|
| 84 | for(i=0; i<n; i++) {delete model_list[i];} |
---|
| 85 | } |
---|
| 86 | } |
---|
| 87 | |
---|
| 88 | void G4IonBinaryCascadePhysics::ConstructProcess() |
---|
| 89 | { |
---|
| 90 | if(wasActivated) return; |
---|
| 91 | wasActivated = true; |
---|
| 92 | |
---|
| 93 | G4BinaryLightIonReaction* fBC= new G4BinaryLightIonReaction(); |
---|
| 94 | model_list.push_back(fBC); |
---|
| 95 | fShen = new G4IonsShenCrossSection; |
---|
| 96 | fTripathi = new G4TripathiCrossSection; |
---|
| 97 | fTripathiLight = new G4TripathiLightCrossSection; |
---|
| 98 | |
---|
| 99 | fLEDModel = new G4LEDeuteronInelastic(); |
---|
| 100 | fLETModel = new G4LETritonInelastic(); |
---|
| 101 | fLEAModel = new G4LEAlphaInelastic(); |
---|
| 102 | |
---|
| 103 | AddProcess("dInelastic", G4Deuteron::Deuteron(), fBC, fLEDModel); |
---|
| 104 | AddProcess("tInelastic",G4Triton::Triton(), fBC, fLETModel); |
---|
| 105 | AddProcess("He3Inelastic",G4He3::He3(), fBC, 0); |
---|
| 106 | AddProcess("alphaInelastic", G4Alpha::Alpha(), fBC, fLEAModel); |
---|
| 107 | AddProcess("ionInelastic",G4GenericIon::GenericIon(), fBC, 0); |
---|
| 108 | |
---|
| 109 | } |
---|
| 110 | |
---|
| 111 | void G4IonBinaryCascadePhysics::AddProcess(const G4String& name, |
---|
| 112 | G4ParticleDefinition* p, |
---|
| 113 | G4HadronicInteraction* hmodel, |
---|
| 114 | G4HadronicInteraction* lmodel) |
---|
| 115 | { |
---|
| 116 | G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, p); |
---|
| 117 | p_list.push_back(hadi); |
---|
| 118 | G4ProcessManager* pManager = p->GetProcessManager(); |
---|
| 119 | pManager->AddDiscreteProcess(hadi); |
---|
[988] | 120 | hadi->AddDataSet(fShen); |
---|
[825] | 121 | hadi->AddDataSet(fTripathi); |
---|
| 122 | hadi->AddDataSet(fTripathiLight); |
---|
| 123 | hmodel->SetMinEnergy(eminBIC); |
---|
| 124 | hmodel->SetMaxEnergy(emax); |
---|
| 125 | hadi->RegisterMe(hmodel); |
---|
| 126 | if(lmodel) { |
---|
| 127 | lmodel->SetMinEnergy(emax - MeV); |
---|
| 128 | lmodel->SetMaxEnergy(emaxLHEP); |
---|
| 129 | hadi->RegisterMe(lmodel); |
---|
| 130 | } |
---|
| 131 | if(verbose > 1) { |
---|
| 132 | G4cout << "Register " << hadi->GetProcessName() |
---|
| 133 | << " for " << p->GetParticleName() |
---|
| 134 | << " Binary Cascade for E(MeV)= " << eminBIC << " - " << emax; |
---|
[988] | 135 | if(lmodel) { |
---|
| 136 | G4cout << " LHEP for E(MeV)= " << emax-MeV << " - " << emaxLHEP; |
---|
| 137 | } |
---|
[825] | 138 | G4cout << G4endl; |
---|
| 139 | } |
---|
| 140 | } |
---|
| 141 | |
---|
| 142 | void G4IonBinaryCascadePhysics::ConstructParticle() |
---|
| 143 | { |
---|
| 144 | // Construct light ions |
---|
| 145 | G4IonConstructor pConstructor; |
---|
| 146 | pConstructor.ConstructParticle(); |
---|
| 147 | } |
---|