source: trunk/examples/extended/eventgenerator/exgps/src/exGPSPhysicsList.cc @ 1337

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

update

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#include "exGPSPhysicsList.hh"
27
28#include "G4ParticleDefinition.hh"
29#include "G4ParticleWithCuts.hh"
30#include "G4ProcessManager.hh"
31#include "G4ProcessVector.hh"
32#include "G4ParticleTypes.hh"
33#include "G4ParticleTable.hh"
34#include "G4Material.hh"
35#include "G4ios.hh"             
36
37//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
38
39exGPSPhysicsList::exGPSPhysicsList():  G4VUserPhysicsList()
40{
41  SetVerboseLevel(1);
42}
43
44//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
45
46exGPSPhysicsList::~exGPSPhysicsList()
47{}
48
49//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
50
51void exGPSPhysicsList::ConstructParticle()
52{
53  // In this method, static member functions should be called
54  // for all particles which you want to use.
55  // This ensures that objects of these particle types will be
56  // created in the program.
57
58  ConstructBosons();
59  ConstructLeptons();
60  ConstructMesons();
61  ConstructBaryons();
62  ConstructNuclei();
63}
64
65//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
66
67void exGPSPhysicsList::ConstructBosons()
68{
69  // pseudo-particles
70  G4Geantino::GeantinoDefinition();
71  G4ChargedGeantino::ChargedGeantinoDefinition();
72
73  // gamma
74  G4Gamma::GammaDefinition();
75
76  // optical photon
77  G4OpticalPhoton::OpticalPhotonDefinition();
78}
79 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
80#include "G4LeptonConstructor.hh"
81void exGPSPhysicsList::ConstructLeptons()
82{
83  // Construct all leptons
84  G4LeptonConstructor pConstructor;
85  pConstructor.ConstructParticle();
86}
87
88//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
89#include "G4MesonConstructor.hh"
90void exGPSPhysicsList::ConstructMesons()
91{
92  //  Construct all mesons
93  G4MesonConstructor pConstructor;
94  pConstructor.ConstructParticle();
95}
96
97//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
98#include "G4BaryonConstructor.hh"
99void exGPSPhysicsList::ConstructBaryons()
100{
101  //  Construct all barions
102  G4BaryonConstructor  pConstructor;
103  pConstructor.ConstructParticle(); 
104}
105
106void exGPSPhysicsList::ConstructNuclei()
107{
108  G4Deuteron::DeuteronDefinition();
109  G4Triton::TritonDefinition();
110  G4He3::He3Definition();
111  G4Alpha::AlphaDefinition();
112  G4GenericIon::GenericIonDefinition();
113}
114
115//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
116
117void exGPSPhysicsList::ConstructProcess()
118{
119  AddTransportation();
120}
121
122
123void exGPSPhysicsList::SetCuts()
124{
125  // surppress error messages even in case e/gamma/proton do not exist           
126  G4int temp = GetVerboseLevel();
127  SetVerboseLevel(0);                                                         
128  //  " G4VUserPhysicsList::SetCutsWithDefault" method sets
129  //   the default cut value for all particle types
130  SetCutsWithDefault();   
131 
132  // Retrieve verbose level
133  SetVerboseLevel(temp); 
134}
135
136
137
138
139
Note: See TracBrowser for help on using the repository browser.