source: trunk/source/physics_lists/lists/src/HadronPhysicsQGSC_QGSC.cc@ 1318

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

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

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: HadronPhysicsQGSC_QGSC.cc,v 1.5 2010/06/03 10:42:44 gunter Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName: HadronPhysicsQGSC_QGSC
32//
33// Author: 2007 G.Folger
34// created from HadronPhysicsQGSC, created by J.P. Wellisch
35//
36// Modified:
37//
38//----------------------------------------------------------------------------
39//
40#include "HadronPhysicsQGSC_QGSC.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
52HadronPhysicsQGSC_QGSC::HadronPhysicsQGSC_QGSC(G4int)
53 : G4VPhysicsConstructor("hInelastic QGSC_QGSC")
54 , QuasiElastic(true)
55{}
56
57HadronPhysicsQGSC_QGSC::HadronPhysicsQGSC_QGSC(const G4String& name, G4bool quasiElastic)
58 : G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
59{}
60
61void HadronPhysicsQGSC_QGSC::CreateModels()
62{
63 theNeutrons = new G4NeutronBuilder;
64 theNeutrons->RegisterMe(theQGSCNeutron=new G4QGSC_QGSCNeutronBuilder(QuasiElastic));
65 //theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
66
67 // M.K. ???
68 theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
69 theLEPNeutron->SetMinInelasticEnergy(0.0*eV); // no inelastic from LEP
70 theLEPNeutron->SetMaxInelasticEnergy(0.0*eV);
71
72 theQGSCNeutron->SetMinEnergy(0.0*GeV);
73 //theBertiniNeutron->SetMinEnergy(0.0*GeV);
74 //theBertiniNeutron->SetMaxEnergy(9.0*GeV);
75
76 thePro=new G4ProtonBuilder;
77 thePro->RegisterMe(theQGSCPro=new G4QGSC_QGSCProtonBuilder(QuasiElastic));
78 //thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
79
80 theQGSCPro->SetMinEnergy(0.0*GeV);
81 //theBertiniPro->SetMaxEnergy(9.0*GeV);
82
83 thePiK=new G4PiKBuilder;
84 thePiK->RegisterMe(theQGSCPiK=new G4QGSC_QGSCPiKBuilder(QuasiElastic));
85 //thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
86
87 theQGSCPiK->SetMinEnergy(0.0*GeV);
88 //theBertiniPiK->SetMaxEnergy(9.0*GeV);
89
90 //theMiscLHEP=new G4MiscLHEPBuilder; // To be replaced by QGSC
91 theMiscQGSC=new G4MiscQGSCBuilder(0); // No verbose (@@ to be developed)
92}
93
94HadronPhysicsQGSC_QGSC::~HadronPhysicsQGSC_QGSC()
95{
96 delete theQGSCNeutron;
97 //delete theBertiniNeutron;
98 delete theLEPNeutron;
99 delete theNeutrons;
100
101 delete theQGSCPro;
102 //delete theBertiniPro;
103 delete thePro;
104
105 delete theQGSCPiK;
106 //delete theBertiniPiK;
107 delete thePiK;
108
109 //delete theMiscLHEP;
110 delete theMiscQGSC;
111}
112
113void HadronPhysicsQGSC_QGSC::ConstructParticle()
114{
115 G4MesonConstructor pMesonConstructor;
116 pMesonConstructor.ConstructParticle();
117
118 G4BaryonConstructor pBaryonConstructor;
119 pBaryonConstructor.ConstructParticle();
120
121 G4ShortLivedConstructor pShortLivedConstructor;
122 pShortLivedConstructor.ConstructParticle();
123}
124
125#include "G4ProcessManager.hh"
126void HadronPhysicsQGSC_QGSC::ConstructProcess()
127{
128 CreateModels();
129 theNeutrons->Build();
130 thePro->Build();
131 thePiK->Build();
132 //theMiscLHEP->Build();
133 theMiscQGSC->Build();
134}
135
Note: See TracBrowser for help on using the repository browser.