Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // 26 // 27 //-------------------------------------------- 27 //--------------------------------------------------------------------------- 28 // 28 // 29 // ClassName: G4HyperonFTFPBuilder 29 // ClassName: G4HyperonFTFPBuilder 30 // 30 // 31 // Author: 2012 G.Folger 31 // Author: 2012 G.Folger 32 // Implementation started from G4HyperonLHE 32 // Implementation started from G4HyperonLHEPBuilder. 33 // 33 // 34 // Modified: 34 // Modified: 35 //-------------------------------------------- 35 //---------------------------------------------------------------------------- 36 36 37 #include "G4HyperonFTFPBuilder.hh" 37 #include "G4HyperonFTFPBuilder.hh" 38 #include "G4SystemOfUnits.hh" 38 #include "G4SystemOfUnits.hh" 39 #include "G4ParticleDefinition.hh" 39 #include "G4ParticleDefinition.hh" 40 #include "G4ParticleTable.hh" 40 #include "G4ParticleTable.hh" 41 #include "G4ProcessManager.hh" 41 #include "G4ProcessManager.hh" 42 #include "G4HadronInelasticProcess.hh" << 42 #include "G4LambdaInelasticProcess.hh" >> 43 #include "G4AntiLambdaInelasticProcess.hh" >> 44 #include "G4SigmaMinusInelasticProcess.hh" >> 45 #include "G4AntiSigmaMinusInelasticProcess.hh" >> 46 #include "G4SigmaPlusInelasticProcess.hh" >> 47 #include "G4AntiSigmaPlusInelasticProcess.hh" >> 48 #include "G4XiMinusInelasticProcess.hh" >> 49 #include "G4AntiXiMinusInelasticProcess.hh" >> 50 #include "G4XiZeroInelasticProcess.hh" >> 51 #include "G4AntiXiZeroInelasticProcess.hh" >> 52 #include "G4OmegaMinusInelasticProcess.hh" >> 53 #include "G4AntiOmegaMinusInelasticProcess.hh" 43 #include "G4CrossSectionInelastic.hh" 54 #include "G4CrossSectionInelastic.hh" 44 #include "G4ComponentGGHadronNucleusXsc.hh" 55 #include "G4ComponentGGHadronNucleusXsc.hh" 45 #include "G4HadronicParameters.hh" 56 #include "G4HadronicParameters.hh" 46 #include "G4TheoFSGenerator.hh" 57 #include "G4TheoFSGenerator.hh" 47 #include "G4GeneratorPrecompoundInterface.hh" 58 #include "G4GeneratorPrecompoundInterface.hh" 48 #include "G4FTFModel.hh" 59 #include "G4FTFModel.hh" 49 #include "G4LundStringFragmentation.hh" 60 #include "G4LundStringFragmentation.hh" 50 #include "G4ExcitedStringDecay.hh" 61 #include "G4ExcitedStringDecay.hh" 51 #include "G4CascadeInterface.hh" 62 #include "G4CascadeInterface.hh" 52 #include "G4QuasiElasticChannel.hh" 63 #include "G4QuasiElasticChannel.hh" 53 64 54 65 55 G4HyperonFTFPBuilder::G4HyperonFTFPBuilder( G4 66 G4HyperonFTFPBuilder::G4HyperonFTFPBuilder( G4bool quasiElastic ) { 56 // The following energy limits refer to FTFP 67 // The following energy limits refer to FTFP only and only for hyperons 57 // (for antihyperons, the min energy is assu 68 // (for antihyperons, the min energy is assumed to be 0.0; the max is the same as for hyperons) 58 theMin = G4HadronicParameters::Instance()->G 69 theMin = G4HadronicParameters::Instance()->GetMinEnergyTransitionFTF_Cascade(); 59 theMax = G4HadronicParameters::Instance()->G 70 theMax = G4HadronicParameters::Instance()->GetMaxEnergy(); 60 // Hyperon : Bertini at low energies, then F 71 // Hyperon : Bertini at low energies, then FTFP 61 theHyperonFTFP = new G4TheoFSGenerator( "FTF 72 theHyperonFTFP = new G4TheoFSGenerator( "FTFP" ); 62 theHyperonFTFP->SetMinEnergy( theMin ); 73 theHyperonFTFP->SetMinEnergy( theMin ); 63 theHyperonFTFP->SetMaxEnergy( theMax ); 74 theHyperonFTFP->SetMaxEnergy( theMax ); 64 G4FTFModel* theStringModel = new G4FTFModel; 75 G4FTFModel* theStringModel = new G4FTFModel; 65 theStringModel->SetFragmentationModel( new G 76 theStringModel->SetFragmentationModel( new G4ExcitedStringDecay ); 66 G4GeneratorPrecompoundInterface* theCascade 77 G4GeneratorPrecompoundInterface* theCascade = new G4GeneratorPrecompoundInterface; 67 theHyperonFTFP->SetTransport( theCascade ); 78 theHyperonFTFP->SetTransport( theCascade ); 68 theHyperonFTFP->SetHighEnergyGenerator( theS 79 theHyperonFTFP->SetHighEnergyGenerator( theStringModel ); 69 if ( quasiElastic ) theHyperonFTFP->SetQuasi 80 if ( quasiElastic ) theHyperonFTFP->SetQuasiElasticChannel( new G4QuasiElasticChannel ); 70 81 71 theBertini = new G4CascadeInterface; 82 theBertini = new G4CascadeInterface; 72 theBertini->SetMinEnergy( 0.0 ); 83 theBertini->SetMinEnergy( 0.0 ); 73 theBertini->SetMaxEnergy( G4HadronicParamete 84 theBertini->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergyTransitionFTF_Cascade() ); 74 85 75 // AntiHyperons: Use FTFP for full energy ra 86 // AntiHyperons: Use FTFP for full energy range, starting at 0. 76 theAntiHyperonFTFP = new G4TheoFSGenerator( 87 theAntiHyperonFTFP = new G4TheoFSGenerator( "FTFP" ); 77 theAntiHyperonFTFP->SetMinEnergy( 0.0 ); 88 theAntiHyperonFTFP->SetMinEnergy( 0.0 ); 78 theAntiHyperonFTFP->SetMaxEnergy( theMax ); 89 theAntiHyperonFTFP->SetMaxEnergy( theMax ); 79 theAntiHyperonFTFP->SetTransport( theCascade 90 theAntiHyperonFTFP->SetTransport( theCascade ); 80 theAntiHyperonFTFP->SetHighEnergyGenerator( 91 theAntiHyperonFTFP->SetHighEnergyGenerator( theStringModel ); 81 if ( quasiElastic ) theAntiHyperonFTFP->SetQ 92 if ( quasiElastic ) theAntiHyperonFTFP->SetQuasiElasticChannel( new G4QuasiElasticChannel ); 82 93 83 // use Glauber-Gribov cross sections 94 // use Glauber-Gribov cross sections 84 theInelasticCrossSection = new G4CrossSectio 95 theInelasticCrossSection = new G4CrossSectionInelastic( new G4ComponentGGHadronNucleusXsc ); 85 } 96 } 86 97 87 98 88 G4HyperonFTFPBuilder::~G4HyperonFTFPBuilder() 99 G4HyperonFTFPBuilder::~G4HyperonFTFPBuilder() {} 89 100 90 101 91 void G4HyperonFTFPBuilder::Build( G4HadronInel << 102 void G4HyperonFTFPBuilder::Build( G4LambdaInelasticProcess* aP ) { 92 if ( aP->GetParticleDefinition() && aP->Ge << 103 theHyperonFTFP->SetMinEnergy( theMin ); 93 // Anti-hyperon << 104 theHyperonFTFP->SetMaxEnergy( theMax ); 94 theAntiHyperonFTFP->SetMaxEnergy( theMax ) << 105 aP->RegisterMe( theBertini ); 95 aP->RegisterMe( theAntiHyperonFTFP ); << 106 aP->RegisterMe( theHyperonFTFP ); 96 } else { << 107 aP->AddDataSet( theInelasticCrossSection ); 97 // Hyperon << 108 } 98 theHyperonFTFP->SetMinEnergy( theMin ); << 109 99 theHyperonFTFP->SetMaxEnergy( theMax ); << 110 void G4HyperonFTFPBuilder::Build( G4AntiLambdaInelasticProcess* aP ) { 100 aP->RegisterMe( theBertini ); << 111 theAntiHyperonFTFP->SetMaxEnergy( theMax ); 101 aP->RegisterMe( theHyperonFTFP ); << 112 aP->RegisterMe( theAntiHyperonFTFP ); 102 } << 113 aP->AddDataSet( theInelasticCrossSection ); >> 114 } >> 115 >> 116 >> 117 void G4HyperonFTFPBuilder::Build( G4SigmaMinusInelasticProcess* aP ) { >> 118 theHyperonFTFP->SetMinEnergy( theMin ); >> 119 theHyperonFTFP->SetMaxEnergy( theMax ); >> 120 aP->RegisterMe( theBertini ); >> 121 aP->RegisterMe( theHyperonFTFP ); >> 122 aP->AddDataSet( theInelasticCrossSection ); >> 123 } >> 124 >> 125 void G4HyperonFTFPBuilder::Build( G4AntiSigmaMinusInelasticProcess* aP ) { >> 126 theAntiHyperonFTFP->SetMaxEnergy( theMax ); >> 127 aP->RegisterMe( theAntiHyperonFTFP ); >> 128 aP->AddDataSet( theInelasticCrossSection ); >> 129 } >> 130 >> 131 >> 132 void G4HyperonFTFPBuilder::Build( G4SigmaPlusInelasticProcess* aP ) { >> 133 theHyperonFTFP->SetMinEnergy( theMin ); >> 134 theHyperonFTFP->SetMaxEnergy( theMax ); >> 135 aP->RegisterMe( theBertini ); >> 136 aP->RegisterMe( theHyperonFTFP ); >> 137 aP->AddDataSet( theInelasticCrossSection ); >> 138 } >> 139 >> 140 void G4HyperonFTFPBuilder::Build( G4AntiSigmaPlusInelasticProcess* aP ) { >> 141 theAntiHyperonFTFP->SetMaxEnergy( theMax ); >> 142 aP->RegisterMe( theAntiHyperonFTFP ); >> 143 aP->AddDataSet( theInelasticCrossSection ); >> 144 } >> 145 >> 146 >> 147 void G4HyperonFTFPBuilder::Build( G4XiMinusInelasticProcess* aP ) { >> 148 theHyperonFTFP->SetMinEnergy( theMin ); >> 149 theHyperonFTFP->SetMaxEnergy( theMax ); >> 150 aP->RegisterMe( theBertini ); >> 151 aP->RegisterMe( theHyperonFTFP ); >> 152 aP->AddDataSet( theInelasticCrossSection ); >> 153 } >> 154 >> 155 void G4HyperonFTFPBuilder::Build( G4AntiXiMinusInelasticProcess* aP ) { >> 156 theAntiHyperonFTFP->SetMaxEnergy( theMax ); >> 157 aP->RegisterMe( theAntiHyperonFTFP ); >> 158 aP->AddDataSet( theInelasticCrossSection ); >> 159 } >> 160 >> 161 >> 162 void G4HyperonFTFPBuilder::Build( G4XiZeroInelasticProcess* aP ) { >> 163 theHyperonFTFP->SetMinEnergy( theMin ); >> 164 theHyperonFTFP->SetMaxEnergy( theMax ); >> 165 aP->RegisterMe( theBertini ); >> 166 aP->RegisterMe( theHyperonFTFP ); 103 aP->AddDataSet( theInelasticCrossSection ); 167 aP->AddDataSet( theInelasticCrossSection ); 104 } 168 } 105 169 >> 170 void G4HyperonFTFPBuilder::Build( G4AntiXiZeroInelasticProcess* aP ) { >> 171 theAntiHyperonFTFP->SetMaxEnergy( theMax ); >> 172 aP->RegisterMe( theAntiHyperonFTFP ); >> 173 aP->AddDataSet( theInelasticCrossSection ); >> 174 } >> 175 >> 176 >> 177 void G4HyperonFTFPBuilder::Build( G4OmegaMinusInelasticProcess* aP ) { >> 178 theHyperonFTFP->SetMinEnergy( theMin ); >> 179 theHyperonFTFP->SetMaxEnergy( theMax ); >> 180 aP->RegisterMe( theBertini ); >> 181 aP->RegisterMe( theHyperonFTFP ); >> 182 aP->AddDataSet( theInelasticCrossSection ); >> 183 } >> 184 >> 185 void G4HyperonFTFPBuilder::Build( G4AntiOmegaMinusInelasticProcess* aP ) { >> 186 theAntiHyperonFTFP->SetMaxEnergy( theMax ); >> 187 aP->RegisterMe( theAntiHyperonFTFP ); >> 188 aP->AddDataSet( theInelasticCrossSection ); >> 189 } 106 190