source: trunk/source/physics_lists/lists/src/HadronPhysicsQGSP.cc @ 1315

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

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 4.2 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//
27// $Id: HadronPhysicsQGSP.cc,v 1.5 2010/06/03 10:42:44 gunter Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
29//
30//---------------------------------------------------------------------------
31//
32// ClassName:   HadronPhysicsQGSP
33//
34// Author: 2002 J.P. Wellisch
35//
36// Modified:
37// 21.11.2005 G.Folger:  migration to non static particles
38// 08.06.2006 V.Ivanchenko: remove stopping
39// 30.03.2007 G.Folger: Add code for quasielastic
40// 12.11.2007 G.Folger: Add code for projectileDiffraction for proton/neutron
41//
42
43#include "HadronPhysicsQGSP.hh"
44
45#include "globals.hh"
46#include "G4ios.hh"
47#include <iomanip>  
48#include "G4ParticleDefinition.hh"
49#include "G4ParticleTable.hh"
50
51#include "G4MesonConstructor.hh"
52#include "G4BaryonConstructor.hh"
53#include "G4ShortLivedConstructor.hh"
54
55HadronPhysicsQGSP::HadronPhysicsQGSP(G4int)
56                 :  G4VPhysicsConstructor("hInelastic QGSP")
57                  , QuasiElastic(true)
58{
59   ProjectileDiffraction=false;
60}
61
62HadronPhysicsQGSP::HadronPhysicsQGSP(const G4String& name, G4bool quasiElastic)
63                 :  G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
64{
65   ProjectileDiffraction=false;
66}
67
68void HadronPhysicsQGSP::CreateModels()
69{
70  theNeutrons=new G4NeutronBuilder;
71  theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction);
72  theNeutrons->RegisterMe(theQGSPNeutron);
73  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
74  theLEPNeutron->SetMaxInelasticEnergy(25*GeV); 
75
76  thePro=new G4ProtonBuilder;
77  theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic, ProjectileDiffraction);
78  thePro->RegisterMe(theQGSPPro);
79  thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
80  theLEPPro->SetMaxEnergy(25*GeV);
81 
82  thePiK=new G4PiKBuilder;
83  theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic, false);
84  thePiK->RegisterMe(theQGSPPiK);
85  thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
86  theLEPPiK->SetMaxEnergy(25*GeV);
87 
88  theMiscLHEP=new G4MiscLHEPBuilder;
89}
90
91HadronPhysicsQGSP::~HadronPhysicsQGSP()
92{
93   delete theMiscLHEP;
94   delete theQGSPNeutron;
95   delete theLEPNeutron;
96   delete theQGSPPro;
97   delete theLEPPro;
98   delete thePro;
99   delete theQGSPPiK;
100   delete theLEPPiK;
101   delete thePiK;
102}
103
104
105void HadronPhysicsQGSP::ConstructParticle()
106{
107  G4MesonConstructor pMesonConstructor;
108  pMesonConstructor.ConstructParticle();
109
110  G4BaryonConstructor pBaryonConstructor;
111  pBaryonConstructor.ConstructParticle();
112
113  G4ShortLivedConstructor pShortLivedConstructor;
114  pShortLivedConstructor.ConstructParticle(); 
115}
116
117#include "G4ProcessManager.hh"
118void HadronPhysicsQGSP::ConstructProcess()
119{
120  CreateModels();
121  theNeutrons->Build();
122  thePro->Build();
123  thePiK->Build();
124  theMiscLHEP->Build();
125}
126
Note: See TracBrowser for help on using the repository browser.