[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 | // |
---|
[850] | 26 | // GEANT4 tag $Name: HEAD $ |
---|
[825] | 27 | // |
---|
| 28 | //--------------------------------------------------------------------------- |
---|
| 29 | // |
---|
| 30 | // ClassName: G4MiscLHEPBuilder |
---|
| 31 | // |
---|
| 32 | // Author: 2002 J.P. Wellisch |
---|
| 33 | // |
---|
| 34 | // Modified: |
---|
| 35 | // 16.11.2005 G.Folger: don't keep processes as data members, but new these |
---|
| 36 | // 13.06.2006 G.Folger: (re)move elastic scatterring |
---|
| 37 | // |
---|
| 38 | //---------------------------------------------------------------------------- |
---|
| 39 | // |
---|
| 40 | #include "G4MiscLHEPBuilder.hh" |
---|
| 41 | |
---|
| 42 | #include "G4ParticleDefinition.hh" |
---|
| 43 | #include "G4ParticleTable.hh" |
---|
| 44 | #include "G4ProcessManager.hh" |
---|
| 45 | |
---|
| 46 | G4MiscLHEPBuilder::G4MiscLHEPBuilder(): wasActivated(false) {} |
---|
| 47 | G4MiscLHEPBuilder::~G4MiscLHEPBuilder() |
---|
| 48 | { |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | void G4MiscLHEPBuilder::Build() |
---|
| 52 | { |
---|
| 53 | G4ProcessManager * aProcMan = 0; |
---|
| 54 | wasActivated = true; |
---|
| 55 | |
---|
| 56 | // anti-Proton |
---|
| 57 | aProcMan = G4AntiProton::AntiProton()->GetProcessManager(); |
---|
| 58 | theLEAntiProtonModel = new G4LEAntiProtonInelastic(); |
---|
| 59 | theHEAntiProtonModel = new G4HEAntiProtonInelastic(); |
---|
| 60 | theHEAntiProtonModel->SetMaxEnergy(100*TeV); |
---|
| 61 | theAntiProtonInelastic.RegisterMe(theLEAntiProtonModel); |
---|
| 62 | theAntiProtonInelastic.RegisterMe(theHEAntiProtonModel); |
---|
| 63 | aProcMan->AddDiscreteProcess(&theAntiProtonInelastic); |
---|
| 64 | |
---|
| 65 | // AntiNeutron |
---|
| 66 | aProcMan = G4AntiNeutron::AntiNeutron()->GetProcessManager(); |
---|
| 67 | theLEAntiNeutronModel = new G4LEAntiNeutronInelastic(); |
---|
| 68 | theHEAntiNeutronModel = new G4HEAntiNeutronInelastic(); |
---|
| 69 | theHEAntiNeutronModel->SetMaxEnergy(100*TeV); |
---|
| 70 | theAntiNeutronInelastic.RegisterMe(theLEAntiNeutronModel); |
---|
| 71 | theAntiNeutronInelastic.RegisterMe(theHEAntiNeutronModel); |
---|
| 72 | aProcMan->AddDiscreteProcess(&theAntiNeutronInelastic); |
---|
| 73 | |
---|
| 74 | // Lambda |
---|
| 75 | aProcMan = G4Lambda::Lambda()->GetProcessManager(); |
---|
| 76 | theLELambdaModel = new G4LELambdaInelastic(); |
---|
| 77 | theHELambdaModel = new G4HELambdaInelastic(); |
---|
| 78 | theHELambdaModel->SetMaxEnergy(100*TeV); |
---|
| 79 | theLambdaInelastic.RegisterMe(theLELambdaModel); |
---|
| 80 | theLambdaInelastic.RegisterMe(theHELambdaModel); |
---|
| 81 | aProcMan->AddDiscreteProcess(&theLambdaInelastic); |
---|
| 82 | |
---|
| 83 | // AntiLambda |
---|
| 84 | aProcMan = G4AntiLambda::AntiLambda()->GetProcessManager(); |
---|
| 85 | theLEAntiLambdaModel = new G4LEAntiLambdaInelastic(); |
---|
| 86 | theHEAntiLambdaModel = new G4HEAntiLambdaInelastic(); |
---|
| 87 | theHEAntiLambdaModel->SetMaxEnergy(100*TeV); |
---|
| 88 | theAntiLambdaInelastic.RegisterMe(theLEAntiLambdaModel); |
---|
| 89 | theAntiLambdaInelastic.RegisterMe(theHEAntiLambdaModel); |
---|
| 90 | aProcMan->AddDiscreteProcess(&theAntiLambdaInelastic); |
---|
| 91 | |
---|
| 92 | // SigmaMinus |
---|
| 93 | aProcMan = G4SigmaMinus::SigmaMinus()->GetProcessManager(); |
---|
| 94 | theLESigmaMinusModel = new G4LESigmaMinusInelastic(); |
---|
| 95 | theHESigmaMinusModel = new G4HESigmaMinusInelastic(); |
---|
| 96 | theHESigmaMinusModel->SetMaxEnergy(100*TeV); |
---|
| 97 | theSigmaMinusInelastic.RegisterMe(theLESigmaMinusModel); |
---|
| 98 | theSigmaMinusInelastic.RegisterMe(theHESigmaMinusModel); |
---|
| 99 | aProcMan->AddDiscreteProcess(&theSigmaMinusInelastic); |
---|
| 100 | |
---|
| 101 | // anti-SigmaMinus |
---|
| 102 | aProcMan = G4AntiSigmaMinus::AntiSigmaMinus()->GetProcessManager(); |
---|
| 103 | theLEAntiSigmaMinusModel = new G4LEAntiSigmaMinusInelastic(); |
---|
| 104 | theHEAntiSigmaMinusModel = new G4HEAntiSigmaMinusInelastic(); |
---|
| 105 | theHEAntiSigmaMinusModel->SetMaxEnergy(100*TeV); |
---|
| 106 | theAntiSigmaMinusInelastic.RegisterMe(theLEAntiSigmaMinusModel); |
---|
| 107 | theAntiSigmaMinusInelastic.RegisterMe(theHEAntiSigmaMinusModel); |
---|
| 108 | aProcMan->AddDiscreteProcess(&theAntiSigmaMinusInelastic); |
---|
| 109 | |
---|
| 110 | // SigmaPlus |
---|
| 111 | aProcMan = G4SigmaPlus::SigmaPlus()->GetProcessManager(); |
---|
| 112 | theLESigmaPlusModel = new G4LESigmaPlusInelastic(); |
---|
| 113 | theHESigmaPlusModel = new G4HESigmaPlusInelastic(); |
---|
| 114 | theHESigmaPlusModel->SetMaxEnergy(100*TeV); |
---|
| 115 | theSigmaPlusInelastic.RegisterMe(theLESigmaPlusModel); |
---|
| 116 | theSigmaPlusInelastic.RegisterMe(theHESigmaPlusModel); |
---|
| 117 | aProcMan->AddDiscreteProcess(&theSigmaPlusInelastic); |
---|
| 118 | |
---|
| 119 | // anti-SigmaPlus |
---|
| 120 | aProcMan = G4AntiSigmaPlus::AntiSigmaPlus()->GetProcessManager(); |
---|
| 121 | theLEAntiSigmaPlusModel = new G4LEAntiSigmaPlusInelastic(); |
---|
| 122 | theHEAntiSigmaPlusModel = new G4HEAntiSigmaPlusInelastic(); |
---|
| 123 | theHEAntiSigmaPlusModel->SetMaxEnergy(100*TeV); |
---|
| 124 | theAntiSigmaPlusInelastic.RegisterMe(theLEAntiSigmaPlusModel); |
---|
| 125 | theAntiSigmaPlusInelastic.RegisterMe(theHEAntiSigmaPlusModel); |
---|
| 126 | aProcMan->AddDiscreteProcess(&theAntiSigmaPlusInelastic); |
---|
| 127 | |
---|
| 128 | // XiMinus |
---|
| 129 | aProcMan = G4XiMinus::XiMinus()->GetProcessManager(); |
---|
| 130 | theLEXiMinusModel = new G4LEXiMinusInelastic(); |
---|
| 131 | theHEXiMinusModel = new G4HEXiMinusInelastic(); |
---|
| 132 | theHEXiMinusModel->SetMaxEnergy(100*TeV); |
---|
| 133 | theXiMinusInelastic.RegisterMe(theLEXiMinusModel); |
---|
| 134 | theXiMinusInelastic.RegisterMe(theHEXiMinusModel); |
---|
| 135 | aProcMan->AddDiscreteProcess(&theXiMinusInelastic); |
---|
| 136 | |
---|
| 137 | // anti-XiMinus |
---|
| 138 | aProcMan = G4AntiXiMinus::AntiXiMinus()->GetProcessManager(); |
---|
| 139 | theLEAntiXiMinusModel = new G4LEAntiXiMinusInelastic(); |
---|
| 140 | theHEAntiXiMinusModel = new G4HEAntiXiMinusInelastic(); |
---|
| 141 | theHEAntiXiMinusModel->SetMaxEnergy(100*TeV); |
---|
| 142 | theAntiXiMinusInelastic.RegisterMe(theLEAntiXiMinusModel); |
---|
| 143 | theAntiXiMinusInelastic.RegisterMe(theHEAntiXiMinusModel); |
---|
| 144 | aProcMan->AddDiscreteProcess(&theAntiXiMinusInelastic); |
---|
| 145 | |
---|
| 146 | // XiZero |
---|
| 147 | aProcMan = G4XiZero::XiZero()->GetProcessManager(); |
---|
| 148 | theLEXiZeroModel = new G4LEXiZeroInelastic(); |
---|
| 149 | theHEXiZeroModel = new G4HEXiZeroInelastic(); |
---|
| 150 | theHEXiZeroModel->SetMaxEnergy(100*TeV); |
---|
| 151 | theXiZeroInelastic.RegisterMe(theLEXiZeroModel); |
---|
| 152 | theXiZeroInelastic.RegisterMe(theHEXiZeroModel); |
---|
| 153 | aProcMan->AddDiscreteProcess(&theXiZeroInelastic); |
---|
| 154 | |
---|
| 155 | // anti-XiZero |
---|
| 156 | aProcMan = G4AntiXiZero::AntiXiZero()->GetProcessManager(); |
---|
| 157 | theLEAntiXiZeroModel = new G4LEAntiXiZeroInelastic(); |
---|
| 158 | theHEAntiXiZeroModel = new G4HEAntiXiZeroInelastic(); |
---|
| 159 | theHEAntiXiZeroModel->SetMaxEnergy(100*TeV); |
---|
| 160 | theAntiXiZeroInelastic.RegisterMe(theLEAntiXiZeroModel); |
---|
| 161 | theAntiXiZeroInelastic.RegisterMe(theHEAntiXiZeroModel); |
---|
| 162 | aProcMan->AddDiscreteProcess(&theAntiXiZeroInelastic); |
---|
| 163 | |
---|
| 164 | // OmegaMinus |
---|
| 165 | aProcMan = G4OmegaMinus::OmegaMinus()->GetProcessManager(); |
---|
| 166 | theLEOmegaMinusModel = new G4LEOmegaMinusInelastic(); |
---|
| 167 | theHEOmegaMinusModel = new G4HEOmegaMinusInelastic(); |
---|
| 168 | theHEOmegaMinusModel->SetMaxEnergy(100*TeV); |
---|
| 169 | theOmegaMinusInelastic.RegisterMe(theLEOmegaMinusModel); |
---|
| 170 | theOmegaMinusInelastic.RegisterMe(theHEOmegaMinusModel); |
---|
| 171 | aProcMan->AddDiscreteProcess(&theOmegaMinusInelastic); |
---|
| 172 | |
---|
| 173 | // anti-OmegaMinus |
---|
| 174 | aProcMan = G4AntiOmegaMinus::AntiOmegaMinus()->GetProcessManager(); |
---|
| 175 | theLEAntiOmegaMinusModel = new G4LEAntiOmegaMinusInelastic(); |
---|
| 176 | theHEAntiOmegaMinusModel = new G4HEAntiOmegaMinusInelastic(); |
---|
| 177 | theHEAntiOmegaMinusModel->SetMaxEnergy(100*TeV); |
---|
| 178 | theAntiOmegaMinusInelastic.RegisterMe(theLEAntiOmegaMinusModel); |
---|
| 179 | theAntiOmegaMinusInelastic.RegisterMe(theHEAntiOmegaMinusModel); |
---|
| 180 | aProcMan->AddDiscreteProcess(&theAntiOmegaMinusInelastic); |
---|
| 181 | } |
---|
| 182 | |
---|
| 183 | // 2002 by J.P. Wellisch |
---|