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 #include <iomanip>
00040
00041 #include "HadronPhysicsFTFP_BERT.hh"
00042
00043 #include "globals.hh"
00044 #include "G4ios.hh"
00045 #include "G4SystemOfUnits.hh"
00046 #include "G4ParticleDefinition.hh"
00047 #include "G4ParticleTable.hh"
00048
00049 #include "G4MesonConstructor.hh"
00050 #include "G4BaryonConstructor.hh"
00051 #include "G4ShortLivedConstructor.hh"
00052
00053 #include "G4ChipsKaonMinusInelasticXS.hh"
00054 #include "G4ChipsKaonPlusInelasticXS.hh"
00055 #include "G4ChipsKaonZeroInelasticXS.hh"
00056 #include "G4CrossSectionDataSetRegistry.hh"
00057
00058 #include "G4PhysListUtil.hh"
00059
00060
00061 #include "G4PhysicsConstructorFactory.hh"
00062
00063 G4_DECLARE_PHYSCONSTR_FACTORY(HadronPhysicsFTFP_BERT);
00064
00065 HadronPhysicsFTFP_BERT::HadronPhysicsFTFP_BERT(G4int)
00066 : G4VPhysicsConstructor("hInelastic FTFP_BERT")
00067 , theNeutrons(0)
00068 , theBertiniNeutron(0)
00069 , theFTFPNeutron(0)
00070 , theLEPNeutron(0)
00071 , thePiK(0)
00072 , theBertiniPiK(0)
00073 , theFTFPPiK(0)
00074 , thePro(0)
00075 , theBertiniPro(0)
00076 , theFTFPPro(0)
00077 , theHyperon(0)
00078 , theAntiBaryon(0)
00079 , theFTFPAntiBaryon(0)
00080 , QuasiElastic(false)
00081 , ChipsKaonMinus(0)
00082 , ChipsKaonPlus(0)
00083 , ChipsKaonZero(0)
00084 {}
00085
00086 HadronPhysicsFTFP_BERT::HadronPhysicsFTFP_BERT(const G4String& name, G4bool quasiElastic)
00087 : G4VPhysicsConstructor(name)
00088 , theNeutrons(0)
00089 , theBertiniNeutron(0)
00090 , theFTFPNeutron(0)
00091 , theLEPNeutron(0)
00092 , thePiK(0)
00093 , theBertiniPiK(0)
00094 , theFTFPPiK(0)
00095 , thePro(0)
00096 , theBertiniPro(0)
00097 , theFTFPPro(0)
00098 , theHyperon(0)
00099 , theAntiBaryon(0)
00100 , theFTFPAntiBaryon(0)
00101 , QuasiElastic(quasiElastic)
00102 , ChipsKaonMinus(0)
00103 , ChipsKaonPlus(0)
00104 , ChipsKaonZero(0)
00105 {}
00106
00107 void HadronPhysicsFTFP_BERT::CreateModels()
00108 {
00109
00110 theNeutrons=new G4NeutronBuilder;
00111 theFTFPNeutron=new G4FTFPNeutronBuilder(QuasiElastic);
00112 theNeutrons->RegisterMe(theFTFPNeutron);
00113 theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
00114 theBertiniNeutron->SetMinEnergy(0.0*GeV);
00115 theBertiniNeutron->SetMaxEnergy(5*GeV);
00116 theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
00117 theLEPNeutron->SetMinInelasticEnergy(0.0*eV);
00118 theLEPNeutron->SetMaxInelasticEnergy(0.0*eV);
00119
00120 thePro=new G4ProtonBuilder;
00121 theFTFPPro=new G4FTFPProtonBuilder(QuasiElastic);
00122 thePro->RegisterMe(theFTFPPro);
00123 thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
00124 theBertiniPro->SetMaxEnergy(5*GeV);
00125
00126 thePiK=new G4PiKBuilder;
00127 theFTFPPiK=new G4FTFPPiKBuilder(QuasiElastic);
00128 thePiK->RegisterMe(theFTFPPiK);
00129 thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
00130 theBertiniPiK->SetMaxEnergy(5*GeV);
00131
00132 theHyperon=new G4HyperonFTFPBuilder;
00133
00134 theAntiBaryon=new G4AntiBarionBuilder;
00135 theAntiBaryon->RegisterMe(theFTFPAntiBaryon=new G4FTFPAntiBarionBuilder(QuasiElastic));
00136 }
00137
00138 HadronPhysicsFTFP_BERT::~HadronPhysicsFTFP_BERT()
00139 {
00140 delete theNeutrons;
00141 delete theBertiniNeutron;
00142 delete theFTFPNeutron;
00143 delete theLEPNeutron;
00144
00145 delete thePiK;
00146 delete theBertiniPiK;
00147 delete theFTFPPiK;
00148
00149 delete thePro;
00150 delete theBertiniPro;
00151 delete theFTFPPro;
00152
00153 delete theHyperon;
00154 delete theAntiBaryon;
00155 delete theFTFPAntiBaryon;
00156 }
00157
00158 void HadronPhysicsFTFP_BERT::ConstructParticle()
00159 {
00160 G4MesonConstructor pMesonConstructor;
00161 pMesonConstructor.ConstructParticle();
00162
00163 G4BaryonConstructor pBaryonConstructor;
00164 pBaryonConstructor.ConstructParticle();
00165
00166 G4ShortLivedConstructor pShortLivedConstructor;
00167 pShortLivedConstructor.ConstructParticle();
00168 }
00169
00170 #include "G4ProcessManager.hh"
00171 void HadronPhysicsFTFP_BERT::ConstructProcess()
00172 {
00173 CreateModels();
00174 theNeutrons->Build();
00175 thePro->Build();
00176 thePiK->Build();
00177
00178
00179 ChipsKaonMinus = G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonMinusInelasticXS::Default_Name());
00180 ChipsKaonPlus = G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonPlusInelasticXS::Default_Name());
00181 ChipsKaonZero = G4CrossSectionDataSetRegistry::Instance()->GetCrossSectionDataSet(G4ChipsKaonZeroInelasticXS::Default_Name());
00182
00183
00184 G4PhysListUtil::FindInelasticProcess(G4KaonMinus::KaonMinus())->AddDataSet(ChipsKaonMinus);
00185 G4PhysListUtil::FindInelasticProcess(G4KaonPlus::KaonPlus())->AddDataSet(ChipsKaonPlus);
00186 G4PhysListUtil::FindInelasticProcess(G4KaonZeroShort::KaonZeroShort())->AddDataSet(ChipsKaonZero );
00187 G4PhysListUtil::FindInelasticProcess(G4KaonZeroLong::KaonZeroLong())->AddDataSet(ChipsKaonZero );
00188
00189 theHyperon->Build();
00190 theAntiBaryon->Build();
00191 }
00192