LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MyQGSP_BERT_HP_NeutronXSBias.icc
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 // $Id: MyQGSP_BERT_HP.icc 81937 2019-10-09 15:44:09Z drivera $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: MyQGSP_BERT_HP_NeutronXSBias
31 //
32 // Author: 2002 J.P. Wellisch
33 //
34 // Modified:
35 // 15.12.2005 G.Folger: migration to non static particles, rename components,
36 // ordering of registrations
37 // 08.06.2006 V.Ivanchenko: migration to CHIPS stopping
38 // 15.06.2006 G.Folger: Migrate to HadronElasticPhysics using improved elastic
39 // 26.04.2007 G.Folger: Enable quasielastic for QGS string model
40 // 16.05.2007 V.Ivanchenko: rename EM builders
41 // 04.06.2010 G.Folger: Use new ctor for builders
42 // 16.08.2010 H.Kurashige: Remove inclusion of G4ParticleWithCuts
43 // 16.10.2012 A.Ribon: Use new default stopping
44 // 09.10.2019 D.Rivera Modified for use with larg4
45 //
46 //----------------------------------------------------------------------------
47 //
48 #include <iomanip>
49 #include <stdlib.h>
50 
51 #include "Geant4/G4ParticleTable.hh"
52 #include "Geant4/G4ParticleTypes.hh"
53 #include "Geant4/G4ProcessManager.hh"
54 #include "Geant4/G4ProcessVector.hh"
55 #include "Geant4/G4ios.hh"
56 #include "Geant4/globals.hh"
57 
58 #include "Geant4/G4Material.hh"
59 #include "Geant4/G4MaterialTable.hh"
60 
61 #include "Geant4/G4DecayPhysics.hh"
62 #include "Geant4/G4EmStandardPhysics.hh"
63 #include "Geant4/G4IonPhysics.hh"
64 #include "Geant4/G4RadioactiveDecayPhysics.hh"
65 
66 #include "Geant4/G4EmExtraPhysics.hh"
67 #include "Geant4/G4StoppingPhysics.hh"
68 #include "MyG4HadronPhysicsQGSP_BERT_HP_NeutronXSBias.hh"
69 
70 #include "Geant4/G4HadronElasticPhysicsHP.hh"
71 
72 template<class T> TMyQGSP_BERT_HP_NeutronXSBias<T>::TMyQGSP_BERT_HP_NeutronXSBias(G4int ver)
73 : T(),
74  NEUTRON_INXS_SCALE(std::getenv("NEUTRON_INXS_SCALE"))
75 {
76  G4cout << "<<< Geant4 Physics List simulation engine: MyQGSP_BERT_HP_NeutronXSBias 3.0" << G4endl;
77  G4cout << G4endl << G4endl;
78 
79  this->defaultCutValue = 0.7 * CLHEP::mm;
80  this->SetVerboseLevel(ver);
81 
82  INXS_SCALE = (NEUTRON_INXS_SCALE ? strtod(NEUTRON_INXS_SCALE, 0) : 1.0 );
83  G4cout << "<<< Neutron inelastic XS scale factor : " << INXS_SCALE << std::endl;
84 
85  // EM Physics
86  this->RegisterPhysics(new G4EmStandardPhysics(ver));
87 
88  // Synchroton Radiation & GN Physics
89  this->RegisterPhysics(new G4EmExtraPhysics(ver));
90 
91  // Decays
92  this->RegisterPhysics(new G4DecayPhysics(ver));
93 
94  // Hadron Elastic scattering
95  this->RegisterPhysics(new G4HadronElasticPhysicsHP(ver));
96 
97  // Hadron Physics
98  //<--this->RegisterPhysics( new G4HadronPhysicsQGSP_BERT_HP(ver));
99  //-->this->RegisterPhysics( new MyG4HadronPhysicsQGSP_BERT_HP_NeutronXSBias("hInelastic_bias MyQGSP_BERT_HP_NeutronXSBias",true,2.0));
100  //this->RegisterPhysics( new MyG4HadronPhysicsQGSP_BERT_HP_NeutronXSBias("hInelastic_bias MyQGSP_BERT_HP_NeutronXSBias",true,0.5));
101  this->RegisterPhysics( new MyG4HadronPhysicsQGSP_BERT_HP_NeutronXSBias("hInelastic_bias MyQGSP_BERT_HP_NeutronXSBias", true, INXS_SCALE));
102 
103  // Stopping Physics
104  this->RegisterPhysics(new G4StoppingPhysics(ver));
105 
106  // Ion Physics
107  this->RegisterPhysics(new G4IonPhysics(ver));
108 }
109 
110 template <class T>
111 void
112 TMyQGSP_BERT_HP_NeutronXSBias<T>::SetCuts()
113 {
114  if (this->verboseLevel > 1) {
115  G4cout << "MyQGSP_BERT_HP_NeutronXSBias::SetCuts: \n";
116  }
117  // " G4VUserPhysicsList::SetCutsWithDefault" method sets
118  // the default cut value for all particle types
119 
120  this->SetCutsWithDefault();
121 
122  // Set proton cut value to 0 for producing low energy recoil nucleus
123  this->SetCutValue(0, "proton");
124 
125  if (this->verboseLevel > 0)
126  G4VUserPhysicsList::DumpCutValuesTable();
127 }
128 
129 // 2019 by D. Rivera