source: trunk/source/physics_lists/lists/src/HadronPhysicsQGSP_BERT_NOLEP.cc @ 1206

Last change on this file since 1206 was 1206, checked in by garnier, 15 years ago

CVS update

File size: 4.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_BERT_NOLEP.cc,v 1.1 2008/10/17 12:43:21 gunter Exp $
27// GEANT4 tag $Name: geant4-09-03-cand-03 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName:   HadronPhysicsQGSP_BERT_NOLEP
32//
33// Author: 2008 G.Folger
34//       created from HadronPhysicsQGSP_BERT
35// Modified:
36// 15.10.2005 G.Folger: first version
37//
38//----------------------------------------------------------------------------
39//
40#include "HadronPhysicsQGSP_BERT_NOLEP.hh"
41
42#include "globals.hh"
43#include "G4ios.hh"
44#include <iomanip>  
45#include "G4ParticleDefinition.hh"
46#include "G4ParticleTable.hh"
47
48#include "G4MesonConstructor.hh"
49#include "G4BaryonConstructor.hh"
50#include "G4ShortLivedConstructor.hh"
51
52HadronPhysicsQGSP_BERT_NOLEP::HadronPhysicsQGSP_BERT_NOLEP(const G4String& name, G4bool quasiElastic)
53                    :  G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
54{
55   ProjectileDiffraction=false;
56}
57
58void HadronPhysicsQGSP_BERT_NOLEP::CreateModels()
59{
60  theNeutrons=new G4NeutronBuilder;
61  theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction));
62  theQGSPNeutron->SetMinEnergy(8.5*GeV);
63  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
64//   do not use LEP for inelastic, but leave capture, etc.
65  theLEPNeutron->SetMinInelasticEnergy(0.*eV);
66  theLEPNeutron->SetMaxInelasticEnergy(0.*eV); 
67
68  theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
69  theBertiniNeutron->SetMinEnergy(0.0*GeV);
70  theBertiniNeutron->SetMaxEnergy(9.9*GeV);
71
72  thePro=new G4ProtonBuilder;
73  thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic, ProjectileDiffraction));
74  theQGSPPro->SetMinEnergy(8.5*GeV);
75
76  thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
77  theBertiniPro->SetMaxEnergy(9.9*GeV);
78 
79  thePiK=new G4PiKBuilder;
80  thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
81  theQGSPPiK->SetMinEnergy(8.5*GeV);
82
83  thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
84  theBertiniPiK->SetMaxEnergy(9.9*GeV);
85 
86  theMiscLHEP=new G4MiscLHEPBuilder;
87}
88
89HadronPhysicsQGSP_BERT_NOLEP::~HadronPhysicsQGSP_BERT_NOLEP()
90{
91   delete theMiscLHEP;
92   delete theQGSPNeutron;
93   delete theLEPNeutron;
94   delete theBertiniNeutron;
95   delete theQGSPPro;
96   delete thePro;
97   delete theBertiniPro;
98   delete theQGSPPiK;
99   delete theBertiniPiK;
100   delete thePiK;
101}
102
103void HadronPhysicsQGSP_BERT_NOLEP::ConstructParticle()
104{
105  G4MesonConstructor pMesonConstructor;
106  pMesonConstructor.ConstructParticle();
107
108  G4BaryonConstructor pBaryonConstructor;
109  pBaryonConstructor.ConstructParticle();
110
111  G4ShortLivedConstructor pShortLivedConstructor;
112  pShortLivedConstructor.ConstructParticle(); 
113}
114
115#include "G4ProcessManager.hh"
116void HadronPhysicsQGSP_BERT_NOLEP::ConstructProcess()
117{
118  CreateModels();
119  theNeutrons->Build();
120  thePro->Build();
121  thePiK->Build();
122  theMiscLHEP->Build();
123}
124
Note: See TracBrowser for help on using the repository browser.