source: trunk/source/physics_lists/lists/src/HadronPhysicsQGSP_INCL_ABLA.cc @ 1273

Last change on this file since 1273 was 1228, checked in by garnier, 14 years ago

update geant4.9.3 tag

File size: 5.5 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26// $Id: HadronPhysicsQGSP_INCL_ABLA.cc,v 1.1 2009/07/19 18:24:03 kaitanie Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName:   HadronPhysicsQGSP_INCLABLA
32//
33// Author: 2002 J.P. Wellisch
34//
35// Modified:
36// 23.11.2005 G.Folger: migration to non static particles
37// 08.06.2006 V.Ivanchenko: remove stopping
38// 20.06.2006 G.Folger: InclAbla applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy
39// 25.04.2007 G.Folger: Add code for quasielastic
40// 10.12.2007 G.Folger: Add projectilediffrative option for proton/neutron, off by default
41//
42//----------------------------------------------------------------------------
43//
44#include "HadronPhysicsQGSP_INCL_ABLA.hh"
45
46#include "globals.hh"
47#include "G4ios.hh"
48#include <iomanip>  
49#include "G4ParticleDefinition.hh"
50#include "G4ParticleTable.hh"
51
52#include "G4MesonConstructor.hh"
53#include "G4BaryonConstructor.hh"
54#include "G4ShortLivedConstructor.hh"
55
56HadronPhysicsQGSP_INCL_ABLA::HadronPhysicsQGSP_INCL_ABLA(const G4String& name, G4bool quasiElastic)
57                    :  G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
58{
59   ProjectileDiffraction=false;
60}
61
62void HadronPhysicsQGSP_INCL_ABLA::CreateModels()
63{
64  theNeutrons=new G4NeutronBuilder;
65  theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction));
66  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
67  theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
68  theLEPNeutron->SetMaxInelasticEnergy(25*GeV); 
69
70  theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
71  theBertiniNeutron->SetMinEnergy(2.9*GeV);
72  theBertiniNeutron->SetMaxEnergy(9.9*GeV);
73
74  theNeutrons->RegisterMe(theInclAblaNeutron=new G4InclAblaNeutronBuilder);
75  theInclAblaNeutron->SetMinEnergy(0.0*GeV);
76  theInclAblaNeutron->SetMaxEnergy(3.0*GeV);
77
78  thePro=new G4ProtonBuilder;
79  thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic, ProjectileDiffraction));
80  thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
81  theLEPPro->SetMinEnergy(9.5*GeV);
82  theLEPPro->SetMaxEnergy(25*GeV);
83
84  thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
85  theBertiniPro->SetMinEnergy(2.9*GeV);
86  theBertiniPro->SetMaxEnergy(9.9*GeV);
87
88  thePro->RegisterMe(theInclAblaPro=new G4InclAblaProtonBuilder);
89  theInclAblaPro->SetMinEnergy(0.0*GeV);
90  theInclAblaPro->SetMaxEnergy(3.0*GeV);
91 
92  thePiK=new G4PiKBuilder;
93  thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
94  thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
95  theLEPPiK->SetMaxEnergy(25*GeV);
96  theLEPPiK->SetMinEnergy(9.5*GeV);
97
98  thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
99  theBertiniPiK->SetMinEnergy(2.9*GeV);
100  theBertiniPiK->SetMaxEnergy(9.9*GeV);
101
102  thePiK->RegisterMe(theInclAblaPiK=new G4InclAblaPiKBuilder);
103  theInclAblaPiK->SetMinEnergy(0.0*GeV);
104  theInclAblaPiK->SetMaxEnergy(3.0*GeV);
105 
106  theMiscLHEP=new G4MiscLHEPBuilder;
107}
108
109HadronPhysicsQGSP_INCL_ABLA::~HadronPhysicsQGSP_INCL_ABLA()
110{
111   delete theMiscLHEP;
112   delete theQGSPNeutron;
113   delete theLEPNeutron;
114   delete theBertiniNeutron;
115   delete theInclAblaNeutron;
116   delete theQGSPPro;
117   delete theLEPPro;
118   delete thePro;
119   delete theBertiniPro;
120   delete theInclAblaPro;
121   delete theQGSPPiK;
122   delete theLEPPiK;
123   delete theInclAblaPiK;
124   delete theBertiniPiK;
125   delete thePiK;
126}
127
128void HadronPhysicsQGSP_INCL_ABLA::ConstructParticle()
129{
130  G4MesonConstructor pMesonConstructor;
131  pMesonConstructor.ConstructParticle();
132
133  G4BaryonConstructor pBaryonConstructor;
134  pBaryonConstructor.ConstructParticle();
135
136  G4ShortLivedConstructor pShortLivedConstructor;
137  pShortLivedConstructor.ConstructParticle(); 
138}
139
140#include "G4ProcessManager.hh"
141void HadronPhysicsQGSP_INCL_ABLA::ConstructProcess()
142{
143  CreateModels();
144  theNeutrons->Build();
145  thePro->Build();
146  thePiK->Build();
147  theMiscLHEP->Build();
148}
149
Note: See TracBrowser for help on using the repository browser.