HadronPhysicsFTFP_BERT.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 //---------------------------------------------------------------------------
00029 //
00030 // ClassName:   
00031 //
00032 // Author: 2007 Gunter Folger
00033 //   created from HadronPhysicsFTFP
00034 //
00035 // Modified:
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 // factory
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);   // no inelastic from LEP
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   // use CHIPS cross sections also for Kaons
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 

Generated on Mon May 27 17:50:29 2013 for Geant4 by  doxygen 1.4.7