HadronPhysicsQGSP_BERT_HP.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:   HadronPhysicsQGSP_BERT_HP
00031 //
00032 // Author: 2002 J.P. Wellisch
00033 //
00034 // Modified:
00035 // 15.12.2005 G.Folger: migration to non static particles
00036 // 08.06.2006 V.Ivanchenko: remove stopping
00037 // 20.06.2006 G.Folger: Bertini applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy
00038 // 25.04.2007 G.Folger: Add code for quasielastic
00039 // 31.10.2012 A.Ribon: Use G4MiscBuilder
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 // factory
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)      //A.R. 26-Jul-2012 Coverity fix
00071     , theQGSPPiK(0)
00072     , theBertiniPiK(0)
00073     , thePro(0)
00074     , theLEPPro(0)      //A.R. 26-Jul-2012 Coverity fix
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)      //A.R. 26-Jul-2012 Coverity fix
00090     , theQGSPPiK(0)
00091     , theBertiniPiK(0)
00092     , thePro(0)
00093     , theLEPPro(0)      //A.R. 26-Jul-2012 Coverity fix
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 

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