CMS 3D CMS Logo

HadronPhysicsQGSP_BERT_WP.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  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.1 2008/05/14 20:53:28 syjun Exp $
00027 // GEANT4 tag $Name: V02-01-04 $
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 
00047 #include "globals.hh"
00048 #include "G4ios.hh"
00049 #include <iomanip>   
00050 #include "G4ParticleDefinition.hh"
00051 #include "G4ParticleTable.hh"
00052 
00053 #include "G4MesonConstructor.hh"
00054 #include "G4BaryonConstructor.hh"
00055 #include "G4ShortLivedConstructor.hh"
00056 
00057 HadronPhysicsQGSP_BERT_WP::HadronPhysicsQGSP_BERT_WP(const G4String& name, G4bool quasiElastic)
00058                     :  G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
00059 {
00060    ProjectileDiffraction=false;
00061 }
00062 
00063 void HadronPhysicsQGSP_BERT_WP::CreateModels()
00064 {
00065   theNeutrons=new G4NeutronBuilder;
00066   theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction));
00067   theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
00068   theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
00069   theLEPNeutron->SetMaxInelasticEnergy(25*GeV);  
00070 
00071   theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
00072   theBertiniNeutron->SetMinEnergy(0.0*GeV);
00073   theBertiniNeutron->SetMaxEnergy(9.9*GeV);
00074 
00075   thePro=new G4ProtonBuilder;
00076   thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic, ProjectileDiffraction));
00077   thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
00078   theLEPPro->SetMinEnergy(9.5*GeV);
00079   theLEPPro->SetMaxEnergy(25*GeV);
00080 
00081   thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
00082   theBertiniPro->SetMaxEnergy(9.9*GeV);
00083   
00084   thePiK=new G4PiKBuilder_WP;
00085   thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
00086   thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
00087   theLEPPiK->SetMaxEnergy(25*GeV);
00088   theLEPPiK->SetMinEnergy(9.5*GeV);
00089 
00090   thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
00091   theBertiniPiK->SetMaxEnergy(9.9*GeV);
00092   
00093   theMiscLHEP=new G4MiscLHEPBuilder;
00094 }
00095 
00096 HadronPhysicsQGSP_BERT_WP::~HadronPhysicsQGSP_BERT_WP()
00097 {
00098    delete theMiscLHEP;
00099    delete theQGSPNeutron;
00100    delete theLEPNeutron;
00101    delete theBertiniNeutron;
00102    delete theQGSPPro;
00103    delete theLEPPro;
00104    delete thePro;
00105    delete theBertiniPro;
00106    delete theQGSPPiK;
00107    delete theLEPPiK;
00108    delete theBertiniPiK;
00109    delete thePiK;
00110 }
00111 
00112 void HadronPhysicsQGSP_BERT_WP::ConstructParticle()
00113 {
00114   G4MesonConstructor pMesonConstructor;
00115   pMesonConstructor.ConstructParticle();
00116 
00117   G4BaryonConstructor pBaryonConstructor;
00118   pBaryonConstructor.ConstructParticle();
00119 
00120   G4ShortLivedConstructor pShortLivedConstructor;
00121   pShortLivedConstructor.ConstructParticle();  
00122 }
00123 
00124 #include "G4ProcessManager.hh"
00125 void HadronPhysicsQGSP_BERT_WP::ConstructProcess()
00126 {
00127   CreateModels();
00128   theNeutrons->Build();
00129   thePro->Build();
00130   thePiK->Build();
00131   theMiscLHEP->Build();
00132 }
00133 
00134 // April 2008 Modified for GflashHadronWrapperProcess by S.Y. Jun

Generated on Tue Jun 9 17:47:05 2009 for CMSSW by  doxygen 1.5.4