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 // GEANT4 tag $Name: not supported by cvs2svn $ 00027 // 00028 //--------------------------------------------------------------------------- 00029 // 00030 // ClassName: G4LEPPiKBuilder 00031 // 00032 // Author: 2002 J.P. Wellisch 00033 // 00034 // Modified: 00035 // 16.11.2005 G.Folger: don't keep processes as data members, but new these 00036 // 13.06.2006 G.Folger: (re)move elastic scatterring 00037 // 00038 //---------------------------------------------------------------------------- 00039 // 00040 #include "G4LEPPiKBuilder.hh" 00041 00042 #include "globals.hh" 00043 #include "G4ios.hh" 00044 #include "G4SystemOfUnits.hh" 00045 #include "G4ParticleDefinition.hh" 00046 #include "G4ParticleTable.hh" 00047 #include "G4MesonConstructor.hh" 00048 #include "G4BaryonConstructor.hh" 00049 #include "G4ProcessManager.hh" 00050 00051 G4LEPPiKBuilder:: 00052 G4LEPPiKBuilder() : 00053 theLEPionPlusModel(0), theLEPionMinusModel(0), 00054 theLEKaonPlusModel(0), theLEKaonMinusModel(0), 00055 theLEKaonZeroLModel(0), theLEKaonZeroSModel(0) 00056 { 00057 theMin = 0; 00058 theMax = 55*GeV; 00059 theMinPion = theMin; 00060 } 00061 00062 G4LEPPiKBuilder:: 00063 ~G4LEPPiKBuilder() 00064 { 00065 delete theLEPionPlusModel; 00066 } 00067 00068 void G4LEPPiKBuilder:: 00069 Build(G4HadronElasticProcess *) 00070 { 00071 G4cout << "Info - G4LEPPiKBuilder::Build() not adding elastic" << G4endl; 00072 } 00073 00074 void G4LEPPiKBuilder:: 00075 Build(G4PionPlusInelasticProcess * aP) 00076 { 00077 theLEPionPlusModel = new G4LEPionPlusInelastic(); 00078 theLEPionPlusModel->SetMinEnergy(theMinPion); 00079 theLEPionPlusModel->SetMaxEnergy(theMax); 00080 aP->RegisterMe(theLEPionPlusModel); 00081 } 00082 00083 void G4LEPPiKBuilder:: 00084 Build(G4PionMinusInelasticProcess * aP) 00085 { 00086 theLEPionMinusModel = new G4LEPionMinusInelastic(); 00087 theLEPionMinusModel->SetMinEnergy(theMinPion); 00088 theLEPionMinusModel->SetMaxEnergy(theMax); 00089 aP->RegisterMe(theLEPionMinusModel); 00090 } 00091 00092 void G4LEPPiKBuilder:: 00093 Build(G4KaonPlusInelasticProcess * aP) 00094 { 00095 theLEKaonPlusModel = new G4LEKaonPlusInelastic(); 00096 theLEKaonPlusModel->SetMinEnergy(theMin); 00097 theLEKaonPlusModel->SetMaxEnergy(theMax); 00098 aP->RegisterMe(theLEKaonPlusModel); 00099 } 00100 00101 void G4LEPPiKBuilder:: 00102 Build(G4KaonMinusInelasticProcess * aP) 00103 { 00104 theLEKaonMinusModel = new G4LEKaonMinusInelastic(); 00105 theLEKaonMinusModel->SetMaxEnergy(theMax); 00106 theLEKaonMinusModel->SetMinEnergy(theMin); 00107 aP->RegisterMe(theLEKaonMinusModel); 00108 } 00109 00110 void G4LEPPiKBuilder:: 00111 Build(G4KaonZeroLInelasticProcess * aP) 00112 { 00113 theLEKaonZeroLModel = new G4LEKaonZeroLInelastic(); 00114 theLEKaonZeroLModel->SetMaxEnergy(theMax); 00115 theLEKaonZeroLModel->SetMinEnergy(theMin); 00116 aP->RegisterMe(theLEKaonZeroLModel); 00117 } 00118 00119 void G4LEPPiKBuilder:: 00120 Build(G4KaonZeroSInelasticProcess * aP) 00121 { 00122 theLEKaonZeroSModel = new G4LEKaonZeroSInelastic(); 00123 theLEKaonZeroSModel->SetMaxEnergy(theMax); 00124 theLEKaonZeroSModel->SetMinEnergy(theMin); 00125 aP->RegisterMe(theLEKaonZeroSModel); 00126 } 00127 00128 // 2002 by J.P. Wellisch