00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id$ 00027 // 00028 //--------------------------------------------------------------------------- 00029 // 00030 // ClassName: G4QGSPPiKBuilder 00031 // 00032 // Author: 2002 J.P. Wellisch 00033 // 00034 // Modified: 00035 // 17.11.2010 G.Folger, use G4CrossSectionPairGG for relativistic rise of cross 00036 // section at high energies. 00037 // 30.03.2009 V.Ivanchenko create cross section by new 00038 // 00039 //---------------------------------------------------------------------------- 00040 // 00041 #include "G4QGSPPiKBuilder.hh" 00042 #include "G4SystemOfUnits.hh" 00043 #include "G4ParticleDefinition.hh" 00044 #include "G4ParticleTable.hh" 00045 #include "G4ProcessManager.hh" 00046 #include "G4PiNuclearCrossSection.hh" 00047 #include "G4CrossSectionPairGG.hh" 00048 #include "G4ChipsKaonMinusInelasticXS.hh" 00049 #include "G4ChipsKaonPlusInelasticXS.hh" 00050 #include "G4ChipsKaonZeroInelasticXS.hh" 00051 #include "G4CrossSectionDataSetRegistry.hh" 00052 00053 G4QGSPPiKBuilder:: 00054 G4QGSPPiKBuilder(G4bool quasiElastic, G4bool projectileDiffraction) 00055 { 00056 thePiData = new G4CrossSectionPairGG(new G4PiNuclearCrossSection(), 91*GeV); 00057 00058 theMin = 12*GeV; 00059 theModel = new G4TheoFSGenerator("QGSP"); 00060 00061 theStringModel = new G4QGSModel< G4QGSParticipants >; 00062 theStringDecay = new G4ExcitedStringDecay(theQGSM = new G4QGSMFragmentation); 00063 theStringModel->SetFragmentationModel(theStringDecay); 00064 00065 00066 theCascade = new G4GeneratorPrecompoundInterface; 00067 thePreEquilib = new G4PreCompoundModel(theHandler = new G4ExcitationHandler); 00068 theCascade->SetDeExcitation(thePreEquilib); 00069 00070 theModel->SetHighEnergyGenerator(theStringModel); 00071 if (quasiElastic) 00072 { 00073 theQuasiElastic=new G4QuasiElasticChannel; 00074 theModel->SetQuasiElasticChannel(theQuasiElastic); 00075 } else 00076 { theQuasiElastic=0;} 00077 if ( projectileDiffraction ) 00078 { 00079 theProjectileDiffraction=new G4ProjectileDiffractiveChannel; 00080 theModel->SetProjectileDiffraction(theProjectileDiffraction); 00081 } else 00082 { theProjectileDiffraction=0;} 00083 00084 theModel->SetTransport(theCascade); 00085 } 00086 00087 G4QGSPPiKBuilder:: 00088 ~G4QGSPPiKBuilder() 00089 { 00090 delete theCascade; 00091 delete thePreEquilib; 00092 if ( theQuasiElastic ) delete theQuasiElastic; 00093 if ( theProjectileDiffraction ) delete theProjectileDiffraction; 00094 delete theStringDecay; 00095 delete theStringModel; 00096 delete theModel; 00097 delete theQGSM; 00098 //delete theHandler; 00099 } 00100 00101 void G4QGSPPiKBuilder:: 00102 Build(G4HadronElasticProcess * ) {} 00103 00104 void G4QGSPPiKBuilder:: 00105 Build(G4PionPlusInelasticProcess * aP) 00106 { 00107 theModel->SetMinEnergy(theMin); 00108 theModel->SetMaxEnergy(100*TeV); 00109 aP->AddDataSet(thePiData); 00110 aP->RegisterMe(theModel); 00111 } 00112 00113 void G4QGSPPiKBuilder:: 00114 Build(G4PionMinusInelasticProcess * aP) 00115 { 00116 theModel->SetMinEnergy(theMin); 00117 theModel->SetMaxEnergy(100*TeV); 00118 aP->AddDataSet(thePiData); 00119 aP->RegisterMe(theModel); 00120 } 00121 00122 void G4QGSPPiKBuilder:: 00123 Build(G4KaonPlusInelasticProcess * aP) 00124 { 00125 theModel->SetMinEnergy(theMin); 00126 theModel->SetMaxEnergy(100*TeV); 00127 aP->RegisterMe(theModel); 00128 aP->AddDataSet(G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonPlusInelasticXS::Default_Name())); 00129 } 00130 00131 void G4QGSPPiKBuilder:: 00132 Build(G4KaonMinusInelasticProcess * aP) 00133 { 00134 theModel->SetMinEnergy(theMin); 00135 theModel->SetMaxEnergy(100*TeV); 00136 aP->RegisterMe(theModel); 00137 aP->AddDataSet(G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonMinusInelasticXS::Default_Name())); 00138 } 00139 00140 void G4QGSPPiKBuilder:: 00141 Build(G4KaonZeroLInelasticProcess * aP) 00142 { 00143 theModel->SetMinEnergy(theMin); 00144 theModel->SetMaxEnergy(100*TeV); 00145 aP->RegisterMe(theModel); 00146 aP->AddDataSet(G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonZeroInelasticXS::Default_Name())); 00147 } 00148 00149 void G4QGSPPiKBuilder:: 00150 Build(G4KaonZeroSInelasticProcess * aP) 00151 { 00152 theModel->SetMinEnergy(theMin); 00153 theModel->SetMaxEnergy(100*TeV); 00154 aP->RegisterMe(theModel); 00155 } 00156 00157 // 2002 by J.P. Wellisch