source: trunk/source/physics_lists/lists/src/HadronPhysicsFTFP_BERT_TRV.cc @ 1248

Last change on this file since 1248 was 1228, checked in by garnier, 15 years ago

update geant4.9.3 tag

File size: 4.8 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_TRV.cc,v 1.1 2009/06/02 16:51:59 gunter Exp $
27// GEANT4 tag $Name: geant4-09-03 $
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_TRV.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_TRV::HadronPhysicsFTFP_BERT_TRV(const G4String& name, G4bool quasiElastic)
53                    :  G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
54{}
55
56void HadronPhysicsFTFP_BERT_TRV::CreateModels()
57{
58  G4double minFTFP= 6.0 * GeV;
59  G4double maxBERT= 8.0 * GeV;
60  // G4double minFTFP= 5.0 * GeV; G4double maxBERT= 7.0 * GeV;
61  G4cout << " Revised FTFTP_BERT_TRV - new threshold between BERT and FTFP " 
62         << " is over the interval " << minFTFP/GeV << " to " << maxBERT/GeV
63         << " GeV. " << G4endl;
64  G4cout << "  -- quasiElastic was asked to be " << QuasiElastic
65         << " and it is reset to " << false << G4endl;
66  QuasiElastic= false; 
67
68  theNeutrons=new G4NeutronBuilder;
69  theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
70  theBertiniNeutron->SetMinEnergy(0.0*GeV);
71  theBertiniNeutron->SetMaxEnergy(maxBERT);
72  theFTFPNeutron=new G4FTFPNeutronBuilder(QuasiElastic);
73  theNeutrons->RegisterMe(theFTFPNeutron);
74  theFTFPNeutron->SetMinEnergy(minFTFP);
75  // Exclude LEP -- don't even register it
76  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
77  theLEPNeutron->SetMinInelasticEnergy(0.0*GeV);
78  theLEPNeutron->SetMaxInelasticEnergy(0.0*GeV);
79
80  thePro=new G4ProtonBuilder;
81  theFTFPPro=new G4FTFPProtonBuilder(QuasiElastic);
82  thePro->RegisterMe(theFTFPPro);
83  thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
84  theFTFPPro->SetMinEnergy(minFTFP);
85  theBertiniPro->SetMaxEnergy(maxBERT);
86
87  thePiK=new G4PiKBuilder;
88  theFTFPPiK=new G4FTFPPiKBuilder(QuasiElastic);
89  thePiK->RegisterMe(theFTFPPiK);
90  thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
91  theFTFPPiK->SetMinEnergy(minFTFP);
92  theBertiniPiK->SetMaxEnergy(maxBERT);
93 
94  theMiscLHEP=new G4MiscLHEPBuilder;
95}
96
97HadronPhysicsFTFP_BERT_TRV::~HadronPhysicsFTFP_BERT_TRV()
98{
99  delete theNeutrons;
100  delete theBertiniNeutron;
101  delete theFTFPNeutron;
102   
103  delete thePiK;
104  delete theBertiniPiK;
105  delete theFTFPPiK;
106   
107  delete thePro;
108  delete theBertiniPro;
109  delete theFTFPPro;   
110   
111  delete theMiscLHEP;
112}
113
114void HadronPhysicsFTFP_BERT_TRV::ConstructParticle()
115{
116  G4MesonConstructor pMesonConstructor;
117  pMesonConstructor.ConstructParticle();
118
119  G4BaryonConstructor pBaryonConstructor;
120  pBaryonConstructor.ConstructParticle();
121
122  G4ShortLivedConstructor pShortLivedConstructor;
123  pShortLivedConstructor.ConstructParticle(); 
124}
125
126#include "G4ProcessManager.hh"
127void HadronPhysicsFTFP_BERT_TRV::ConstructProcess()
128{
129  CreateModels();
130  theNeutrons->Build();
131  thePro->Build();
132  thePiK->Build();
133  theMiscLHEP->Build();
134}
135
Note: See TracBrowser for help on using the repository browser.