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

Last change on this file was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 4.7 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.2 2010/06/03 10:42:44 gunter Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-01 $
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(G4int)
53                    :  G4VPhysicsConstructor("hInelastic QGSP_BERT_NOLEP")
54                     , QuasiElastic(true)
55{
56   ProjectileDiffraction=false;
57}
58
59HadronPhysicsQGSP_BERT_NOLEP::HadronPhysicsQGSP_BERT_NOLEP(const G4String& name, G4bool quasiElastic)
60                    :  G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
61{
62   ProjectileDiffraction=false;
63}
64
65void HadronPhysicsQGSP_BERT_NOLEP::CreateModels()
66{
67  theNeutrons=new G4NeutronBuilder;
68  theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction));
69  theQGSPNeutron->SetMinEnergy(8.5*GeV);
70  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
71//   do not use LEP for inelastic, but leave capture, etc.
72  theLEPNeutron->SetMinInelasticEnergy(0.*eV);
73  theLEPNeutron->SetMaxInelasticEnergy(0.*eV); 
74
75  theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
76  theBertiniNeutron->SetMinEnergy(0.0*GeV);
77  theBertiniNeutron->SetMaxEnergy(9.9*GeV);
78
79  thePro=new G4ProtonBuilder;
80  thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic, ProjectileDiffraction));
81  theQGSPPro->SetMinEnergy(8.5*GeV);
82
83  thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
84  theBertiniPro->SetMaxEnergy(9.9*GeV);
85 
86  thePiK=new G4PiKBuilder;
87  thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
88  theQGSPPiK->SetMinEnergy(8.5*GeV);
89
90  thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
91  theBertiniPiK->SetMaxEnergy(9.9*GeV);
92 
93  theMiscLHEP=new G4MiscLHEPBuilder;
94}
95
96HadronPhysicsQGSP_BERT_NOLEP::~HadronPhysicsQGSP_BERT_NOLEP()
97{
98   delete theMiscLHEP;
99   delete theQGSPNeutron;
100   delete theLEPNeutron;
101   delete theBertiniNeutron;
102   delete theQGSPPro;
103   delete thePro;
104   delete theBertiniPro;
105   delete theQGSPPiK;
106   delete theBertiniPiK;
107   delete thePiK;
108}
109
110void HadronPhysicsQGSP_BERT_NOLEP::ConstructParticle()
111{
112  G4MesonConstructor pMesonConstructor;
113  pMesonConstructor.ConstructParticle();
114
115  G4BaryonConstructor pBaryonConstructor;
116  pBaryonConstructor.ConstructParticle();
117
118  G4ShortLivedConstructor pShortLivedConstructor;
119  pShortLivedConstructor.ConstructParticle(); 
120}
121
122#include "G4ProcessManager.hh"
123void HadronPhysicsQGSP_BERT_NOLEP::ConstructProcess()
124{
125  CreateModels();
126  theNeutrons->Build();
127  thePro->Build();
128  thePiK->Build();
129  theMiscLHEP->Build();
130}
131
Note: See TracBrowser for help on using the repository browser.