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

Last change on this file since 1199 was 988, checked in by garnier, 15 years ago

fichiers manquants

File size: 4.3 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.2 2008/04/25 14:53:34 gunter Exp $
27// GEANT4 tag $Name: geant4-09-02-ref-02 $
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(const G4String& name, G4bool quasiElastic)
52                    :  G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
53{}
54
55void HadronPhysicsFTF_BIC::CreateModels()
56{
57  theNeutrons=new G4NeutronBuilder;
58
59  theNeutrons->RegisterMe(theFTFBinaryNeutron=new G4FTFBinaryNeutronBuilder(QuasiElastic));
60  theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
61  theLEPNeutron->SetMinInelasticEnergy(0.*eV);
62  theLEPNeutron->SetMaxInelasticEnergy(0.*eV); 
63
64  theNeutrons->RegisterMe(theBinaryNeutron=new G4BinaryNeutronBuilder);
65  theBinaryNeutron->SetMaxEnergy(5.0*GeV);
66
67  thePro=new G4ProtonBuilder;
68  thePro->RegisterMe(theFTFBinaryPro=new G4FTFBinaryProtonBuilder(QuasiElastic));
69
70  thePro->RegisterMe(theBinaryPro=new G4BinaryProtonBuilder);
71  theBinaryPro->SetMaxEnergy(5.0*GeV);
72 
73  thePiK=new G4PiKBuilder;
74  thePiK->RegisterMe(theFTFBinaryPiK=new G4FTFBinaryPiKBuilder(QuasiElastic));
75  thePiK->RegisterMe(theBICPiK = new G4BinaryPiKBuilder);
76  thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
77  theLEPPiK->SetMinPionEnergy(10*GeV);   // don't use LEP for pion
78  theBICPiK->SetMaxEnergy(5*GeV);        //  use Binary up to 5GeV for pion
79  theLEPPiK->SetMaxEnergy(5*GeV); 
80
81  theMiscLHEP=new G4MiscLHEPBuilder;
82}
83
84HadronPhysicsFTF_BIC::~HadronPhysicsFTF_BIC() 
85{
86   delete theMiscLHEP;
87   delete theFTFBinaryNeutron;
88   delete theLEPNeutron;
89   delete theBinaryNeutron;
90   delete theNeutrons;
91   delete theFTFBinaryPro;
92   delete theBinaryPro;
93   delete thePro;
94   delete theFTFBinaryPiK;
95   delete theBICPiK;
96   delete theLEPPiK;
97   delete thePiK;
98}
99
100void HadronPhysicsFTF_BIC::ConstructParticle()
101{
102  G4MesonConstructor pMesonConstructor;
103  pMesonConstructor.ConstructParticle();
104
105  G4BaryonConstructor pBaryonConstructor;
106  pBaryonConstructor.ConstructParticle();
107
108  G4ShortLivedConstructor pShortLivedConstructor;
109  pShortLivedConstructor.ConstructParticle(); 
110}
111
112#include "G4ProcessManager.hh"
113void HadronPhysicsFTF_BIC::ConstructProcess()
114{
115  CreateModels();
116  theNeutrons->Build();
117  thePro->Build();
118  thePiK->Build();
119  theMiscLHEP->Build();
120}
121
Note: See TracBrowser for help on using the repository browser.