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: G4FTFPAntiBarionBuilder.cc $ 00027 // GEANT4 tag $Name: $ 00028 // 00029 //--------------------------------------------------------------------------- 00030 // 00031 // ClassName: G4FTFPAntiBarionBuilder 00032 // 00033 // Author: 2011 J. Apostolakis 00034 // 00035 // Modified: 00036 // 2011.02.22 J.Apostolakis - Started from G4FTFPPiKBuilder 00037 //---------------------------------------------------------------------------- 00038 // 00039 #include "G4FTFPAntiBarionBuilder.hh" 00040 #include "G4SystemOfUnits.hh" 00041 #include "G4ParticleDefinition.hh" 00042 #include "G4ParticleTable.hh" 00043 #include "G4ProcessManager.hh" 00044 #include "G4ComponentAntiNuclNuclearXS.hh" // For anti-ions 00045 #include "G4CrossSectionInelastic.hh" 00046 00047 // #include "G4AntiBarionNuclearCrossSection.hh" 00048 00049 G4FTFPAntiBarionBuilder:: 00050 G4FTFPAntiBarionBuilder(G4bool quasiElastic) 00051 { 00052 theAntiNucleonData = 00053 new G4CrossSectionInelastic(theAntiNucleonXS=new G4ComponentAntiNuclNuclearXS()); 00054 00055 theMin = 0.0*GeV; 00056 theMax = 100.0*TeV; 00057 theModel = new G4TheoFSGenerator("FTFP"); 00058 00059 theStringModel = new G4FTFModel; 00060 theStringDecay = new G4ExcitedStringDecay(theLund = new G4LundStringFragmentation); 00061 theStringModel->SetFragmentationModel(theStringDecay); 00062 00063 thePreEquilib = new G4PreCompoundModel(theHandler = new G4ExcitationHandler); 00064 theCascade = new G4GeneratorPrecompoundInterface(thePreEquilib); 00065 00066 theModel->SetHighEnergyGenerator(theStringModel); 00067 if (quasiElastic) 00068 { 00069 theQuasiElastic=new G4QuasiElasticChannel; 00070 theModel->SetQuasiElasticChannel(theQuasiElastic); 00071 } else 00072 { theQuasiElastic=0;} 00073 00074 theModel->SetTransport(theCascade); 00075 theModel->SetMinEnergy(theMin); 00076 theModel->SetMaxEnergy(100*TeV); 00077 } 00078 00079 G4FTFPAntiBarionBuilder::~G4FTFPAntiBarionBuilder() 00080 { 00081 delete theCascade; 00082 delete theStringDecay; 00083 delete theStringModel; 00084 delete theModel; 00085 if ( theQuasiElastic ) delete theQuasiElastic; 00086 delete thePreEquilib; 00087 //delete theHandler; 00088 delete theLund; 00089 delete theAntiNucleonXS; 00090 delete theAntiNucleonData; 00091 } 00092 00093 void G4FTFPAntiBarionBuilder:: 00094 Build(G4HadronElasticProcess * ) {} 00095 00096 void G4FTFPAntiBarionBuilder:: 00097 Build(G4AntiProtonInelasticProcess * aP) 00098 { 00099 theModel->SetMinEnergy(theMin); 00100 theModel->SetMaxEnergy(theMax); 00101 aP->AddDataSet(theAntiNucleonData); 00102 aP->RegisterMe(theModel); 00103 } 00104 00105 void G4FTFPAntiBarionBuilder:: 00106 Build(G4AntiNeutronInelasticProcess * aP) 00107 { 00108 theModel->SetMinEnergy(theMin); 00109 theModel->SetMaxEnergy(theMax); 00110 aP->AddDataSet(theAntiNucleonData); 00111 aP->RegisterMe(theModel); 00112 } 00113 00114 void G4FTFPAntiBarionBuilder:: 00115 Build(G4AntiDeuteronInelasticProcess * aP) 00116 { 00117 theModel->SetMinEnergy(theMin); 00118 theModel->SetMaxEnergy(theMax); 00119 aP->AddDataSet(theAntiNucleonData); 00120 aP->RegisterMe(theModel); 00121 } 00122 00123 void G4FTFPAntiBarionBuilder:: 00124 Build(G4AntiTritonInelasticProcess * aP) 00125 { 00126 theModel->SetMinEnergy(theMin); 00127 theModel->SetMaxEnergy(theMax); 00128 aP->AddDataSet(theAntiNucleonData); 00129 aP->RegisterMe(theModel); 00130 } 00131 00132 void G4FTFPAntiBarionBuilder:: 00133 Build(G4AntiHe3InelasticProcess * aP) 00134 { 00135 theModel->SetMinEnergy(theMin); 00136 theModel->SetMaxEnergy(theMax); 00137 aP->AddDataSet(theAntiNucleonData); 00138 aP->RegisterMe(theModel); 00139 } 00140 00141 void G4FTFPAntiBarionBuilder:: 00142 Build(G4AntiAlphaInelasticProcess * aP) 00143 { 00144 theModel->SetMinEnergy(theMin); 00145 theModel->SetMaxEnergy(theMax); 00146 aP->AddDataSet(theAntiNucleonData); 00147 aP->RegisterMe(theModel); 00148 }