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: HadronPhysicsLHEP.cc,v 1.1 2006/10/31 11:35:10 gunter Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
28 | // |
---|
29 | //--------------------------------------------------------------------------- |
---|
30 | // |
---|
31 | // ClassName: HadronPhysicsLHEP |
---|
32 | // |
---|
33 | // Author: 2002 J.P. Wellisch |
---|
34 | // |
---|
35 | // Modified: |
---|
36 | // 21.11.2005 G.Folger: don't keep processes as data members, but new these |
---|
37 | // |
---|
38 | //---------------------------------------------------------------------------- |
---|
39 | // |
---|
40 | #include "HadronPhysicsLHEP.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 | |
---|
52 | HadronPhysicsLHEP::HadronPhysicsLHEP(const G4String& name) |
---|
53 | : G4VPhysicsConstructor(name) |
---|
54 | {} |
---|
55 | |
---|
56 | void HadronPhysicsLHEP::CreateModels() |
---|
57 | { |
---|
58 | theNeutrons=new G4NeutronBuilder; |
---|
59 | theNeutrons->RegisterMe(theLHEPNeutron=new G4LHEPNeutronBuilder); |
---|
60 | |
---|
61 | thePro=new G4ProtonBuilder; |
---|
62 | thePro->RegisterMe(theLHEPPro=new G4LHEPProtonBuilder); |
---|
63 | |
---|
64 | thePiK=new G4PiKBuilder; |
---|
65 | thePiK->RegisterMe(theLHEPPiK=new G4LHEPPiKBuilder); |
---|
66 | |
---|
67 | theMiscLHEP=new G4MiscLHEPBuilder; |
---|
68 | theStoppingHadron=new G4StoppingHadronBuilder; |
---|
69 | } |
---|
70 | |
---|
71 | HadronPhysicsLHEP::~HadronPhysicsLHEP() |
---|
72 | { |
---|
73 | delete theLHEPNeutron; |
---|
74 | delete theNeutrons; |
---|
75 | delete theLHEPPro; |
---|
76 | delete thePro; |
---|
77 | delete theLHEPPiK; |
---|
78 | delete thePiK; |
---|
79 | } |
---|
80 | |
---|
81 | void HadronPhysicsLHEP::ConstructParticle() |
---|
82 | { |
---|
83 | G4MesonConstructor pMesonConstructor; |
---|
84 | pMesonConstructor.ConstructParticle(); |
---|
85 | |
---|
86 | G4BaryonConstructor pBaryonConstructor; |
---|
87 | pBaryonConstructor.ConstructParticle(); |
---|
88 | |
---|
89 | G4ShortLivedConstructor pShortLivedConstructor; |
---|
90 | pShortLivedConstructor.ConstructParticle(); |
---|
91 | } |
---|
92 | |
---|
93 | #include "G4ProcessManager.hh" |
---|
94 | void HadronPhysicsLHEP::ConstructProcess() |
---|
95 | { |
---|
96 | CreateModels(); |
---|
97 | theNeutrons->Build(); |
---|
98 | thePro->Build(); |
---|
99 | thePiK->Build(); |
---|
100 | theMiscLHEP->Build(); |
---|
101 | theStoppingHadron->Build(); |
---|
102 | } |
---|
103 | // 2002 by J.P. Wellisch |
---|