00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #include "HadronPhysicsLHEP.hh"
00041
00042 #include "globals.hh"
00043 #include "G4ios.hh"
00044 #include <iomanip>
00045 #include "G4ParticleDefinition.hh"
00046 #include "G4ParticleTable.hh"
00047
00048 #include "G4MesonConstructor.hh"
00049 #include "G4BaryonConstructor.hh"
00050 #include "G4ShortLivedConstructor.hh"
00051
00052
00053 #include "G4PhysicsConstructorFactory.hh"
00054
00055 G4_DECLARE_PHYSCONSTR_FACTORY(HadronPhysicsLHEP);
00056
00057 HadronPhysicsLHEP::HadronPhysicsLHEP(G4int)
00058 : G4VPhysicsConstructor("hInelastic LHEP")
00059 , theNeutrons(0)
00060 , theLHEPNeutron(0)
00061 , thePiK(0)
00062 , theLHEPPiK(0)
00063 , thePro(0)
00064 , theLHEPPro(0)
00065 , theMiscLHEP(0)
00066 , theStoppingHadron(0)
00067 {}
00068
00069 HadronPhysicsLHEP::HadronPhysicsLHEP(const G4String& name)
00070 : G4VPhysicsConstructor(name)
00071 , theNeutrons(0)
00072 , theLHEPNeutron(0)
00073 , thePiK(0)
00074 , theLHEPPiK(0)
00075 , thePro(0)
00076 , theLHEPPro(0)
00077 , theMiscLHEP(0)
00078 , theStoppingHadron(0)
00079 {}
00080
00081 void HadronPhysicsLHEP::CreateModels()
00082 {
00083 theNeutrons=new G4NeutronBuilder;
00084 theNeutrons->RegisterMe(theLHEPNeutron=new G4LHEPNeutronBuilder);
00085
00086 thePro=new G4ProtonBuilder;
00087 thePro->RegisterMe(theLHEPPro=new G4LHEPProtonBuilder);
00088
00089 thePiK=new G4PiKBuilder;
00090 thePiK->RegisterMe(theLHEPPiK=new G4LHEPPiKBuilder);
00091
00092 theMiscLHEP=new G4MiscLHEPBuilder;
00093 theStoppingHadron=new G4LHEPStoppingHadronBuilder;
00094 }
00095
00096 HadronPhysicsLHEP::~HadronPhysicsLHEP()
00097 {
00098 delete theLHEPNeutron;
00099 delete theNeutrons;
00100 delete theLHEPPro;
00101 delete thePro;
00102 delete theLHEPPiK;
00103 delete thePiK;
00104 }
00105
00106 void HadronPhysicsLHEP::ConstructParticle()
00107 {
00108 G4MesonConstructor pMesonConstructor;
00109 pMesonConstructor.ConstructParticle();
00110
00111 G4BaryonConstructor pBaryonConstructor;
00112 pBaryonConstructor.ConstructParticle();
00113
00114 G4ShortLivedConstructor pShortLivedConstructor;
00115 pShortLivedConstructor.ConstructParticle();
00116 }
00117
00118 #include "G4ProcessManager.hh"
00119 void HadronPhysicsLHEP::ConstructProcess()
00120 {
00121 CreateModels();
00122 theNeutrons->Build();
00123 thePro->Build();
00124 thePiK->Build();
00125 theMiscLHEP->Build();
00126 theStoppingHadron->Build();
00127 }
00128