source: trunk/source/physics_lists/lists/include/QGSP_BERT_EMX.icc @ 1206

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

CVS update

File size: 4.0 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: QGSP_BERT_EMX.icc,v 1.1 2009/05/11 11:11:38 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03-cand-03 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName: QGSP_BERT_EMX
32//
33// Author: 11 May 2009  V.Ivanchenko
34//   created from QGSP_BERT
35//
36//----------------------------------------------------------------------------
37//
38
39#include "globals.hh"
40#include "G4ParticleDefinition.hh"
41#include "G4ParticleWithCuts.hh"
42#include "G4ProcessManager.hh"
43#include "G4ProcessVector.hh"
44#include "G4ParticleTypes.hh"
45#include "G4ParticleTable.hh"
46
47#include "G4Material.hh"
48#include "G4MaterialTable.hh"
49#include "G4ios.hh"
50#include <iomanip>   
51
52#include "G4DecayPhysics.hh"
53#include "G4EmStandardPhysics_option2.hh"
54#include "G4EmExtraPhysics.hh"
55#include "G4IonPhysics.hh"
56#include "G4QStoppingPhysics.hh"
57#include "G4HadronElasticPhysics.hh"
58#include "G4NeutronTrackingCut.hh"
59
60#include "G4DataQuestionaire.hh"
61#include "HadronPhysicsQGSP_BERT.hh"
62
63template<class T> TQGSP_BERT_EMX<T>::TQGSP_BERT_EMX(G4int ver):  T()
64{
65
66  G4DataQuestionaire it(photon);
67  G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BERT_EMX 1.0"<<G4endl;
68  G4cout <<G4endl;
69
70  this->defaultCutValue = 0.7*mm; 
71  this->SetVerboseLevel(ver);
72
73  // EM Physics
74  this->RegisterPhysics( new G4EmStandardPhysics_option2(ver));
75
76  // Synchroton Radiation & GN Physics
77  this->RegisterPhysics( new G4EmExtraPhysics("extra EM"));
78
79  // Decays
80  this->RegisterPhysics( new G4DecayPhysics("decay",ver) );
81
82   // Hadron Elastic scattering
83  this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
84
85  // Hadron Physics
86   G4bool quasiElastic;
87  this->RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron",quasiElastic=true));
88
89  // Stopping Physics
90  this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
91
92  // Ion Physics
93  this->RegisterPhysics( new G4IonPhysics("ion"));
94 
95  // Neutron tracking cut
96  this->RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
97
98}
99
100template<class T> TQGSP_BERT_EMX<T>::~TQGSP_BERT_EMX()
101{
102}
103
104template<class T> void TQGSP_BERT_EMX<T>::SetCuts()
105{
106  if (this->verboseLevel >1){
107    G4cout << "QGSP_BERT_EMX::SetCuts:";
108  } 
109  //  " G4VUserPhysicsList::SetCutsWithDefault" method sets
110  //   the default cut value for all particle types
111
112  this->SetCutsWithDefault();   
113 
114//  if (this->verboseLevel >0)
115//    G4VUserPhysicsList::DumpCutValuesTable(); 
116}
117
118
119
120// 2002 by J.P. Wellisch
Note: See TracBrowser for help on using the repository browser.