source: trunk/source/physics_lists/lists/src/HadronPhysicsFTF_BIC.cc @ 1337

Last change on this file since 1337 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 4.5 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: HadronPhysicsFTF_BIC.cc,v 1.3 2010/06/03 10:42:44 gunter Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-01 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName:   HadronPhysicsFTF_BIC
32//
33// Author: 2007 Gunter Folger
34//
35// Modified:
36//
37//----------------------------------------------------------------------------
38//
39#include "HadronPhysicsFTF_BIC.hh"
40
41#include "globals.hh"
42#include "G4ios.hh"
43#include <iomanip>  
44#include "G4ParticleDefinition.hh"
45#include "G4ParticleTable.hh"
46
47#include "G4MesonConstructor.hh"
48#include "G4BaryonConstructor.hh"
49#include "G4ShortLivedConstructor.hh"
50
51HadronPhysicsFTF_BIC::HadronPhysicsFTF_BIC(G4int)
52                    :  G4VPhysicsConstructor("hInelastic FTF_BIC")
53                     , QuasiElastic(false)
54{}
55
56HadronPhysicsFTF_BIC::HadronPhysicsFTF_BIC(const G4String& name, G4bool quasiElastic)
57                    :  G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
58{}
59
60void HadronPhysicsFTF_BIC::CreateModels()
61{
62  theNeutrons=new G4NeutronBuilder;
63
64  theNeutrons->RegisterMe(theFTFBinaryNeutron=new G4FTFBinaryNeutronBuilder(QuasiElastic));
65  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
66  theLEPNeutron->SetMinInelasticEnergy(0.*eV);
67  theLEPNeutron->SetMaxInelasticEnergy(0.*eV); 
68
69  theNeutrons->RegisterMe(theBinaryNeutron=new G4BinaryNeutronBuilder);
70  theBinaryNeutron->SetMaxEnergy(5.0*GeV);
71
72  thePro=new G4ProtonBuilder;
73  thePro->RegisterMe(theFTFBinaryPro=new G4FTFBinaryProtonBuilder(QuasiElastic));
74
75  thePro->RegisterMe(theBinaryPro=new G4BinaryProtonBuilder);
76  theBinaryPro->SetMaxEnergy(5.0*GeV);
77 
78  thePiK=new G4PiKBuilder;
79  thePiK->RegisterMe(theFTFBinaryPiK=new G4FTFBinaryPiKBuilder(QuasiElastic));
80  thePiK->RegisterMe(theBICPiK = new G4BinaryPiKBuilder);
81  thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
82  theLEPPiK->SetMinPionEnergy(10*GeV);   // don't use LEP for pion
83  theBICPiK->SetMaxEnergy(5*GeV);        //  use Binary up to 5GeV for pion
84  theLEPPiK->SetMaxEnergy(5*GeV); 
85
86  theMiscLHEP=new G4MiscLHEPBuilder;
87}
88
89HadronPhysicsFTF_BIC::~HadronPhysicsFTF_BIC() 
90{
91   delete theMiscLHEP;
92   delete theFTFBinaryNeutron;
93   delete theLEPNeutron;
94   delete theBinaryNeutron;
95   delete theNeutrons;
96   delete theFTFBinaryPro;
97   delete theBinaryPro;
98   delete thePro;
99   delete theFTFBinaryPiK;
100   delete theBICPiK;
101   delete theLEPPiK;
102   delete thePiK;
103}
104
105void HadronPhysicsFTF_BIC::ConstructParticle()
106{
107  G4MesonConstructor pMesonConstructor;
108  pMesonConstructor.ConstructParticle();
109
110  G4BaryonConstructor pBaryonConstructor;
111  pBaryonConstructor.ConstructParticle();
112
113  G4ShortLivedConstructor pShortLivedConstructor;
114  pShortLivedConstructor.ConstructParticle(); 
115}
116
117#include "G4ProcessManager.hh"
118void HadronPhysicsFTF_BIC::ConstructProcess()
119{
120  CreateModels();
121  theNeutrons->Build();
122  thePro->Build();
123  thePiK->Build();
124  theMiscLHEP->Build();
125}
126
Note: See TracBrowser for help on using the repository browser.