source: trunk/source/physics_lists/lists/src/HadronPhysicsFTFP_BERT.cc@ 1180

Last change on this file since 1180 was 988, checked in by garnier, 17 years ago

fichiers manquants

File size: 4.2 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: HadronPhysicsFTFP_BERT.cc,v 1.1 2007/10/19 15:35:08 gunter Exp $
27// GEANT4 tag $Name: geant4-09-02-ref-02 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName:
32//
33// Author: 2007 Gunter Folger
34// created from HadronPhysicsFTFP
35//
36// Modified:
37//
38//----------------------------------------------------------------------------
39//
40#include "HadronPhysicsFTFP_BERT.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
52HadronPhysicsFTFP_BERT::HadronPhysicsFTFP_BERT(const G4String& name, G4bool quasiElastic)
53 : G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
54{}
55
56void HadronPhysicsFTFP_BERT::CreateModels()
57{
58
59 theNeutrons=new G4NeutronBuilder;
60 theFTFPNeutron=new G4FTFPNeutronBuilder(QuasiElastic);
61 theNeutrons->RegisterMe(theFTFPNeutron);
62 theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
63 theBertiniNeutron->SetMinEnergy(0.0*GeV);
64 theBertiniNeutron->SetMaxEnergy(5*GeV);
65 theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
66 theLEPNeutron->SetMinInelasticEnergy(0.0*eV); // no inelastic from LEP
67 theLEPNeutron->SetMaxInelasticEnergy(0.0*eV);
68
69 thePro=new G4ProtonBuilder;
70 theFTFPPro=new G4FTFPProtonBuilder(QuasiElastic);
71 thePro->RegisterMe(theFTFPPro);
72 thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
73 theBertiniPro->SetMaxEnergy(5*GeV);
74
75 thePiK=new G4PiKBuilder;
76 theFTFPPiK=new G4FTFPPiKBuilder(QuasiElastic);
77 thePiK->RegisterMe(theFTFPPiK);
78 thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
79 theBertiniPiK->SetMaxEnergy(5*GeV);
80
81 theMiscLHEP=new G4MiscLHEPBuilder;
82}
83
84HadronPhysicsFTFP_BERT::~HadronPhysicsFTFP_BERT()
85{
86 delete theNeutrons;
87 delete theBertiniNeutron;
88 delete theFTFPNeutron;
89
90 delete thePiK;
91 delete theBertiniPiK;
92 delete theFTFPPiK;
93
94 delete thePro;
95 delete theBertiniPro;
96 delete theFTFPPro;
97
98 delete theMiscLHEP;
99}
100
101void HadronPhysicsFTFP_BERT::ConstructParticle()
102{
103 G4MesonConstructor pMesonConstructor;
104 pMesonConstructor.ConstructParticle();
105
106 G4BaryonConstructor pBaryonConstructor;
107 pBaryonConstructor.ConstructParticle();
108
109 G4ShortLivedConstructor pShortLivedConstructor;
110 pShortLivedConstructor.ConstructParticle();
111}
112
113#include "G4ProcessManager.hh"
114void HadronPhysicsFTFP_BERT::ConstructProcess()
115{
116 CreateModels();
117 theNeutrons->Build();
118 thePro->Build();
119 thePiK->Build();
120 theMiscLHEP->Build();
121}
122
Note: See TracBrowser for help on using the repository browser.