source: trunk/source/physics_lists/lists/src/HadronPhysicsQGSP_BERT_TRV.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: 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_TRV.cc,v 1.2 2009/11/27 17:27:38 gunter Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName:   HadronPhysicsQGSP_BERT_TRV
32//
33// Author: 2007  G.Folger
34//           Created from HadronPhysicsQGSP_BERT
35//
36// Modified:
37//    27 Nov 2009 G.Folger : change transition energies to reduce use of LEP
38//
39//----------------------------------------------------------------------------
40//
41#include "HadronPhysicsQGSP_BERT_TRV.hh"
42
43#include "globals.hh"
44#include "G4ios.hh"
45#include <iomanip>  
46#include "G4ParticleDefinition.hh"
47#include "G4ParticleTable.hh"
48
49#include "G4MesonConstructor.hh"
50#include "G4BaryonConstructor.hh"
51#include "G4ShortLivedConstructor.hh"
52
53HadronPhysicsQGSP_BERT_TRV::HadronPhysicsQGSP_BERT_TRV(const G4String& name, G4bool quasiElastic)
54                    :  G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
55{}
56
57void HadronPhysicsQGSP_BERT_TRV::CreateModels()
58{
59  theNeutrons=new G4NeutronBuilder;
60  theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic));
61  theQGSPNeutron->SetMinEnergy(10.0*GeV);
62  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
63  theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
64  theLEPNeutron->SetMaxInelasticEnergy(15*GeV); 
65
66  theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
67  theBertiniNeutron->SetMinEnergy(0.0*GeV);
68  theBertiniNeutron->SetMaxEnergy(9.9*GeV);
69
70  thePro=new G4ProtonBuilder;
71  thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic));
72  theQGSPPro->SetMinEnergy(10.0*GeV);
73  thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
74  theLEPPro->SetMinEnergy(9.5*GeV);
75  theLEPPro->SetMaxEnergy(15*GeV);
76
77  thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
78  theBertiniPro->SetMaxEnergy(9.9*GeV);
79 
80  thePiK=new G4PiKBuilder;
81  thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
82  theQGSPPiK->SetMinEnergy(10.0*GeV);
83  thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
84  theLEPPiK->SetMinEnergy(9.5*GeV);
85  theLEPPiK->SetMaxEnergy(15*GeV);
86
87  thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
88  theBertiniPiK->SetMaxEnergy(9.9*GeV);
89 
90  theMiscLHEP=new G4MiscLHEPBuilder;
91}
92
93HadronPhysicsQGSP_BERT_TRV::~HadronPhysicsQGSP_BERT_TRV()
94{
95   delete theMiscLHEP;
96   delete theQGSPNeutron;
97   delete theLEPNeutron;
98   delete theBertiniNeutron;
99   delete theQGSPPro;
100   delete theLEPPro;
101   delete thePro;
102   delete theBertiniPro;
103   delete theQGSPPiK;
104   delete theLEPPiK;
105   delete theBertiniPiK;
106   delete thePiK;
107}
108
109void HadronPhysicsQGSP_BERT_TRV::ConstructParticle()
110{
111  G4MesonConstructor pMesonConstructor;
112  pMesonConstructor.ConstructParticle();
113
114  G4BaryonConstructor pBaryonConstructor;
115  pBaryonConstructor.ConstructParticle();
116
117  G4ShortLivedConstructor pShortLivedConstructor;
118  pShortLivedConstructor.ConstructParticle(); 
119}
120
121#include "G4ProcessManager.hh"
122void HadronPhysicsQGSP_BERT_TRV::ConstructProcess()
123{
124  CreateModels();
125  theNeutrons->Build();
126  thePro->Build();
127  thePiK->Build();
128  theMiscLHEP->Build();
129}
130
Note: See TracBrowser for help on using the repository browser.