2 // ********************************************************************
3 // * License and Disclaimer *
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. *
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. *
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 // ********************************************************************
26 // $Id: MyQGSP_BERT_HP.icc 81937 2019-10-09 15:44:09Z drivera $
28 //---------------------------------------------------------------------------
30 // ClassName: MyQGSP_BERT_HP_NeutronXSBias
32 // Author: 2002 J.P. Wellisch
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
46 //----------------------------------------------------------------------------
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"
58 #include "Geant4/G4Material.hh"
59 #include "Geant4/G4MaterialTable.hh"
61 #include "Geant4/G4DecayPhysics.hh"
62 #include "Geant4/G4EmStandardPhysics.hh"
63 #include "Geant4/G4IonPhysics.hh"
64 #include "Geant4/G4RadioactiveDecayPhysics.hh"
66 #include "Geant4/G4EmExtraPhysics.hh"
67 #include "Geant4/G4StoppingPhysics.hh"
68 #include "MyG4HadronPhysicsQGSP_BERT_HP_NeutronXSBias.hh"
70 #include "Geant4/G4HadronElasticPhysicsHP.hh"
72 template<class T> TMyQGSP_BERT_HP_NeutronXSBias<T>::TMyQGSP_BERT_HP_NeutronXSBias(G4int ver)
74 NEUTRON_INXS_SCALE(std::getenv("NEUTRON_INXS_SCALE"))
76 G4cout << "<<< Geant4 Physics List simulation engine: MyQGSP_BERT_HP_NeutronXSBias 3.0" << G4endl;
77 G4cout << G4endl << G4endl;
79 this->defaultCutValue = 0.7 * CLHEP::mm;
80 this->SetVerboseLevel(ver);
82 INXS_SCALE = (NEUTRON_INXS_SCALE ? strtod(NEUTRON_INXS_SCALE, 0) : 1.0 );
83 G4cout << "<<< Neutron inelastic XS scale factor : " << INXS_SCALE << std::endl;
86 this->RegisterPhysics(new G4EmStandardPhysics(ver));
88 // Synchroton Radiation & GN Physics
89 this->RegisterPhysics(new G4EmExtraPhysics(ver));
92 this->RegisterPhysics(new G4DecayPhysics(ver));
94 // Hadron Elastic scattering
95 this->RegisterPhysics(new G4HadronElasticPhysicsHP(ver));
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));
104 this->RegisterPhysics(new G4StoppingPhysics(ver));
107 this->RegisterPhysics(new G4IonPhysics(ver));
112 TMyQGSP_BERT_HP_NeutronXSBias<T>::SetCuts()
114 if (this->verboseLevel > 1) {
115 G4cout << "MyQGSP_BERT_HP_NeutronXSBias::SetCuts: \n";
117 // " G4VUserPhysicsList::SetCutsWithDefault" method sets
118 // the default cut value for all particle types
120 this->SetCutsWithDefault();
122 // Set proton cut value to 0 for producing low energy recoil nucleus
123 this->SetCutValue(0, "proton");
125 if (this->verboseLevel > 0)
126 G4VUserPhysicsList::DumpCutValuesTable();