LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MyG4BiasedBertiniNeutronBuilder.hh
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: G4BertiniNeutronBuilder.hh 66892 2013-01-17 10:57:59Z gunter $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: MyG4BertiniNeutronBuilder
31 //
32 // Author: 2002 H.P. Wellisch
33 //
34 // Modified:
35 // 30.03.2009 V.Ivanchenko create cross section by new
36 // 30.03.2020 D. Rivera copy based on:
37 // geant4.10.03.p03/source/physics_lists/builders/include/G4BertiniNeutronBuilder.hh
38 // 19.09.2020 D. Rivera overloaded contstructor to optionally bias the neutron XS
39 //
40 //----------------------------------------------------------------------------
41 //
42 #ifndef artg4tk_lists_MyG4BiasedBertiniNeutronBuilder_hh
43 #define artg4tk_lists_MyG4BiasedBertiniNeutronBuilder_hh
44 
45 #include "Geant4/globals.hh"
46 
47 #include "Geant4/G4HadronCaptureProcess.hh"
48 #include "Geant4/G4HadronElasticProcess.hh"
49 #include "Geant4/G4HadronFissionProcess.hh"
50 #include "Geant4/G4NeutronInelasticProcess.hh"
51 #include "Geant4/G4VNeutronBuilder.hh"
52 
53 #include "Geant4/G4CascadeInterface.hh"
54 
55 class MyG4BiasedBertiniNeutronBuilder : public G4VNeutronBuilder {
56 public:
58  MyG4BiasedBertiniNeutronBuilder(G4double XSMultiplier);
59 
60  void Build(G4HadronElasticProcess* aP) override;
61  void Build(G4HadronFissionProcess* aP) override;
62  void Build(G4HadronCaptureProcess* aP) override;
63  void Build(G4NeutronInelasticProcess* aP) override;
64 
65  void
66  SetMinEnergy(G4double aM) override
67  {
68  theMin = aM;
69  }
70  void
71  SetMaxEnergy(G4double aM) override
72  {
73  theMax = aM;
74  }
75 
76 private:
77  G4CascadeInterface* theModel;
78  G4double theXSMultiplier;
79  G4double theMin;
80  G4double theMax;
81 };
82 
83 // 2002 by J.P. Wellisch
84 
85 #endif /* artg4tk_lists_MyG4BiasedBertiniNeutronBuilder_hh */
void Build(G4HadronElasticProcess *aP) override