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 // $Id: G4QGSPPiKBuilder.cc 75290 2013-10-30 09:20:47Z gcosmo $ 26 // 27 // 27 //-------------------------------------------- 28 //--------------------------------------------------------------------------- 28 // 29 // 29 // ClassName: G4QGSPPiKBuilder 30 // ClassName: G4QGSPPiKBuilder 30 // 31 // 31 // Author: 2002 J.P. Wellisch 32 // Author: 2002 J.P. Wellisch 32 // 33 // 33 // Modified: 34 // Modified: 34 // 17.11.2010 G.Folger, use G4CrossSectionPair 35 // 17.11.2010 G.Folger, use G4CrossSectionPairGG for relativistic rise of cross 35 // section at high energies. 36 // section at high energies. 36 // 30.03.2009 V.Ivanchenko create cross sectio 37 // 30.03.2009 V.Ivanchenko create cross section by new 37 // 38 // 38 //-------------------------------------------- 39 //---------------------------------------------------------------------------- 39 // 40 // 40 #include "G4QGSPPiKBuilder.hh" 41 #include "G4QGSPPiKBuilder.hh" 41 #include "G4SystemOfUnits.hh" 42 #include "G4SystemOfUnits.hh" 42 #include "G4ParticleDefinition.hh" 43 #include "G4ParticleDefinition.hh" 43 #include "G4ParticleTable.hh" 44 #include "G4ParticleTable.hh" 44 #include "G4ProcessManager.hh" 45 #include "G4ProcessManager.hh" 45 #include "G4BGGPionInelasticXS.hh" << 46 #include "G4PiNuclearCrossSection.hh" 46 #include "G4HadronicParameters.hh" << 47 #include "G4CrossSectionPairGG.hh" >> 48 #include "G4ChipsKaonMinusInelasticXS.hh" >> 49 #include "G4ChipsKaonPlusInelasticXS.hh" >> 50 #include "G4ChipsKaonZeroInelasticXS.hh" >> 51 #include "G4CrossSectionDataSetRegistry.hh" >> 52 #include "G4ExcitationHandler.hh" 47 53 48 54 49 G4QGSPPiKBuilder:: 55 G4QGSPPiKBuilder:: 50 G4QGSPPiKBuilder(G4bool quasiElastic) 56 G4QGSPPiKBuilder(G4bool quasiElastic) 51 { << 57 { 52 theMin = G4HadronicParameters::Instance()->G << 58 thePiData = new G4CrossSectionPairGG(new G4PiNuclearCrossSection(), 91*GeV); >> 59 >> 60 theMin = 12*GeV; 53 theModel = new G4TheoFSGenerator("QGSP"); 61 theModel = new G4TheoFSGenerator("QGSP"); 54 62 55 G4QGSModel< G4QGSParticipants >* theStringMo << 63 theStringModel = new G4QGSModel< G4QGSParticipants >; 56 new G4QGSModel< G4QGSParticipants >; << 64 theStringDecay = new G4ExcitedStringDecay(theQGSM = new G4QGSMFragmentation); 57 G4ExcitedStringDecay* theStringDecay = << 58 new G4ExcitedStringDecay(new G4QGSMFragmen << 59 theStringModel->SetFragmentationModel(theStr 65 theStringModel->SetFragmentationModel(theStringDecay); >> 66 60 67 61 G4GeneratorPrecompoundInterface* theCascade << 68 theCascade = new G4GeneratorPrecompoundInterface; 62 new G4GeneratorPrecompoundInterface(); << 69 thePreEquilib = new G4PreCompoundModel(new G4ExcitationHandler); >> 70 theCascade->SetDeExcitation(thePreEquilib); 63 71 64 theModel->SetTransport(theCascade); << 65 theModel->SetHighEnergyGenerator(theStringMo 72 theModel->SetHighEnergyGenerator(theStringModel); 66 if (quasiElastic) 73 if (quasiElastic) 67 { << 74 { 68 theModel->SetQuasiElasticChannel(new G4Q << 75 theQuasiElastic=new G4QuasiElasticChannel; 69 } << 76 theModel->SetQuasiElasticChannel(theQuasiElastic); >> 77 } else >> 78 { theQuasiElastic=0;} >> 79 >> 80 theModel->SetTransport(theCascade); 70 } 81 } 71 82 72 G4QGSPPiKBuilder:: 83 G4QGSPPiKBuilder:: 73 ~G4QGSPPiKBuilder() 84 ~G4QGSPPiKBuilder() 74 { 85 { >> 86 delete theCascade; >> 87 delete thePreEquilib; >> 88 if ( theQuasiElastic ) delete theQuasiElastic; >> 89 delete theStringDecay; >> 90 delete theStringModel; >> 91 delete theModel; >> 92 delete theQGSM; >> 93 } >> 94 >> 95 void G4QGSPPiKBuilder:: >> 96 Build(G4HadronElasticProcess * ) {} >> 97 >> 98 void G4QGSPPiKBuilder:: >> 99 Build(G4PionPlusInelasticProcess * aP) >> 100 { >> 101 theModel->SetMinEnergy(theMin); >> 102 theModel->SetMaxEnergy(100*TeV); >> 103 aP->AddDataSet(thePiData); >> 104 aP->RegisterMe(theModel); 75 } 105 } 76 106 77 void G4QGSPPiKBuilder:: 107 void G4QGSPPiKBuilder:: 78 Build(G4HadronInelasticProcess * aP) << 108 Build(G4PionMinusInelasticProcess * aP) 79 { 109 { 80 theModel->SetMinEnergy(theMin); 110 theModel->SetMinEnergy(theMin); 81 theModel->SetMaxEnergy( G4HadronicParameters << 111 theModel->SetMaxEnergy(100*TeV); 82 if ( aP->GetParticleDefinition() == G4PionPl << 112 aP->AddDataSet(thePiData); 83 aP->AddDataSet( new G4BGGPionInelasticXS( << 84 } else if ( aP->GetParticleDefinition() == G << 85 aP->AddDataSet( new G4BGGPionInelasticXS( << 86 } << 87 aP->RegisterMe(theModel); 113 aP->RegisterMe(theModel); 88 } 114 } >> 115 >> 116 void G4QGSPPiKBuilder:: >> 117 Build(G4KaonPlusInelasticProcess * aP) >> 118 { >> 119 theModel->SetMinEnergy(theMin); >> 120 theModel->SetMaxEnergy(100*TeV); >> 121 aP->RegisterMe(theModel); >> 122 aP->AddDataSet(G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonPlusInelasticXS::Default_Name())); >> 123 } >> 124 >> 125 void G4QGSPPiKBuilder:: >> 126 Build(G4KaonMinusInelasticProcess * aP) >> 127 { >> 128 theModel->SetMinEnergy(theMin); >> 129 theModel->SetMaxEnergy(100*TeV); >> 130 aP->RegisterMe(theModel); >> 131 aP->AddDataSet(G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonMinusInelasticXS::Default_Name())); >> 132 } >> 133 >> 134 void G4QGSPPiKBuilder:: >> 135 Build(G4KaonZeroLInelasticProcess * aP) >> 136 { >> 137 theModel->SetMinEnergy(theMin); >> 138 theModel->SetMaxEnergy(100*TeV); >> 139 aP->RegisterMe(theModel); >> 140 aP->AddDataSet(G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonZeroInelasticXS::Default_Name())); >> 141 } >> 142 >> 143 void G4QGSPPiKBuilder:: >> 144 Build(G4KaonZeroSInelasticProcess * aP) >> 145 { >> 146 theModel->SetMinEnergy(theMin); >> 147 theModel->SetMaxEnergy(100*TeV); >> 148 aP->RegisterMe(theModel); >> 149 } >> 150 >> 151 // 2002 by J.P. Wellisch 89 152