CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HadronPhysicsQGSP_BERT_WP.cc
Go to the documentation of this file.
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 // GEANT4 tag $Name: V04-05-01 $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: HadronPhysicsQGSP_BERT_WP
31 //
32 // Author: 2002 J.P. Wellisch
33 //
34 // Modified:
35 // 23.11.2005 G.Folger: migration to non static particles
36 // 08.06.2006 V.Ivanchenko: remove stopping
37 // 20.06.2006 G.Folger: Bertini applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy
38 // 25.04.2007 G.Folger: Add code for quasielastic
39 // 10.12.2007 G.Folger: Add projectilediffrative option for proton/neutron, off by default
40 //
41 //----------------------------------------------------------------------------
42 //
47 
48 #include "globals.hh"
49 #include "G4ios.hh"
50 #include <iomanip>
51 #include "G4ParticleDefinition.hh"
52 #include "G4ParticleTable.hh"
53 
54 #include "G4MesonConstructor.hh"
55 #include "G4BaryonConstructor.hh"
56 #include "G4ShortLivedConstructor.hh"
57 
58 HadronPhysicsQGSP_BERT_WP::HadronPhysicsQGSP_BERT_WP(const G4String& name, G4bool quasiElastic)
59  : G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
60 {
62 }
63 
65 {
66  theNeutrons=new G4NeutronBuilder;
67  theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic, ProjectileDiffraction));
68  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
69  theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
70  theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
71 
72  theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
73  theBertiniNeutron->SetMinEnergy(0.0*GeV);
74  theBertiniNeutron->SetMaxEnergy(9.9*GeV);
75 
78  thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
79  theLEPPro->SetMinEnergy(9.5*GeV);
80  theLEPPro->SetMaxEnergy(25*GeV);
81 
82  thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
83  theBertiniPro->SetMaxEnergy(9.9*GeV);
84 
86  thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
87  thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
88  theLEPPiK->SetMaxEnergy(25*GeV);
89  theLEPPiK->SetMinEnergy(9.5*GeV);
90 
91  thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
92  theBertiniPiK->SetMaxEnergy(9.9*GeV);
93 
95 }
96 
98 {
99  delete theMiscLHEP;
100  delete theQGSPNeutron;
101  delete theLEPNeutron;
102  delete theBertiniNeutron;
103  delete theQGSPPro;
104  delete theLEPPro;
105  delete thePro;
106  delete theBertiniPro;
107  delete theQGSPPiK;
108  delete theLEPPiK;
109  delete theBertiniPiK;
110  delete thePiK;
111 }
112 
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"
127 {
128  CreateModels();
129  theNeutrons->Build();
130  thePro->Build();
131  thePiK->Build();
132  theMiscLHEP->Build();
133 }
134 
135 // April 2008 Modified for CMS GflashHadronWrapperProcess
G4LEPNeutronBuilder * theLEPNeutron
HadronPhysicsQGSP_BERT_WP(const G4String &name="hadron", G4bool quasiElastic=true)
G4BertiniProtonBuilder * theBertiniPro
G4MiscLHEPBuilder_WP * theMiscLHEP
G4BertiniPiKBuilder * theBertiniPiK
void RegisterMe(G4VPiKBuilder *aB)
G4BertiniNeutronBuilder * theBertiniNeutron
void RegisterMe(G4VProtonBuilder *aB)
G4QGSPNeutronBuilder * theQGSPNeutron