source: trunk/source/physics_lists/builders/src/G4LHEPPiKBuilder.cc @ 1273

Last change on this file since 1273 was 825, checked in by garnier, 16 years ago

import all except CVS

File size: 4.0 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#include "G4LHEPPiKBuilder.hh"
27
28#include "globals.hh"
29#include "G4ios.hh"
30#include "G4ParticleDefinition.hh"
31#include "G4ParticleTable.hh"
32#include "G4MesonConstructor.hh"
33#include "G4BaryonConstructor.hh"
34#include "G4ProcessManager.hh"
35
36G4LHEPPiKBuilder::
37G4LHEPPiKBuilder() 
38{
39  theM = 0;
40  theMinPion = theM;
41}
42
43G4LHEPPiKBuilder::
44~G4LHEPPiKBuilder() 
45{
46  delete theLEPionPlusModel;
47  delete theHEPionPlusModel;
48}
49
50void G4LHEPPiKBuilder::
51Build(G4HadronElasticProcess *)
52{
53}
54
55void G4LHEPPiKBuilder::
56Build(G4PionPlusInelasticProcess * aP)
57{
58  theLEPionPlusModel = new G4LEPionPlusInelastic();
59  theHEPionPlusModel = new G4HEPionPlusInelastic();
60  theLEPionPlusModel->SetMinEnergy(theMinPion);
61  theLEPionPlusModel->SetMaxEnergy(55*GeV);
62  theHEPionPlusModel->SetMinEnergy(25*GeV);
63  aP->RegisterMe(theLEPionPlusModel);
64  aP->RegisterMe(theHEPionPlusModel);
65}
66
67void G4LHEPPiKBuilder::
68Build(G4PionMinusInelasticProcess * aP)
69{
70  theLEPionMinusModel = new G4LEPionMinusInelastic();
71  theHEPionMinusModel = new G4HEPionMinusInelastic();
72  theLEPionMinusModel->SetMinEnergy(theMinPion);
73  theLEPionMinusModel->SetMaxEnergy(55*GeV);
74  theHEPionMinusModel->SetMinEnergy(25*GeV);
75  aP->RegisterMe(theLEPionMinusModel);
76  aP->RegisterMe(theHEPionMinusModel);
77}
78
79void G4LHEPPiKBuilder::
80Build(G4KaonPlusInelasticProcess * aP)
81{
82  theLEKaonPlusModel = new G4LEKaonPlusInelastic();
83  theHEKaonPlusModel = new G4HEKaonPlusInelastic();
84  theLEKaonPlusModel->SetMinEnergy(theM);
85  aP->RegisterMe(theLEKaonPlusModel);
86  aP->RegisterMe(theHEKaonPlusModel);
87}
88
89void G4LHEPPiKBuilder::
90Build(G4KaonMinusInelasticProcess * aP)
91{
92  theLEKaonMinusModel = new G4LEKaonMinusInelastic();
93  theHEKaonMinusModel = new G4HEKaonMinusInelastic();
94  theLEKaonMinusModel->SetMinEnergy(theM);
95  aP->RegisterMe(theLEKaonMinusModel);
96  aP->RegisterMe(theHEKaonMinusModel);
97}
98
99void G4LHEPPiKBuilder::
100Build(G4KaonZeroLInelasticProcess * aP)
101{
102  theLEKaonZeroLModel = new G4LEKaonZeroLInelastic();
103  theHEKaonZeroLModel = new G4HEKaonZeroInelastic();
104  theLEKaonZeroLModel->SetMinEnergy(theM);
105  aP->RegisterMe(theLEKaonZeroLModel);
106  aP->RegisterMe(theHEKaonZeroLModel);
107}
108 
109void G4LHEPPiKBuilder::
110Build(G4KaonZeroSInelasticProcess * aP)
111{
112  theLEKaonZeroSModel = new G4LEKaonZeroSInelastic();
113  theHEKaonZeroSModel = new G4HEKaonZeroInelastic();
114  theLEKaonZeroSModel->SetMinEnergy(theM);
115  aP->RegisterMe(theLEKaonZeroSModel);
116  aP->RegisterMe(theHEKaonZeroSModel);
117}
118
119// 2002 by J.P. Wellisch
Note: See TracBrowser for help on using the repository browser.