source: trunk/source/physics_lists/lists/src/HadronPhysicsLHEP.cc

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

tag geant4.9.4 beta 1 + modifs locales

File size: 3.6 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: HadronPhysicsLHEP.cc,v 1.2 2010/06/03 10:42:44 gunter Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-01 $
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
52HadronPhysicsLHEP::HadronPhysicsLHEP(G4int)
53                    :  G4VPhysicsConstructor("hInelastic LHEP") 
54{}
55
56HadronPhysicsLHEP::HadronPhysicsLHEP(const G4String& name)
57                    :  G4VPhysicsConstructor(name) 
58{}
59
60void HadronPhysicsLHEP::CreateModels()
61{
62  theNeutrons=new G4NeutronBuilder;
63  theNeutrons->RegisterMe(theLHEPNeutron=new G4LHEPNeutronBuilder);
64
65  thePro=new G4ProtonBuilder;
66  thePro->RegisterMe(theLHEPPro=new G4LHEPProtonBuilder);
67
68  thePiK=new G4PiKBuilder;
69  thePiK->RegisterMe(theLHEPPiK=new G4LHEPPiKBuilder);
70
71  theMiscLHEP=new G4MiscLHEPBuilder;
72  theStoppingHadron=new G4StoppingHadronBuilder; 
73}
74
75HadronPhysicsLHEP::~HadronPhysicsLHEP()
76{
77   delete theLHEPNeutron;
78   delete theNeutrons;
79   delete theLHEPPro;
80   delete thePro;
81   delete theLHEPPiK;
82   delete thePiK;
83}
84
85void HadronPhysicsLHEP::ConstructParticle()
86{
87  G4MesonConstructor pMesonConstructor;
88  pMesonConstructor.ConstructParticle();
89
90  G4BaryonConstructor pBaryonConstructor;
91  pBaryonConstructor.ConstructParticle();
92
93  G4ShortLivedConstructor pShortLivedConstructor;
94  pShortLivedConstructor.ConstructParticle(); 
95}
96
97#include "G4ProcessManager.hh"
98void HadronPhysicsLHEP::ConstructProcess()
99{
100  CreateModels();
101  theNeutrons->Build();
102  thePro->Build();
103  thePiK->Build();
104  theMiscLHEP->Build();
105  theStoppingHadron->Build();
106}
107// 2002 by J.P. Wellisch
Note: See TracBrowser for help on using the repository browser.