Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4LHEPPiKBuilder.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 #include "G4LHEPPiKBuilder.hh"
27 
28 #include "globals.hh"
29 #include "G4ios.hh"
30 #include "G4SystemOfUnits.hh"
31 #include "G4ParticleDefinition.hh"
32 #include "G4ParticleTable.hh"
33 #include "G4MesonConstructor.hh"
34 #include "G4BaryonConstructor.hh"
35 #include "G4ProcessManager.hh"
36 
39  theLEPionPlusModel(0),theHEPionPlusModel(0),
40  theLEPionMinusModel(0), theHEPionMinusModel(0),
41  theLEKaonPlusModel(0),theHEKaonPlusModel(0),
42  theLEKaonMinusModel(0), theHEKaonMinusModel(0),
43  theLEKaonZeroLModel(0),theHEKaonZeroLModel(0),
44  theLEKaonZeroSModel(0),theHEKaonZeroSModel(0)
45 {
46  theM = 0;
47  theMinPion = theM;
48 }
49 
52 {
53  delete theLEPionPlusModel;
54  delete theHEPionPlusModel;
55 }
56 
59 {
60 }
61 
64 {
65  theLEPionPlusModel = new G4LEPionPlusInelastic();
66  theHEPionPlusModel = new G4HEPionPlusInelastic();
67  theLEPionPlusModel->SetMinEnergy(theMinPion);
68  theLEPionPlusModel->SetMaxEnergy(55*GeV);
69  theHEPionPlusModel->SetMinEnergy(25*GeV);
70  aP->RegisterMe(theLEPionPlusModel);
71  aP->RegisterMe(theHEPionPlusModel);
72 }
73 
76 {
77  theLEPionMinusModel = new G4LEPionMinusInelastic();
78  theHEPionMinusModel = new G4HEPionMinusInelastic();
79  theLEPionMinusModel->SetMinEnergy(theMinPion);
80  theLEPionMinusModel->SetMaxEnergy(55*GeV);
81  theHEPionMinusModel->SetMinEnergy(25*GeV);
82  aP->RegisterMe(theLEPionMinusModel);
83  aP->RegisterMe(theHEPionMinusModel);
84 }
85 
88 {
89  theLEKaonPlusModel = new G4LEKaonPlusInelastic();
90  theHEKaonPlusModel = new G4HEKaonPlusInelastic();
91  theLEKaonPlusModel->SetMinEnergy(theM);
92  aP->RegisterMe(theLEKaonPlusModel);
93  aP->RegisterMe(theHEKaonPlusModel);
94 }
95 
98 {
99  theLEKaonMinusModel = new G4LEKaonMinusInelastic();
100  theHEKaonMinusModel = new G4HEKaonMinusInelastic();
101  theLEKaonMinusModel->SetMinEnergy(theM);
102  aP->RegisterMe(theLEKaonMinusModel);
103  aP->RegisterMe(theHEKaonMinusModel);
104 }
105 
108 {
109  theLEKaonZeroLModel = new G4LEKaonZeroLInelastic();
110  theHEKaonZeroLModel = new G4HEKaonZeroInelastic();
111  theLEKaonZeroLModel->SetMinEnergy(theM);
112  aP->RegisterMe(theLEKaonZeroLModel);
113  aP->RegisterMe(theHEKaonZeroLModel);
114 }
115 
118 {
119  theLEKaonZeroSModel = new G4LEKaonZeroSInelastic();
120  theHEKaonZeroSModel = new G4HEKaonZeroInelastic();
121  theLEKaonZeroSModel->SetMinEnergy(theM);
122  aP->RegisterMe(theLEKaonZeroSModel);
123  aP->RegisterMe(theHEKaonZeroSModel);
124 }
125 
126 // 2002 by J.P. Wellisch