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 https://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: HadronPhysicsQGSP_BERT_WP.cc,v 1.3 2009/03/24 04:11:29 syjun Exp $ 00027 // GEANT4 tag $Name: V04-03-00 $ 00028 // 00029 //--------------------------------------------------------------------------- 00030 // 00031 // ClassName: HadronPhysicsQGSP_BERT_WP 00032 // 00033 // Author: 2002 J.P. Wellisch 00034 // 00035 // Modified: 00036 // 23.11.2005 G.Folger: migration to non static particles 00037 // 08.06.2006 V.Ivanchenko: remove stopping 00038 // 20.06.2006 G.Folger: Bertini applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy 00039 // 25.04.2007 G.Folger: Add code for quasielastic 00040 // 10.12.2007 G.Folger: Add projectilediffrative option for proton/neutron, off by default 00041 // 00042 //---------------------------------------------------------------------------- 00043 // 00044 #include "SimG4Core/GFlash/interface/HadronPhysicsQGSP_BERT_WP.h" 00045 #include "SimG4Core/GFlash/interface/G4PiKBuilder_WP.h" 00046 #include "SimG4Core/GFlash/interface/G4ProtonBuilder_WP.h" 00047 #include "SimG4Core/GFlash/interface/G4MiscLHEPBuilder_WP.h" 00048 00049 #include "globals.hh" 00050 #include "G4ios.hh" 00051 #include <iomanip> 00052 #include "G4ParticleDefinition.hh" 00053 #include "G4ParticleTable.hh" 00054 00055 #include "G4MesonConstructor.hh" 00056 #include "G4BaryonConstructor.hh" 00057 #include "G4ShortLivedConstructor.hh" 00058 00059 HadronPhysicsQGSP_BERT_WP::HadronPhysicsQGSP_BERT_WP(const G4String& name, G4bool quasiElastic) 00060 : G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic) 00061 { 00062 ProjectileDiffraction=false; 00063 } 00064 00065 void HadronPhysicsQGSP_BERT_WP::CreateModels() 00066 { 00067 theNeutrons=new G4NeutronBuilder; 00068 theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction)); 00069 theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder); 00070 theLEPNeutron->SetMinInelasticEnergy(9.5*GeV); 00071 theLEPNeutron->SetMaxInelasticEnergy(25*GeV); 00072 00073 theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder); 00074 theBertiniNeutron->SetMinEnergy(0.0*GeV); 00075 theBertiniNeutron->SetMaxEnergy(9.9*GeV); 00076 00077 thePro=new G4ProtonBuilder_WP; 00078 thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic, ProjectileDiffraction)); 00079 thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder); 00080 theLEPPro->SetMinEnergy(9.5*GeV); 00081 theLEPPro->SetMaxEnergy(25*GeV); 00082 00083 thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder); 00084 theBertiniPro->SetMaxEnergy(9.9*GeV); 00085 00086 thePiK=new G4PiKBuilder_WP; 00087 thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic)); 00088 thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder); 00089 theLEPPiK->SetMaxEnergy(25*GeV); 00090 theLEPPiK->SetMinEnergy(9.5*GeV); 00091 00092 thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder); 00093 theBertiniPiK->SetMaxEnergy(9.9*GeV); 00094 00095 theMiscLHEP=new G4MiscLHEPBuilder_WP; 00096 } 00097 00098 HadronPhysicsQGSP_BERT_WP::~HadronPhysicsQGSP_BERT_WP() 00099 { 00100 delete theMiscLHEP; 00101 delete theQGSPNeutron; 00102 delete theLEPNeutron; 00103 delete theBertiniNeutron; 00104 delete theQGSPPro; 00105 delete theLEPPro; 00106 delete thePro; 00107 delete theBertiniPro; 00108 delete theQGSPPiK; 00109 delete theLEPPiK; 00110 delete theBertiniPiK; 00111 delete thePiK; 00112 } 00113 00114 void HadronPhysicsQGSP_BERT_WP::ConstructParticle() 00115 { 00116 G4MesonConstructor pMesonConstructor; 00117 pMesonConstructor.ConstructParticle(); 00118 00119 G4BaryonConstructor pBaryonConstructor; 00120 pBaryonConstructor.ConstructParticle(); 00121 00122 G4ShortLivedConstructor pShortLivedConstructor; 00123 pShortLivedConstructor.ConstructParticle(); 00124 } 00125 00126 #include "G4ProcessManager.hh" 00127 void HadronPhysicsQGSP_BERT_WP::ConstructProcess() 00128 { 00129 CreateModels(); 00130 theNeutrons->Build(); 00131 thePro->Build(); 00132 thePiK->Build(); 00133 theMiscLHEP->Build(); 00134 } 00135 00136 // April 2008 Modified for CMS GflashHadronWrapperProcess