HadronPhysicsQGSP_BERT_NOLEP.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_NOLEP
00031 //
00032 // Author: 2008 G.Folger
00033 //       created from HadronPhysicsQGSP_BERT
00034 // Modified:
00035 // 15.10.2005 G.Folger: first version
00036 // 31.10.2012 A.Ribon: Use G4MiscBuilder
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 // factory
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 //   do not use LEP for inelastic, but leave capture, etc.
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 

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