Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
examples/extended/hadronic/Hadr03/src/PhysicsList.cc
Go to the documentation of this file.
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 /// \file hadronic/Hadr03/src/PhysicsList.cc
27 /// \brief Implementation of the PhysicsList class
28 //
29 // $Id: PhysicsList.cc 70319 2013-05-29 07:53:09Z gcosmo $
30 
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 
33 #include "PhysicsList.hh"
34 
35 #include "G4SystemOfUnits.hh"
36 #include "G4UnitsTable.hh"
37 
39 #include "G4HadronInelasticQBBC.hh"
41 #include "G4HadronPhysicsINCLXX.hh"
42 #include "G4IonPhysics.hh"
43 #include "G4IonINCLXXPhysics.hh"
44 #include "GammaPhysics.hh"
45 
46 // particles
47 
48 #include "G4BosonConstructor.hh"
49 #include "G4LeptonConstructor.hh"
50 #include "G4MesonConstructor.hh"
51 #include "G4BosonConstructor.hh"
52 #include "G4BaryonConstructor.hh"
53 #include "G4IonConstructor.hh"
55 
56 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
57 
60 {
61  G4int verb = 1;
62  SetVerboseLevel(verb);
63 
64  //add new units for cross sections
65  //
66  new G4UnitDefinition( "mm2/g", "mm2/g", "Surface/Mass", mm2/g);
67  new G4UnitDefinition( "um2/mg", "um2/mg","Surface/Mass", um*um/mg);
68 
69  // Hadron Elastic scattering
71 
72  // Hadron Inelastic Physics
73  ////RegisterPhysics( new G4HadronInelasticQBBC(verb));
75  ////RegisterPhysics( new G4HadronPhysicsINCLXX(verb));
76 
77  // Ion Physics
78  RegisterPhysics( new G4IonPhysics(verb));
79  ////RegisterPhysics( new G4IonINCLXXPhysics(verb));
80 
81  // Gamma Physics
82  RegisterPhysics( new GammaPhysics("gamma"));
83 }
84 
85 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
86 
88 { }
89 
90 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
91 
93 {
94  G4BosonConstructor pBosonConstructor;
95  pBosonConstructor.ConstructParticle();
96 
97  G4LeptonConstructor pLeptonConstructor;
98  pLeptonConstructor.ConstructParticle();
99 
100  G4MesonConstructor pMesonConstructor;
101  pMesonConstructor.ConstructParticle();
102 
103  G4BaryonConstructor pBaryonConstructor;
104  pBaryonConstructor.ConstructParticle();
105 
106  G4IonConstructor pIonConstructor;
107  pIonConstructor.ConstructParticle();
108 
109  G4ShortLivedConstructor pShortLivedConstructor;
110  pShortLivedConstructor.ConstructParticle();
111 }
112 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113 
115 {
116  SetCutValue(0*mm, "proton");
117 }
118 
119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void RegisterPhysics(G4VPhysicsConstructor *)
void SetCutValue(G4double aCut, const G4String &pname)
static void ConstructParticle()
static void ConstructParticle()
int G4int
Definition: G4Types.hh:78
static void ConstructParticle()
function g(Y1, Y2, PT2)
Definition: hijing1.383.f:5205
Definition of the GammaPhysics class.
static void ConstructParticle()
void SetVerboseLevel(G4int value)
static void ConstructParticle()