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_EMV.hh"
00041
00042 #include "globals.hh"
00043 #include "G4ios.hh"
00044 #include <iomanip>
00045
00046
00047 #include "G4PhysicsConstructorFactory.hh"
00048
00049 G4_DECLARE_PHYSCONSTR_FACTORY(HadronPhysicsLHEP_EMV);
00050
00051 HadronPhysicsLHEP_EMV::HadronPhysicsLHEP_EMV(G4int)
00052 : G4VPhysicsConstructor("hInelastic LHEP_EMV")
00053 , theNeutrons(0)
00054 , theLHEPNeutron(0)
00055 , thePiK(0)
00056 , theLHEPPiK(0)
00057 , thePro(0)
00058 , theLHEPPro(0)
00059 , theMiscLHEP(0)
00060 {}
00061
00062 HadronPhysicsLHEP_EMV::HadronPhysicsLHEP_EMV(const G4String& name)
00063 : G4VPhysicsConstructor(name)
00064 , theNeutrons(0)
00065 , theLHEPNeutron(0)
00066 , thePiK(0)
00067 , theLHEPPiK(0)
00068 , thePro(0)
00069 , theLHEPPro(0)
00070 , theMiscLHEP(0)
00071 {}
00072
00073 void HadronPhysicsLHEP_EMV::CreateModels()
00074 {
00075 theNeutrons=new G4NeutronBuilder;
00076 theNeutrons->RegisterMe(theLHEPNeutron=new G4LHEPNeutronBuilder);
00077
00078 thePro=new G4ProtonBuilder;
00079 thePro->RegisterMe(theLHEPPro=new G4LHEPProtonBuilder);
00080
00081 thePiK=new G4PiKBuilder;
00082 thePiK->RegisterMe(theLHEPPiK=new G4LHEPPiKBuilder);
00083 }
00084
00085 HadronPhysicsLHEP_EMV::~HadronPhysicsLHEP_EMV()
00086 {
00087 delete theLHEPNeutron;
00088 delete theNeutrons;
00089 delete theLHEPPro;
00090 delete thePro;
00091 delete theLHEPPiK;
00092 delete thePiK;
00093 }
00094
00095 #include "G4ParticleDefinition.hh"
00096 #include "G4ParticleTable.hh"
00097
00098 #include "G4MesonConstructor.hh"
00099 #include "G4BaryonConstructor.hh"
00100 #include "G4ShortLivedConstructor.hh"
00101
00102 void HadronPhysicsLHEP_EMV::ConstructParticle()
00103 {
00104 G4MesonConstructor pMesonConstructor;
00105 pMesonConstructor.ConstructParticle();
00106
00107 G4BaryonConstructor pBaryonConstructor;
00108 pBaryonConstructor.ConstructParticle();
00109
00110 G4ShortLivedConstructor pShortLivedConstructor;
00111 pShortLivedConstructor.ConstructParticle();
00112
00113 theMiscLHEP=new G4MiscLHEPBuilder;
00114 }
00115
00116 #include "G4ProcessManager.hh"
00117 void HadronPhysicsLHEP_EMV::ConstructProcess()
00118 {
00119 CreateModels();
00120 theNeutrons->Build();
00121 thePro->Build();
00122 thePiK->Build();
00123 theMiscLHEP->Build();
00124 }
00125