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