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
00041
00042
00043 #include <iomanip>
00044
00045 #include "HadronPhysicsQGSP_BERT_HP.hh"
00046
00047 #include "globals.hh"
00048 #include "G4ios.hh"
00049 #include "G4SystemOfUnits.hh"
00050 #include "G4ParticleDefinition.hh"
00051 #include "G4ParticleTable.hh"
00052
00053 #include "G4MesonConstructor.hh"
00054 #include "G4BaryonConstructor.hh"
00055 #include "G4ShortLivedConstructor.hh"
00056
00057
00058 #include "G4PhysicsConstructorFactory.hh"
00059
00060 G4_DECLARE_PHYSCONSTR_FACTORY(HadronPhysicsQGSP_BERT_HP);
00061
00062 HadronPhysicsQGSP_BERT_HP::HadronPhysicsQGSP_BERT_HP(G4int)
00063 : G4VPhysicsConstructor("hInelastic QGSP_BERT_HP")
00064 , theNeutrons(0)
00065 , theLEPNeutron(0)
00066 , theQGSPNeutron(0)
00067 , theBertiniNeutron(0)
00068 , theHPNeutron(0)
00069 , thePiK(0)
00070 , theLEPPiK(0)
00071 , theQGSPPiK(0)
00072 , theBertiniPiK(0)
00073 , thePro(0)
00074 , theLEPPro(0)
00075 , theQGSPPro(0)
00076 , theBertiniPro(0)
00077 , theMisc(0)
00078 , QuasiElastic(true)
00079 {}
00080
00081 HadronPhysicsQGSP_BERT_HP::HadronPhysicsQGSP_BERT_HP(const G4String& name, G4bool quasiElastic)
00082 : G4VPhysicsConstructor(name)
00083 , theNeutrons(0)
00084 , theLEPNeutron(0)
00085 , theQGSPNeutron(0)
00086 , theBertiniNeutron(0)
00087 , theHPNeutron(0)
00088 , thePiK(0)
00089 , theLEPPiK(0)
00090 , theQGSPPiK(0)
00091 , theBertiniPiK(0)
00092 , thePro(0)
00093 , theLEPPro(0)
00094 , theQGSPPro(0)
00095 , theBertiniPro(0)
00096 , theMisc(0)
00097 , QuasiElastic(quasiElastic)
00098 {}
00099
00100 void HadronPhysicsQGSP_BERT_HP::CreateModels()
00101 {
00102 theNeutrons=new G4NeutronBuilder;
00103 theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic));
00104 theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
00105 theLEPNeutron->SetMinEnergy(19.9*MeV);
00106 theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
00107 theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
00108
00109 theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
00110 theBertiniNeutron->SetMinEnergy(19.9*MeV);
00111 theBertiniNeutron->SetMaxEnergy(9.9*GeV);
00112
00113 theNeutrons->RegisterMe(theHPNeutron=new G4NeutronHPBuilder);
00114
00115 thePro=new G4ProtonBuilder;
00116 thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic));
00117 thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
00118 theLEPPro->SetMinEnergy(9.5*GeV);
00119 theLEPPro->SetMaxEnergy(25*GeV);
00120
00121 thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
00122 theBertiniPro->SetMaxEnergy(9.9*GeV);
00123
00124 thePiK=new G4PiKBuilder;
00125 thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
00126 thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
00127 theLEPPiK->SetMaxEnergy(25*GeV);
00128 theLEPPiK->SetMinEnergy(9.5*GeV);
00129
00130 thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
00131 theBertiniPiK->SetMaxEnergy(9.9*GeV);
00132
00133 theMisc=new G4MiscBuilder;
00134 }
00135
00136 HadronPhysicsQGSP_BERT_HP::~HadronPhysicsQGSP_BERT_HP()
00137 {
00138 delete theMisc;
00139 delete theQGSPNeutron;
00140 delete theLEPNeutron;
00141 delete theBertiniNeutron;
00142 delete theHPNeutron;
00143 delete theQGSPPro;
00144 delete theLEPPro;
00145 delete thePro;
00146 delete theBertiniPro;
00147 delete theQGSPPiK;
00148 delete theLEPPiK;
00149 delete theBertiniPiK;
00150 delete thePiK;
00151 }
00152
00153 void HadronPhysicsQGSP_BERT_HP::ConstructParticle()
00154 {
00155 G4MesonConstructor pMesonConstructor;
00156 pMesonConstructor.ConstructParticle();
00157
00158 G4BaryonConstructor pBaryonConstructor;
00159 pBaryonConstructor.ConstructParticle();
00160
00161 G4ShortLivedConstructor pShortLivedConstructor;
00162 pShortLivedConstructor.ConstructParticle();
00163 }
00164
00165 #include "G4ProcessManager.hh"
00166 void HadronPhysicsQGSP_BERT_HP::ConstructProcess()
00167 {
00168 CreateModels();
00169 theNeutrons->Build();
00170 thePro->Build();
00171 thePiK->Build();
00172 theMisc->Build();
00173 }
00174